[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: Mike Sokolov <sokolov@ifactory.com>
  • To: Karl Fischer <karlfischer@gmx.com>
  • Date: Mon, 19 Jul 2010 10:23:42 -0400

Re:  Re: Question external entities and relative URis
Just an opinion, but it seems to me that in this matter of including 
files, a guiding principle is modularity.  So if file B includes C using 
a relative reference, the much more usual case is to expect the link 
from B->C to be relative to B's location, and not the location of some 
as-yet-to-be named file (A) that might include B.  If it were the other 
way, then the B->C nexus wouldn't really be modular: the validity of 
that reference would depend on the scope in which B was embedded, which 
usually is not what you want.

Full disclosure: I don't really know what the XML specs say, just 
reasoning from basic faith in rationality :)

-Mike

On 07/15/2010 04:44 AM, Karl Fischer wrote:
> 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.
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>    


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