[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Whose axis am I?

Subject: Whose axis am I?
From: quagly <quagly@xxxxxxxx>
Date: Mon, 03 Apr 2000 14:19:26 -0700
Whose axis am I?
    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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.