[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Question external entities and relative URis

  • From: David Carlisle <davidc@nag.co.uk>
  • To: Karl Fischer <karlfischer@gmx.com>
  • Date: Thu, 15 Jul 2010 01:12:34 +0100

Re:  Re: Question external entities and relative URis
On 15/07/2010 00:47, Karl Fischer wrote:
> David Carlisle<davidc<at>  nag.co.uk>  writes:
>
>>
>> On 14/07/2010 09:40, Karl Fischer wrote:
>>>    won't any relative URIs in them be interpreted as being relative
>>> to the URI of the DTD and not URI of the entity file they were declared in?
>>>
>>
>> No the inclusion mechanism is supposed to "remember" the URI where the
>> inclusion came from and resolve relative links within that scope
>> accordingly.
>>
>> David
>
> So that means that external entities can't just be included into the document
> and parsed as if they were part of it and instead need separate, special parsing
> to keep track of the URIs?
>
>
> _
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


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.