[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
Our document structure is similar to Docbook, but NOT identical.
Our table structure is like the following:
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[@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] ancestor:: but to a point?
Subject: [xsl] ancestor:: but to a point? From: Russ Urquhart <russurquhart1@xxxxxxxxxxx> Date: Tue, 10 Mar 2009 21:18:19 -0500 |
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[@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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath 2 (and hence XSLT 2, Michael Kay | Thread | Re: [xsl] ancestor:: but to a poin, G. Ken Holman |
[xsl] XPath 2 (and hence XSLT 2) st, Liam Quin | Date | Re: [xsl] ancestor:: but to a poin, G. Ken Holman |
Month |
Keywords