locating child nodes sibling
Posted: Thu Jan 15, 2004 2:08 pm
hello,
i have the following xsl sheet that on and if statement builds a dynamic path link
note the
how do i write the syntax for this
Kendall
i have the following xsl sheet that on and if statement builds a dynamic path link
Code: Select all
<xsl:template match="song">
<li>
<xsl:value-of select="song"/><xsl:apply-templates/>
<xsl:if test="@PLAY='true'">
<a>
<xsl:attribute name="href">
<xsl:text>albums/</xsl:text>
<xsl:value-of select="{image/@src}"/> // note
<xsl:text>/track</xsl:text>
<xsl:value-of select="@number"/>
<xsl:text>.ram</xsl:text>
</xsl:attribute>
<xsl:text>WIN</xsl:text>
</a>
</xsl:if>
</li>
</xsl:template>im trying here to get the value of the <song> sibling tag <image src="" /> attribute value (src)<xsl:value-of select="{image/@src}"/> // note
how do i write the syntax for this
Kendall