4D v14.3XSLT APPLY TRANSFORMATION |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
XSLT APPLY TRANSFORMATION
XSLT APPLY TRANSFORMATION
The XSLT APPLY TRANSFORMATION command applies an XSLT transformation to a document or a BLOB containing XML and generates a document or a BLOB result. The scope of this command is the current process. Note: For more information about XSL transformation (or XSLT), refer to the Overview of XML Utilities Commands section. The command requires three BLOBs or character string parameters. If you pass a character string, you designate a document. In this case, you can only pass the name (the document must be next to the database structure) or the full access path of the document.
The command parses the XML source and transforms it using the instructions in the XSL style sheet. If the XSLT SET PARAMETER command was used beforehand, the command replaces the parameters defined by their value. The result of the transformation is written in the document or BLOB result. The optional compileSheet parameter can be used to optimize the XSLT transformation, more particularly in the case of successive applications of the same XSL style sheet. When the compileSheet parameter is passed and is set to True, the XSL file xslSheet is parsed on the first call of the command, then is compiled and stored in memory. On each subsequent call with the same XSL sheet, the command uses the compiled file directly (unless it has been modified), which can accelerate processing. Optimization does not take into account any modifications carried out in the imported file (via xsl:import). If a file referenced by the XSL file is modified, it is necessary to “force” the recompiling of a new XSL file by calling the command again with the compileSheet parameter set to False (or omitted). Refer to the example of the XSLT SET PARAMETER command. If the transformation was executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0. |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v11 SQL SEE ALSO
XSLT GET ERROR ARTICLE USAGE
4D Language Reference ( 4D v12.4) Inherited from :
APPLY XSLT TRANSFORMATION ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||