XSLT sistema de propiedad de función ()
Definición y Uso
sistema de propiedad () devuelve el nombre de la propiedad identificada por el sistema de valores.
En las propiedades del sistema XSLT espacio de nombres:
- xsl: Versión - versión de los procesadores XSLT
- xsl: Vendedor - desarrolladores de procesador XSLT
- xsl: Vendedor-url - URL identifica desarrollador procesador XSLT
gramática
object system-property(string)
parámetros
参数 | 描述 |
---|---|
string | 必需。规定返回其值的系统属性。 |
Ejemplo 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>
Ver archivo XSL , ver los resultados .
Los objetos de referencia de funciones completas XSLT