Subject: Re: [xsl] XPath preceding From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 09 Apr 2012 11:31:49 -0400 |
Hello,
I am trying to find a particular element that is anywhere before the current element like this:
preceding::case-cite
This works if the two elements have the same parent, but I want to match an element anywhere before the current element. For example, if the context is the<case-cite-2nd> element, I want to find a<case-cite> element anywhere in the structure previous to the<case-cite-2nd> element.
Cheers, Wendell
<root> <section> <para> <case-cite/> </para> <para> <case-cite-2nd/> </para> </section> </root>
Thanks in advance.
-- ====================================================================== 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] XPath preceding, Rick Quatro | Thread | Re: [xsl] XPath preceding, Michael Müller-Hille |
Re: [xsl] How white space affects t, Wendell Piez | Date | Re: [xsl] XPath preceding, Michael Müller-Hille |
Month |