This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Accessing nodes
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Accessing nodes
- From: Xiaocun Xu <XXu at CommercialWare dot com>
- Date: Thu, 16 Nov 2000 13:57:56 -0500
- Reply-To: xsl-list at mulberrytech dot com
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@commercialware.com
> -----Original Message-----
> From: Mateja Mikek [mailto:mateja.mikek@kiss.uni-lj.si]
> Sent: Thursday, November 16, 2000 1:13 PM
> To: XSL-List@mulberrytech.com
> 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
>
> ____________________________________________________________________
> 孜回叉\次c女S成為 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