xsl-list
[Top] [All Lists]

Re: [xsl] xpath: select parents following-siblings child :)

2006-09-05 01:04:01
you're absolutely right, my bad. Thanks!

Michael Kay schrieb:
../.. goes up two levels, you only want to go up one. Try

 ../following-sibling::text:section/text:p

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Jimmy [mailto:jimmy(_at_)outerlimits(_dot_)ch] Sent: 04 September 2006 15:54
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] xpath: select parents following-siblings child :)

I don't seem to be able to get this to work. I'm inside the text:h element of the first section and like to get the text:p node of the next section.

XPath:
../../following-sibling::text:section/text:p

XML:
<text:section text:style-name="Sect1" text:name="f20" text:protected="true"> <text:h text:style-name="TestLesson" text:outline-level="1"> <text:variable-set text:name="navTitle" text:display="none" text:formula="ooow:Navititel" office:value-type="string" office:string-value="Navititel"/>F20 Test</text:h> </text:section>

<text:section text:style-name="Sect1" text:name="entry" text:protected="true">
<text:p text:style-name="TestEntry">Entry</text:p>
</text:section>

cheers


--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>