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

Re: In defense of PEs (but not in XML) (was Re: Parameter entities vs. GI name groups)

From: Weichel Bernhard (K3/EES4) <Bernhard.Weichel@pcm.bosch.de>
Date: Sat, 21 Jun 1997 02:42:27 -0400
Message-ID: <c=DE%a=DBP%p=BOSCH-01%l=SIMAIL-970621064227Z-62048@pcm.fh.us.bosch.com>
To: "'w3c-sgml-wg@w3.org'" <w3c-sgml-wg@w3.org>

>----------
>Von: 	Rick Jelliffe[SMTP:ricko@allette.com.au]
>Gesendet: 	Samstag, 21. Juni 1997 06:56
>An: 	w3c-sgml-wg@w3.org
>Betreff: 	In defense of PEs (but not in XML) (was Re: Parameter entities vs.
>GI name groups)
>
>
>PEs are very well-behaved "macros".  The constraints on their placement make
>them less easy to abuse. In particular, they stop a
>"macro" from including text that goes outside the scope of the current
>production.   So when you read a DTD and you see a parameter
>entity reference, you always know that you can skip over it and visually keep
>parsing: it will not contain any nasty suprises.   

Thatīs it!
This fact makes PEs easy to read - perhaps somewhat difficult to use for
non
SGML folks.

But it is understandable to claim (XML) complicated if one is confronted
with this:


<!ELEMENT sic - - ((((l | lg | p | sp), (((bibl | biblFull | l | lg |
p | sp | cit | q | label | list | listBibl | note | stage))*)) |
((#PCDATA | ident | code | kw | abbr | address | date | name | num |
rs | time | add | corr | del | gap | orig | reg | sic | unclear | emph
| foreign | gloss | hi | mentioned | soCalled | term | title | ptr |
ref | xptr | xref | anchor | s | seg | gi | formula | eg | bibl |
biblFull | cit | q | label | list | listBibl | note | figure | stage |
table | text)*)))>



But with:

<!ELEMENT sic - -(( (%par1; , %part2; ) | %full-text; )*)>

It looks much simpler - divide an conquer!!


Regards/Mit freundlichen Gruessen
===================================================================
Bernhard Weichel              Phone:  (49) 711 811 8322
Robert Bosch GmbH               Fax:  (49) 711 811 8262
Dept. K3/EES4                 eMail:  bernhard.weichel@pcm.bosch.de
P.O. Box 30 02 40                     
D-70442 Stuttgart
Germany
>
>
>
Received on Saturday, 21 June 1997 02:47:33 EDT

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