XML Functions Plugin - Converters¶
Contents:
From XML …¶
… to XSLT¶
Category-Name : structured.xslt
What ?
This structured.xslt converter will convert a xml type resource to a xslt type resource.
| CONVERT {resourceToConvert<Res:xml>} TO xslt (structured.xslt) AS {converted<Res:xslt>} |
> Input :
resourceToConvert<Res:xml>: The name of the resource to convert (xmltype resource).
> Output :
converted<Res:xslt>: The name of the converted resource (xslttype resource).
Example :
LOAD stylesheet.xslt AS stylesheet-resource.file CONVERT stylesheet-resource.file TO xml (structured) AS stylesheet-resource.xml CONVERT stylesheet-resource.xml TO xslt (structured.xslt) AS stylesheet-resource.xslt |
… to File¶
Category-Name : xslt
What ?
This xslt converter will convert a xml type resource to a file type resource. A stylesheet can be applied to the xml resource.
| CONVERT {resourceToConvert<Res:xml>} TO file (xslt) [USING {config<Res:xslt>}] AS {converted<Res:file>} |
> Input :
resourceToConvert<Res:xml>: The name of the resource to convert (xmltype resource).config<Res:xslt>: The name of the configuration resource (xslttype resource).
> Output :
converted<Res:file>: The name of the converted resource (filetype resource).
Example :
LOAD sample.xml AS sample-resource.file CONVERT sample-resource.file TO xml (structured) AS sample-resource.xml LOAD stylesheet.xslt AS stylesheet-resource.file CONVERT stylesheet-resource.file TO xml (structured) AS stylesheet-resource.xml CONVERT stylesheet-resource.xml TO xslt (structured.xslt) AS stylesheet-resource.xslt CONVERT sample-resource.xml TO file (xslt) USING stylesheet-resource.xslt AS final-sample-resource.file |
… to XML¶
Category-Name : xslt
What ?
This xslt converter will convert a xml type resource to another xml type resource. A stylesheet can be applied to the xml resource.
| CONVERT {resourceToConvert<Res:xml>} TO xml (xslt) [USING {config<Res:xslt>}] AS {converted<Res:xml>} |
> Input :
resourceToConvert<Res:xml>: The name of the resource to convert (xmltype resource).config<Res:xslt>: The name of the configuration resource (xslttype resource).
> Output :
converted<Res:xml>: The name of the converted resource (xmltype resource).
Example :
LOAD sample.xml AS sample-resource.file CONVERT sample-resource.file TO xml (structured) AS sample-resource.xml LOAD stylesheet.xslt AS stylesheet-resource.file CONVERT stylesheet-resource.file TO xml (structured) AS stylesheet-resource.xml CONVERT stylesheet-resource.xml TO xslt (structured.xslt) AS stylesheet-resource.xslt CONVERT sample-resource.xml TO xml (xslt) USING stylesheet-resource.xslt AS final-sample-resource.xml |