W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > June 1997

Re: Subelement addressing

From: Martin Bryan <mtbryan@sgml.u-net.com>
Date: Wed, 18 Jun 1997 08:22:21 +0100
Message-Id: <1.5.4.32.19970618072221.006afe1c@mail.u-net.com>
To: Tim Bray <tbray@textuality.com>, w3c-sgml-wg@w3.org
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 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 10:04:41 EDT