Subject: RE: How to split an RegEx into several lines for readability?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 29 Apr 2007 22:05:22 +0100
|
> also, since you are using
> xsl:analyze-string, the regex is an attribute value template
> so you can define the regexp parts separately and drop them
> in using {}.
A word of warning here, regular expressions may perform a lot better if they
are known at stylesheet compile time. (It might be that this example works
as a constant subexpression, but one would need to check.)
Michael Kay
http://www.saxonica.com/
|