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

Re: more QName madness


xml namespaces for dummies
On Thu, Nov 14, 2002 at 10:06:36AM -0500, John Cowan wrote:
> Paul Prescod scripsit:
> 
> > IMHO, it is not wise to dumb down XPointer-in-XML to the same level as 
> > XPointer-in-hard copy just to be consistent.
> 
> I*M*HO, it is not wise to have XPointers (a fortiori, URIs) that work
> in some contexts but not others.  A great virtue of URIs is their
> context-independence: they mean the same things whether they appear in
> XML documents or written by hand on bamboo.

  but what about URI-References ;-)
  <fragment href="foo.xml#[XPointer]"/>
you still need the context to get hold of the resource and then be able
to do the XPointer computation. There is a big difference between allowing
the reference to keep its intrinsic meaning and forcing to always do so.

<off-topic>
One of the "disturbing factors" of namespaces in XPointer expressions 
in the case where you would inherit the namespace bindings from the context
is that the namespace prefix used in the XPointer correspond to those
from the source document and may not match the ones in the target resource.
I have seen enough confusion about this namespace prefix/name duality that
having the xmlns() scheme to use the same prefix (when possible) in the
XPointer and target would allow to make nice examples and exercises in 
an XML Namespaces for Dummies book :-)
</off-topic>

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@r...  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

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.