This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: how do you match patterns?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]