Subject: Re: Re: quick [but difficult] Xpath Question
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2002 16:35:52 -0400
|
At 04:17 PM 8/23/2002, you wrote:
I only need the first node, not all the nodes. and the name of the element
is only known at runtime.
Ah, so you'll need the form
(//*[local-name=$name])[1]
Cheers,
Wendell
======================================================================
Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|