[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Need for a technique

Subject: Need for a technique
From: Paul Terray <terray@xxxxxxxxxxxx>
Date: Tue, 13 Feb 2001 13:26:52 +0000
 Need for a technique
Hi everyone,

I need a simple XPath request to look for the following thing :

have the first enclosing element of an element that correspond to certain names.

For example :
<doc>
<h1>
<para>my text is here, and <x/> I need to know where x is...</para>
<h2>
<para>However :<list>
<item><x/> this element could be anywhere</item>
</list>
</para>
</h2>
</h1>
</doc>

In this example, I am looking for the nearest enclosing <hx> element (h1 or h2).
I need an Xpath expression that would give back h1 for the first <x/> element, and h2 for the second.


Any idea ?

Thanks.


--
Paul TERRAY - Ingénieur Systèmes Documentaires
4Dconcept
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
Tel. 01 34 58 70 70 - Fax. 01 39 46 06 90
email : terray@xxxxxxxxxxxx




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.