xsl-list
[Top] [All Lists]

Re: [xsl] analyze-string gotcha/reminder

2012-11-19 09:25:49
On Mon, Nov 19, 2012 at 3:15 PM, Dimitre Novatchev 
<dnovatchev(_at_)gmail(_dot_)com> 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--