USCSXSL.Apply2File |
Applies a specific, non-default transformation to an XML input document and writes the result to a file. The input document may contain calls to USCSXSL extension functions (this is an added possibility compared to calling USXSL.Apply2File). If you use USCSXSL to process a USoft Blend script, then you apply to this script the default Batch.1.0.xsl transformation. Do this not by calling USCSXSL.Apply2File() but rather by calling USCSXSL.Blend(). Syntax
All arguments are single-quoted string values. The required xml must be a valid XML document. You can submit this XML document either as a file on the file system that you reference by xml-filepath or inline as a literal xml-document string. The required xsl must be a valid XSLT 1.0 transformation. You can submit this transformation either as a file on the file system that you reference by xsl-filepath or inline as a literal xsl-document string. Optionally, you can pass any number of Blend input parameters as variable-name=variable-value pairs. Example
If the file content of the "c:\temp\PrintClipboard.xsl" file is:
and your clipboard currently contains "Hello World", then the contents of the Result.xml file will be:
See also |
![]() |