Subject: Re: [xsl] ancestor:: but to a point? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 10 Mar 2009 22:21:43 -0400 |
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!
-- XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz XQuery/XSLT/XSL-FO training in Los Angeles (New dates!) 2009-06-08 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ancestor:: but to a point?, Russ Urquhart | Thread | [xsl] [ANN] XML Prague 2009 March 2, Jim Fuller |
[xsl] ancestor:: but to a point?, Russ Urquhart | Date | Re: [xsl] include multiple utility , Dimitre Novatchev |
Month |