To set the mapping, use fixed links to sample XML and XSLT files. Enter them in the command parameters, then configure the field mapping; it will analyze the file and show you the fields (and sample data) so you can see what is happening. When you're ready with the mapping, replace the variable references.
You can also use both: add two lines, one with a variable, the other with a fixed path, for example:
$xml Samples/Sample.xml
Links to FileMaker files can have several paths; FileMaker will use the first valid. When you run the script and set the variable $xml to some path, it will select that path; when you edit the script, the variable will not be set, so it will skip it and use hardcoded Sample.xml instead.
Yes, FileMaker saves text as UTF-16. You can still use it for XSLT if you specify the correct encoding. In addition, you can store XSLT files in container fields and save them with the same export field step. This way you can use any encoding (and any format, this is a very general way).
source share