Re: [xml-dev] SAX and Entity Literals containing content

From
Rick Marshall <>
To
Karl Waclawek <>
Date
2004-05-25T23:36:09Z
ID
<>
Thread
Re: [xml-dev] SAX and Entity Literals containing content
Karl Waclawek wrote:

>----- Original Message ----- 
>From: "Rick Marshall" <>
>To: "Elliotte Rusty Harold" <>
>Cc: "Jeff Rafter" <>; <>
>Sent: Tuesday, May 25, 2004 6:42 PM
>
>
>  
>
>>so is this perfectly ok?
>>
>><!DOCTYPE doc [
>>  <!ENTITY e "<foo>">
>>]>
>><doc>
>>  <child>&e;test</foo></child>
>></doc>
>>    
>>
>
>No, because the entity is not well-formed, according to
>section 4.3.2 in the XML spec.
>  
>
fair enough, but it does seem to me it's being parsed twice - once to 
make sure it's ok as an entity and once again when it's substituted. no 
doubt this appeals to neatness, but it does seem excessive, and perhaps 
restrictive. but that debate has no doubt been had and i don't want to 
open it again.

thanks

rick

>Karl
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this list use the subscription
>manager: <http://www.oasis-open.org/mlmanage/index.php>
>
>  
>