USXSL Internal Component

Previous Next

The USXSL internal component lets you use XSLT to transform XML documents and extract data from an XML document. The component makes it easy to embed XSLT transformations in a USoft application. You can use it to:

Apply an XSL transformation to an XML document (USXSL.Apply).

Retrieve a value from an XML document (USXSL.Value).

Retrieve a complete node from an XML document (USXSL.Node).

Temporarily store an XML or XSL document in memory (USXSL.SetXML, USXSL.SetXSL, USXSL.SetGlobalXSL).

Encoding

When using the USXSL component, the output encoding is the one specified in the xsl using the encoding attribute in output element:

<xsl:output version="1.0" encoding="UTF-16"/>

 

On a non-unicode USoft version, use Windows-1252 encoding for the Apply method.

On a Unicode USoft version, use UTF-16 encoding for the Apply method.

For the Apply2File method, the encoding of the file is the one specified in the xsl. If no encoding is specified, UTF-8 is used.

Methods

The USXSL internal component has the following methods:

USXSL.Apply

USXSL.Apply2File

USXSL.Node

USXSL.SetGlobalXsl

USXSL.SetXml

USXSL.SetXsl

USXSL.Value

 

See Also

XML and the Rules Engine