This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Whose axis am I?
- To: Mulberry <xsl-list at mulberrytech dot com>
- Subject: Whose axis am I?
- From: quagly <quagly at home dot com>
- Date: Mon, 03 Apr 2000 14:19:26 -0700
- Reply-To: xsl-list at mulberrytech dot com
I believe I am confusing myself with an axis issue.
Why is it that with xml:
<root>
<tag name="greedy"></tag>
<tag name="lonely"></tag>
</root>
if I output the tag attributes with
<xsl:template match="tag">
<xsl:value-of select="@name"/>
</xsl:template match>
I get both of them:
greedylonely
but if I match with
<xsl:template match="tag">
<xsl:value-of select="../tag/@name"/>
</xsl:template match>
I get:
greedygreedy
that is, the first attribute twice.
Thanks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list