system-property Function

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XSLT Reference

system-property Function

Returns an object representing the value of the system property identified by the name.

object system-property(string)

Remarks

The argument must evaluate to a string that is a valid QName. The QName is expanded into a name using the namespace declarations in scope for the expression. The system-property function returns an object representing the value of the system property identified by the name. If there is no such system property, the empty string is returned.

Because these properties are strings representing QNames, a prefix must correspond to a namespace declaration in scope for "http://www.w3.org/1999/XSL/Transform" for the xsl:version, xsl:vendor, and xsl:vendor-url properties. A prefix corresponding to a namespace declaration "urn:schemas-microsoft-com:xslt" must be in scope for the msxsl:version property.

System property Description
xsl:version A number giving the version of XSLT implemented by the processor; for XSLT processors implementing the version of XSLT specified by this document, the number 1.
xsl:vendor Returns the string "Microsoft".
xsl:vendor-url A string containing the URL "http://www.microsoft.com".
msxsl:version A number giving the version of MSXML.

Example

The following function call returns 1.

system-property('xsl:version')

See Also

Data Types in Schemas | XDR Schema Data Types Reference | XML Data Types Reference | Initiate XSLT in a Script