 |
 |
 |
Thanks to Antonio Mota, Michael Kay, Evan Lenz, and David Carlisle for
responding to my question. The solution ultimately employed looked like
this:
<xsl:for-each select="descendant::text[@id and count(ancestor::system) =
$sysCo]">
where $sysCo is set equal to: count(ancestor::system)
-----Original Message-----
From: Woods, Christopher
Sent: Wednesday, August 31, 2005 1:36 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] excluding descendants (and all of their descendants as
well)
How does one find all text elements that are descendants of the first para
element but exclude any text element that is a descendant of the second system
element?
<techinfo>
<system>
<descinfo>
<para-seq>
<para>
<text>The quick brown fox jumped over the lazy systems
engineer.</text>
<text>Hello world.</text>
<style>
<text>In the matter of Jardyce v. Jardyce:</text>
</style>
<system>
<descinfo>
<para-seq>
<para>
<text>Blah, blah, blah...</text>
<text>more gibberish.</text>
<style>
<text>Nasty, Brutish, and Short Attorneys at
Law</text>
</style>
</para>
</para-seq>
</descinfo>
</system>
</para>
</para-seq>
</descinfo>
</system>
</techinfo>
Thanks very much.
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |