XSLT proprietà di sistema() Funzione
❮ Riferimento alla funzione XSLTDefinizione e utilizzo
La funzione system-property() restituisce il valore della proprietà di sistema specificata dal nome.
Proprietà di sistema nello spazio dei nomi XSLT:
- xsl:version - La versione di XSLT implementata dal processore
- xsl:vendor - Il fornitore del processore XSLT
- xsl:vendor-url - L'URL che identifica il fornitore del processore XSLT
Sintassi
object system-property(string)
Parametri
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
Esempio 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>
Visualizza il file XSL e
Visualizza il risultato
❮ Riferimento alla funzione XSLT