0
我有一個關於在XPATH中加載屬性的問題。 我寫短的XML代碼進行測試:在XPATH中加載屬性,問題
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="testDate.xsl"?>
<element attribute="1/1/2100">
Hung
</element>
我的XSL代碼:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--Handle the document: set up HTML page-->
<xsl:template match="/">
<html>
<head>
</head>
<body>
This is a test
<xsl:value-of select="[email protected]"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
爲什麼它加載樣式表時,會產生一個錯誤?你能幫我解釋一下嗎?謝謝
這將是看你得到 – 2009-04-12 09:34:44