fonction XSLT system-property ()
Définition et utilisation
système-propriété () renvoie le nom de la propriété identifiée par le système de valeurs.
Dans les propriétés du système XSLT d'espace de noms:
- xsl: Version - version de processeurs XSLT
- xsl: vendor - les développeurs de processeurs XSLT
- xsl: vendor-url - identifie XSLT développeur du processeur URL
grammaire
object system-property(string)
Paramètres
参数 | 描述 |
---|---|
string | 必需。规定返回其值的系统属性。 |
exemple 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>
Voir le fichier XSL , afficher les résultats .
Objets de référence XSLT Fonction complète