OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



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

[ Lists Home | Date Index | Thread Index ]

Karl Waclawek wrote:

>----- Original Message ----- 
>From: "Rick Marshall" <rjm@zenucom.com>
>To: "Elliotte Rusty Harold" <elharo@metalab.unc.edu>
>Cc: "Jeff Rafter" <lists@jeffrafter.com>; <xml-dev@lists.xml.org>
>Sent: Tuesday, May 25, 2004 6:42 PM
>>so is this perfectly ok?
>><!DOCTYPE doc [
>>  <!ENTITY e "<foo>">
>>  <child>&e;test</foo></child>
>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.



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

fn:Rick  Marshall
tel;cell:+61 411 287 530


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS