I'd like to make and export that would tranform the data of some fields using a random function, which is not available in XSL to my knowledge.
I believe that since version 11 math:random() is available as an EXSLT function.
but I can't find it in the
For one thing, CWP has nothing to do with exporting data from FileMaker Pro (the client). For another, you won't find this in any of the FMI documentation.
can you perform this IN FileMaker and then export the results?
No Beverly, for 2 reasons :
- It would be two slow
- And I would need to create a calc field, for each field I'd like to process. Since I want to processall teh data that is in mys multi-file solution, it's not "possible"
However, as Michael correctly pointed out, Xalan-C++ 1.1 used with FileMaker Pro supports the EXSLT extensions.
I've attached an example that demoes export with math:random().
MartinBraendle wrote: Xalan-C++ 1.1 used with FileMaker Pro supports the EXSLT extensions.
Xalan-C++ 1.1 used with FileMaker Pro supports the EXSLT extensions.
Well, some of them - not all.
Yup, those: http://xml.apache.org/xalan-c/extensionslib.html
for the rest following this thread, these links might help, too:
Thanks you so much, you file and example is great and helps imensely.
I would like to create a function, but my tries are unsuccessufull. Do you have a xsl file with a home made function that works with filemaker ?
The equivalent in XSLT to a function is a named xsl:template, to which parameters (either scalar values - text or numbers - or whole XML tree fragments) can be passed. The output of the template (which again can be a scalar value or a XML tree fragment) is returned back to the calling template. Usually you store the output in a variable for later processing.
I've attached a slight modification of my previous example.
Excellent Martin, you're awesome. Thanks a million !
Retrieving data ...