<xsl:template match="Album">
<td bgcolor="#E1E1F7">
<img alt="标头" src="../../../Images/cap.gif" border="0" /><a title="{AlbumName}" href="Album{AlbumID}/Catalog_1.xml"><xsl:value-of /></a>
</td>
</xsl:template>===================================我是分割线======================================
如上代码如何在template里使用节点的值??在for-each里可以直接用{节点名}读取,但是在template里发现不可以.比如上面的那个链接,指到上面时显示的是
http://localhost/Album{AlbumID}/Catalog_1.xml
而不是我想要的
http://localhost/Album3/Catalog_1.xml
<td bgcolor="#E1E1F7">
<img alt="标头" src="../../../Images/cap.gif" border="0" /><a title="{AlbumName}" href="Album{AlbumID}/Catalog_1.xml"><xsl:value-of /></a>
</td>
</xsl:template>===================================我是分割线======================================
如上代码如何在template里使用节点的值??在for-each里可以直接用{节点名}读取,但是在template里发现不可以.比如上面的那个链接,指到上面时显示的是
http://localhost/Album{AlbumID}/Catalog_1.xml
而不是我想要的
http://localhost/Album3/Catalog_1.xml
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">不知道是不是这个的原因。这个
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">好像就可以,谁能告诉我为什么?
http://www.ask321.com/ask9/ask159234.htm
<xsl:when test .... </xsl:when>
<xsl:otherwise> </xsl:otherwise>
</xsl:choose>