Funkce XSLT system-property().
❮ Reference funkce XSLTDefinice a použití
Funkce system-property() vrací hodnotu systémové vlastnosti určené jménem.
Vlastnosti systému v oboru názvů XSLT:
- xsl:version – Verze XSLT implementovaná procesorem
- xsl:vendor - Prodejce procesoru XSLT
- xsl:vendor-url – URL identifikující dodavatele XSLT procesoru
Syntax
object system-property(string)
Parametry
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
Příklad 1
<?xml version="1.0" encoding="UTF-8"?>
<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>
Zobrazte soubor XSL a
zobrazte výsledek
❮ Reference funkce XSLT