xsl-list
[Top] [All Lists]

Re: [xsl] XPath for matching multiple child elements

2006-09-28 10:22:58
Wendell,

On 9/28/06, Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com> 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--