Subject: [xsl] Re: Re: Re: RE: Re: RE: Re: XPath riddle From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 05 Jul 2001 13:19:15 +0100 |
Yes, this only will not work in the more general case when the ancestor element
names to check for are generated "on the fly" from a schema.
Then only the second expression I gave will work:
//D/C[name(ancestor::*[contains($listOfDefiningEls, concat(' ', name()))][1])='A']
Also note, that an optimizing XPath processor will stop at the first occurence of
the above expression, while if last() is used, it will have to produce all the
nodes.
Thanks, 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Re: Re: RE: Re: RE: Re: X, Dimitre Novatchev | Thread | [xsl] document() question, Joerg Pietschmann |
[xsl] xsl:for-each, ram ragu | Date | [xsl] Re: RE: Re: RE: Re: XPath rid, Dimitre Novatchev |
Month |