function-available()
xsl:fallback
XSLT FUNCTION: system-property
number =
system-property
('xsl:version')
name =
system-property
('xsl:vendor')
URL =
system-property
('xsl:vendor-url')
The
system-property
function is used to return information about the XSLT processor environment. Specifically, an object is returned that contains the XSLT version number, the name of the vendor (company) of the XSLT processor, and the URL of the vendor's Web site.
This function should not used to test whether specific features are supported.
The W3C standard requires that the following three arguments be supported. Various vendors of XSLT processors may have additional proprietary arguments that provide other environmental information of importance to their particular product. (For example, for the Microsoft XSLT processor, the argument
msxsl:version
returns the Microsoft XML parser version number.)
xsl:version
The
xsl:version
argument returns the W3C XSLT version number. Currently only version one has been released. Therefore, the return should be:
1
xsl:vendor
The
xsl:vendor
argument returns the name of the company that created the XSLT processor in use. For example, if you are using MSXML 3.0 the return should be:
Microsoft
xsl:vendor-url
The
xsl:vendor-url
argument returns the URL address of the vendor company. For example, for Microsoft the return should be:
http://www.microsoft.com
We use the
DevGuru Staff List XML file
for our example with the following header:
<?xml-stylesheet type="text/xsl" href="xslt_example_systemproperty.xsl"?>
and we name it: xslt_example_systemproperty.xml
Code for xslt_example_systemproperty.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
Version number: <xsl:value-of select="
system-property('xsl:version')
" />
<br />
Vendor: <xsl:value-of select="
system-property('xsl:vendor')
" />
<br />
Vendor URL: <xsl:value-of select="
system-property('xsl:vendor-url')
" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Output:
Click to view output in separate window
- requires Internet Explorer
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information