xsl-list
[Top] [All Lists]

[xsl] ancestor:: but to a point?

2009-03-10 22:18:44
Hi,

Our document structure is similar to Docbook, but NOT identical.

Our table structure is like the following:

<GenTable>
   <Title>
   <table>
      <tbody>
        <row>
           <entry role="">

when an <entry> element has its role attribute equal to hdr, i would like to get the <GenTable> element that contains that <entry>. I know that i can get the entry elements via //entry[(_at_)role='hdr'] but is there a way to use ancestor: but only go as far up at <GenTable>, and not all the way up to the root?

Trying to get my head fully around Xpath!

Thanks for any help,


Russ
--~------------------------------------------------------------------
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>