xsl-list
[Top] [All Lists]

[xsl] XPath preceding

2012-04-09 10:09:37
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.

<root>
  <section>
    <para>
      <case-cite/>
    </para>
    <para>
      <case-cite-2nd/>
    </para>
  </section>
</root>

Thanks in advance.

Rick Quatro
Carmen Publishing Inc.
*** 585-283-5045 *** NEW NUMBER
rick(_at_)frameexpert(_dot_)com
http://www.frameexpert.com




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>