XSLT sistema proprietà function ()
Definizione e utilizzo
Sistema-struttura () restituisce il nome della proprietà identificate dal sistema di valori.
Nelle proprietà XSLT namespace System:
- xsl: versione - versione di processori XSLT
- xsl: vendor - gli sviluppatori di processore XSLT
- xsl: vendor-url - identifica URL XSLT processore sviluppatore
grammatica
object system-property(string)
parametri
参数 | 描述 |
---|---|
string | 必需。规定返回其值的系统属性。 |
esempio 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>
版本:
<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>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<p>
版本:
<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>
Vedere file XSL , visualizzare i risultati .
Completa Oggetti di riferimento XSLT funzione