W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

AVTs inside regexen

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Wed, 21 May 2003 15:22:03 +0200
Message-ID: <3ECB7D7B.8090404@pinkjuice.com>
To: public-qt-comments@w3.org

Hi

In a user forum of an XSLT processor, it was asked if allowing AVTs 
inside regexen should be disallowed because coders could forget to 
escape curly braces that aren't meant to delimit AVTs, eg quantifier 
delimiters.

I just wanted to say that I think that you should continue to allow AVTs 
inside regexen. This offers flexibility, and coders can be expected to 
remember escaping [note].

Tobi

[note]
http://www.w3.org/TR/xslt20/#function-regex-group
'Note:
Because the regex attribute is an attribute value template, curly braces 
within the regular expression must be doubled. For example, to match a 
sequence of one to five characters followed by whitespace, write 
regex=".{{1,5}}\s".'

-- 
http://www.pinkjuice.com/
Received on Wednesday, 21 May 2003 09:23:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT