Subject: Re: [xsl] analyze-string gotcha/reminder From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx> Date: Mon, 19 Nov 2012 15:25:38 +0000 |
On Mon, Nov 19, 2012 at 3:15 PM, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote: >> It's a case where even in retrospect, it's hard to see how we could have >> avoided this problem in the language design. Perhaps two separate >> attributes, regex and regex-avt. But that feels very heavy-handed. Most >> languages have a few quirks like this where people just have to learn the >> hard way. > > > It would be helpful if an XSLT processor issues a warning message when > a single `{` and `}` are used in a regex -- this would immediately > explain to the user the issue and the correction to be made. > Recall this is only a problem where the regex is passed as an attribute. Single curly brace is ok in replace (and I presume matches) although that helps to make it more confusing.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] analyze-string gotcha/rem, Dimitre Novatchev | Thread | Re: [xsl] analyze-string gotcha/rem, David Carlisle |
Re: [xsl] Line feed in xalan, disap, Chris Wolf | Date | Re: [xsl] analyze-string gotcha/rem, David Carlisle |
Month |