This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Regular expression functions (Was: Re: comments on December F&O draft)
- From: "Hunsberger, Peter" <Peter dot Hunsberger at stjude dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 8 Jan 2002 10:29:30 -0600
- Subject: RE: Regular expression functions (Was: Re: [xsl] comments on December F&O draft)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> > how do you define the scope, for one thing?
> they'd be template-local variables
>
>
> <xsl:apply-regexp-templates-to-string select="text()"/>
>
> ...
>
> <xsl:regexp-template match="\sqrt{([^{}]*)}">
> <msqrt>
> <xsl:apply-regexp-templates-to-string select="$1"/>
> </msqrt>
> </xsl:regexp-template>
>
Couldn't we just have a new attribute instead of a whole new tag? IE;
<xsl:apply-templates regexp-select-string="text()"/>
(if that's even needed) and:
<xsl:template regexp-match="\sqrt{....}">
It's just another way of matching templates, not a whole new concept???
Peter Hunsberger
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list