xsl-list
[Top] [All Lists]

[xsl] Enumerating elements using a relative path

2006-11-21 13:09:38
I am confused about how elements get accessed using a relative path from
the context node.

Suppose the following XML:

<a>
        <b>
                <d>1</d>
                <d>2</d>
                <d>3</d>
        </b>
        <c/>
</a>

If element "c" is my context node, I try to do the following:

<xsl:for-each select"../b/d">

I see to get 1, 2, and then 1 again, instead of 1, 2, 3.  Am I missing
something with how to enumerate these "d" elements using a relative
path?

Regards,
Dave

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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