[
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>">
>>]>
>><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>
>
>
>
begin:vcard
fn:Rick Marshall
n:Marshall;Rick
email;internet:rjm@zenucom.com
tel;cell:+61 411 287 530
x-mozilla-html:TRUE
version:2.1
end:vcard
|