XSLT właściwość systemowa() Funkcja
❮ Odniesienie do funkcji XSLTDefinicja i użycie
Funkcja system-property() zwraca wartość właściwości systemowej określonej przez nazwę.
Właściwości systemu w przestrzeni nazw XSLT:
- xsl:version - Wersja XSLT zaimplementowana przez procesor
- xsl:vendor — dostawca procesora XSLT
- xsl:vendor-url — adres URL identyfikujący dostawcę procesora XSLT
Składnia
object system-property(string)
Parametry
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
Przykład 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>
Wyświetl plik XSL i
wyświetl wynik
❮ Odniesienie do funkcji XSLT