|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath for matching multiple child elements
Probably this would be faster?
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:key name="kComDesc" match="h1|p|b|i" use="exists(ancestor::Comments[1])"/> <xsl:template match="key('kComDesc', 'true')">
Whatever processing here
</xsl:template>
</xsl:stylesheet>
On 9/28/06, Michael Kay <mike@xxxxxxxxxxxx> wrote: > But it's free enough to support a bit of a workaround, even > if you have no schema: > > <xsl:variable name="comment-elements" > select="//comments//(h1|p|b|i)"/> > > <xsl:template match="*[exists(. intersect $comment-elements)]"> > ... > </xsl:template> > > I think this should work.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








