Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSLT system-property() function


May 28, 2021 XSL T


Table of contents


XSLT system-property() function

The XSLT system-property() function returns the system properties of the specified name.


XSLT system-property() function The complete XSLT function reference object

Definitions and usages

The system-property() function returns the value of the system property identified by name.

System properties in the XSLT namespace:

  • xsl:version - XSLT version implemented by the processor
  • xsl: vendor - developer of XSLT processors
  • xsl:vendor-url - the URL that identifies the developer of the XSLT processor

Grammar

object system-property(string)

Parameters

parameter describe
string Required.The system properties of returning their values are specified.

Instance 1

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>
<body>
<p>
Version:
<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')" />
</p>
</body>
</html>
</xsl:template>

</xsl:stylesheet>

XSLT system-property() function The complete XSLT function reference object