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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: Question external entities and relative URis

David Carlisle <davidc <at> nag.co.uk> writes:

> well the spec's not over clear but that's my reading (and I think it's 
> what existing parsers do). For external parsed entities, if you want to 
> simply inline, you can (sometimes) make use of xml:base to locally reset 
> the base URI, but for the examples you gave of parameter entities in a 
> DTD I don't think there is any local scoping construct that you could 
> use with xml:base, so you need to keep track of the scope of the inclusion.
> David

I think MS's XML parser doesn't work this way, but yeah, it seems others do,
which is why I am confused.

Note that the spec said:
"This is defined to be the external entity containing the '<' which starts the
declaration, __at the point when it is parsed as a declaration.__"

The "at the point when it is parsed as a declaration" seems to imply the
behavior I described in my first post; ... but I think your interpretation is
probably the right one. I would like to hear some other opinions, if anyone
else has one though.

Thanks for your help, David.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

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

Copyright 1993-2007 XML.org. This site is hosted by OASIS