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

RE: Re: quick [but difficult] Xpath Question

Subject: RE: Re: quick [but difficult] Xpath Question
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Fri, 23 Aug 2002 13:33:53 -0700
RE:  Re: quick [but difficult] Xpath Question
Quick answer :)

key('name_key', $name)[1]

best,
-Rob

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Juan Estevan
> Madrigal
> Sent: Friday, August 23, 2002 1:18 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Re: quick [but difficult] Xpath Question
> 
> 
> Hello:
> 
> I need an XPath statement which will return the first node found in the
> document, where the element's local-name() = 'XX'. The node can be anywhere
> in the source tree. I've tried all sorts of different statements but they
> either result too many records [ I just need the fist "hit"] or no records
> at all.
> 
> I only need the first node, not all the nodes. and the name of the element
> is only known at runtime. This Xpath will be inside an XSLT file which acts
> as a "find command", displaying the first node found in the document.
> 
> Thanks in advance
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.