Subject: RE: Move leading/trailing spaces outside (XSLT 2.0)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 6 Feb 2007 15:25:48 -0000
|
> > <xsl:template match="e">
> > <xsl:analyze-string select="." regex="^\s*.*?\s*$">
>
> I think that needs to be
> <xsl:analyze-string select="." regex="^(\s*)(.+?)(\s*)$">
> as the posted regular expression lacks parentheses to allow
> the later use of regex-group and as the posted regular
> expression matches the empty string which is not allowed.
Quite right, thanks.
Michael Kay
http://www.saxonica.com/
|