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

>----------
>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 UTC