xsl-list
[Top] [All Lists]

RE: Get a property of another node

2003-05-28 04:17:54
Hi,

Use the parent axis <http://www.w3.org/TR/xpath#axes> to walk to ROW and then 
attribute axis to select the num attribute.

Cheers,

Jarno - Aiboforcen: The Shepherd's Deathline (Fleash Field remix)

-----Original Message-----
From: ext Molnár Ágnes [mailto:agi(_at_)harpia(_dot_)homeip(_dot_)net]
Sent: 28 May, 2003 14:08
To: xsl
Subject: [xsl] Get a property of another node


Hello,

I have the following XML:

<page>
    <ROWSET>
        <ROW num='1'>
            <other>value</other>
        </ROW>
        <ROW num='2'>
            <other>anyothervalue</value>
        </ROW>
    </ROWSET>
</page>

When I'm in the "other" node with my XSL, I need the "num" of the ROW. How can 
I get this propery with an xsl:value-of?
Thanks for all,

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>