Latest web development tutorials

XSLT sistem properti () fungsi

XSLT benda Fungsi Referensi benda Referensi XSLT Fungsi lengkap

Definisi dan Penggunaan

sistem-properti () mengembalikan fungsi nama properti diidentifikasi oleh sistem nilai.

Dalam Properti XSLT namespace Sistem:

  • xsl: Versi - versi prosesor XSLT
  • xsl: Vendor - pengembang prosesor XSLT
  • xsl: vendor-url - mengidentifikasi URL XSLT pengembang prosesor

tatabahasa

object system-property(string)

parameter

参数 描述
string 必需。规定返回其值的系统属性。

contoh 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>

Lihat file XSL , melihat hasil .


XSLT benda Fungsi Referensi benda Referensi XSLT Fungsi lengkap