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: Regular expression functions (Was: Re: comments on December F&O draft)


> > 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


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