Fungsi sistem-properti () XSLT
Referensi Fungsi XSLTDefinisi dan Penggunaan
Fungsi system-property() mengembalikan nilai properti sistem yang ditentukan oleh namanya.
Properti sistem di ruang nama XSLT:
- xsl:version - Versi XSLT yang diimplementasikan oleh prosesor
- xsl:vendor - Vendor prosesor XSLT
- xsl:vendor-url - URL yang mengidentifikasi vendor prosesor XSLT
Sintaksis
object system-property(string)
Parameter
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
Contoh 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>
Lihat file XSL dan
Lihat hasilnya
Referensi Fungsi XSLT