Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
XML.ApplyStylesheet2
Apply the stylesheet to the document (XSLT transform).
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XML | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XML.ApplyStylesheet2"; XML; StyleSheet { ; Key; Value... } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
XML | The XML to process. Can be XML as text or the reference returned by XML.Parse function, so you can make several times changes to the XML without parsing it each time. |
"<test>Hello</test>" | |
StyleSheet | The XML of the style sheet. Can be XML as text or the reference returned by XML.Parse function, so you can make several times changes to the XML without parsing it each time. |
||
Key | The parameter key name. | "id" | Optional |
Value... | The parameter value. This may be quoted with single quotes. |
"'123'" | Optional |
Result
Returns text or error.
Description
Apply the stylesheet to the document (XSLT transform).Same as XML.ApplyStylesheet, but with different parameter passing.
Optionally you can pass keys and values as parameters to this function.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Value parameter as often as you need.
Examples
Run XLST:
MBS("XML.ApplyStylesheet2" ; $InputXML ; $XSLTransform ; "id"; "'123'"; "name"; "'Bob'")
See also
Release notes
- Version 11.5
- Added XML.ApplyStylesheet2 function.
Blog Entries
This function is free to use.
Created 2nd November 2021, last changed 2nd November 2021