Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XPath for matching multiple child elements


Subject: Re: [xsl] XPath for matching multiple child elements
From: "Will McCutchen" <mccutchen@xxxxxxxxx>
Date: Thu, 28 Sep 2006 12:22:45 -0500

Wendell,

On 9/28/06, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> 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>

That's exactly the kind of short cut I was looking for! Thanks a lot for your suggestion.


Will.



Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor