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

Re: xml:base and fragments

  • From: Ian Graham <ian.graham@utoronto.ca>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 4 May 2017 17:57:06 -0400

Re:  xml:base and fragments
Of course this is so unlike the behavior of the HTML BASE element that someone should go back to the XML Base rec and strip out the entire Abstract:

("This document proposes a facility, similar to that of HTML BASE, for defining base URIs for parts of XML documents.")

On 04-May-17 4:50 PM, C. M. Sperberg-McQueen wrote:
On May 4, 2017, at 2:09 PM, John P. McCaskey <mailbox@johnmccaskey.com> wrote:

This seems the opposite of Eliot’s initial reaction (and mine and I thought Simon’s but maybe not).

Just to be sure then, in my example, a file named example.xml.

<ref target="#apple">Apple</ref>

The new Kay-informed (and already TEI majority) consensus is that @target points to a node in example.xml, not to one inside the file at a.html.
I don’t think that’s the majority view in the TEI discussion.  Or possibly I’m not in the majority over there after all.

The view that I think is entailed by RFC 3986 is that @target is a relative URI whose absolute form is http://www.dictionary.com/a.html#apple and that 3986 defines this resource as being located in the resource example.xml.

I think the natural way to interpret this is that through an otherwise unexplained process, both the URI


and the URI


denote the same thing, which can be retrieved either by scrolling to the appropriate location in example.com (which is already loaded) or retrieving a.html from www.dictionary.com.  RFC 3986 recommends the former; the document() function in XSLT prescribes the latter.

I do not see any consensus in the TEI discussion for the proposition that the target attribute in the example does not point to http://www.dictionary.com/a.html#apple

C. M. Sperberg-McQueen
Black Mesa Technologies LLC


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
Ian Graham // <http://www.iangraham.org>

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


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.
First Name
Last Name
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.