Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
12.3
Statistic
FMM
Blog
XML.ApplyStylesheet2
Apply the stylesheet to the document (XSLT transform).
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
XML | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | Free |
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
Created 2nd November 2021, last changed 2nd November 2021
XML.ApplyStylesheet - XML.Canonical
Feedback: Report problem or ask question.
