Re: [relax-ng] Issue: long string literals

From
James Clark <>
Date
2002-04-09T02:40:32+00:00
ID
408532078.1018345147@[192.168.0.197]
Thread
Re: [relax-ng] Issue: long string literals
> Mere concatenation doesn't play well with the use of doubling as the way
> of quoting the string literal delimiter.

On the other hand, we could use mere concatenation *instead* of doubling. 
That is, a string literal is composed of one or more string literal pieces. 
Each piece starts with " or ' and is terminated by a matching " or '. 
There's no way to have a single piece containing both " and '. To get a 
string literal containing both " and ', you simply split it into multiple 
pieces which each contain either " or ' but not both.

We are already using mere concatenation in element annotations:

  foo["bar" "baz"]

James