Hàm thuộc tính hệ thống XSLT ()
❮ Tham chiếu hàm XSLTĐịnh nghĩa và Cách sử dụng
Hàm system-property () trả về giá trị của thuộc tính hệ thống được chỉ định bởi tên.
Thuộc tính hệ thống trong không gian tên XSLT:
- xsl: version - Phiên bản XSLT do bộ xử lý thực hiện
- xsl: nhà cung cấp - Nhà cung cấp bộ xử lý XSLT
- xsl: nhà cung cấp-url - URL xác định nhà cung cấp bộ xử lý XSLT
Cú pháp
object system-property(string)
Thông số
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
ví dụ 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>
❮ Tham chiếu hàm XSLT