Re: Subelement addressing

At 16:10 17/6/97 -0700, Tim Bray wrote:

>STRING(7, 8, "LITERAL")
>
>which would denote a location at the 8th character following the beginning
>of the 7th match to the literal LITERAL. 
>
>Comments?  The ERB kind of likes this. -Tim

I like it very much too, but am a bit puzzled by the order of the 7 and 8
without the formal model. The text suggests that the more natural form mght
be TRING(8,7,"Literal") so that the number of occurrences of the literal is
always retained next to the literal itself. Alternatively you could say
STRING("literal",7,8) to  make it more obvious what order you do things.
("Look for "literal" 7 times and then move on 8 characters".) 
----
Martin Bryan, 29 Oldbury Orchard, Churchdown, Glos. GL3 2PU, UK 
Phone/Fax: +44 1452 714029  E-mail: mtbryan@sgml.u-net.com 
For details about The SGML Centre contact http://www.sgml.u-net.com/
For details about the Open Information Interchange initiative contact
http://www.echo.lu/oii/home.html

Received on Wednesday, 18 June 1997 03:22:51 UTC