Subject: Re: [xsl] How to split an RegEx into several lines for readability? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 02 May 2007 14:16:58 +0200 |
<xsl:variable name="myregex" as="xs:string"> ( <!-- grab everything --> " <!-- start of a q. string --> [^"]* <!-- zero or more non-quotes --> " <!-- end of a q. string --> ) <!-- closing 'grab all' --> </xsl:variable>
I think this is probably the most amazing and useful tip I got in this thread -- fully deserves to be in the XSLT FAQ!
I have never before seen a string variable defined in this way -- probably because we do nod have an "x" modifier (and modifiers at all) when generally defining variables.
Also, I don't think I've ever seen before comments interspersed within the string contents of an xsl:variable.
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to split an RegEx int, Dimitre Novatchev | Thread | Re: [xsl] xsl-t on Mac, Saxon prefe, Abel Braaksma |
RE: [xsl] Transforming large XML do, Michael Kay | Date | [xsl] loop timing and result-docume, Duane Gran |
Month |