If you are only interested in the first <ROW>, it is easy, refer it with:
../../ROW[1]/FIRST.
If you want the preceding FIRST, you should use preceding-sibling.
Xiaocun Xu
xxu@xxxxxxxxxxxxxxxxxx
> -----Original Message-----
> From: Mateja Mikek [mailto:mateja.mikek@xxxxxxxxxxxxxx]
> Sent: Thursday, November 16, 2000 1:13 PM
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: Accessing nodes
>
>
> Hello, all.
>
> I'm a beginner in XSL and I need help (how unusual).
> Here is a part of the XML file:
> <ROWSET>
> <ROW>
> <FIRST>a1</FIRST>
> <SECOND>a2</SECOND>
> <THIRD>a3</THIRD>
> </ROW>
> <ROW>
> <FIRST>a1</FIRST>
> <SECOND>b2</SECOND>
> <THIRD>b3</THIRD>
> </ROW>
> ...
> </ROWSET>
>
> how can I address the <FIRST>a1</FIRST> element of the first
> <ROW> while processing the <FIRST>a1</FIRST> element of the
> SECOND <ROW>
> (thus ROWSET/ROW/child:node[1] is the context node, if I
> understand things OK)?
>
> I will be most gratefull for any help.
>
> Mateja
>
> ____________________________________________________________________
> §¶¦^¤e\¦¸c¤kS¦¨¬° at http://mail.kiss.uni-lj.si/
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|