This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how do you match patterns?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 23 Jul 2002 09:03:33 +0100
- Subject: RE: [xsl] how do you match patterns?
- Reply-to: xsl-list at lists dot mulberrytech dot com
There's no general regular expression support in XSLT 1.0, but you can
do this one using contains():
match="page/messages/error[contains(@type, 'MyModule')]"
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of Michael
> Sent: 23 July 2002 00:09
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] how do you match patterns?
>
>
> I need to have several stylesheets included by the main
> stylesheet and in some cases the subsheets will handle the
> same tags. I want to add a pattern match to the template
> matches so that I can have the tag handled by the proper
> stylesheet. Something similar to this:
>
> <xsl:template match="page/messages/error[@type like
> '%MyModule%']"> ... blah ... </xsL:template>
>
>
> Any suggestions? Thanks.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list