XSLT system-property() º¯Êý
¶¨ÒåºÍÓ÷¨
system-property() º¯Êý·µ»ØÍ¨¹ýÃû³Æ±êʶµÄϵͳÊôÐÔµÄÖµ¡£
ÔÚ XSLT ÃüÃû¿Õ¼äÖеÄϵͳÊôÐÔ£º
| ϵͳÊôÐÔ | ˵Ã÷ |
|---|---|
| xsl:version |
Ìṩ´¦ÀíÆ÷ËùʵÏÖµÄ XSLT °æ±¾µÄÊý×Ö£» Èç¹û XSLT ´¦ÀíÆ÷ʵÏÖ±¾ÎĵµËùÖ¸¶¨µÄ XSLT °æ±¾£¬¸ÃÊý×ÖΪ 1¡£ |
| xsl:vendor | XSLT ´¦ÀíÆ÷µÄ¿ª·¢ÉÌ¡£ |
| xsl:vendor-url | ±êʶXSLT ´¦ÀíÆ÷µÄ¿ª·¢ÉÌµÄ URL¡£ |
| msxsl:version | Ìṩ Microsoft XML ºËÐÄ·þÎñ (MSXML) °æ±¾µÄÊý×Ö¡£ |
Óï·¨
object system-property(string)
²ÎÊý
| ²ÎÊý | ÃèÊö |
|---|---|
| string | ±ØÐè¡£¹æ¶¨·µ»ØÆäÖµµÄϵͳÊôÐÔ¡£ |
Àý×Ó
<?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> 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>