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

Re: XPointer


Re: XPointer
> Date: Tue, 29 Oct 2002 15:04:06 -0800
> From: "Roy T. Fielding" <fielding@a...>
> To: www-xml-linking-comments@w...
> Message-Id: <B98A3692-EB92-11D6-B45C-000393753936@a...>
> Subject: XPointer
> 
> 
> I made the mistake of reading this specification today.  Allow me to list
> the faults:
> 
>     1) uses probably the most difficult syntax to parse of all options:
>        balanced quotes inside balanced parens with encapsulated functions
>        and concatenated schemes;

These are not real difficulties for anyone using appropriate tools to
generate lexers and parsers.

> 
>     2) frequent use of characters that are explicitly disallowed
>        in the URI syntax and thus must be escaped;

This makes the assumption that XPointers only reside in URIs.  While URIs
probably cover a significant number of use cases for XPointer, they are by
no means an overwhelming majority.  There are a large number of use cases
where XPointer parts can exist outside of a URI.  The number of restricted
characters in URI syntax is more of a problem with the definition of a URI,
rather than with XPointer.  Also, as XML uses Unicode as its native
encoding, the ability to select on text content [see #4] will REQUIRE the
use of URI escaping for some class of pointers.

Lastly, most working code today [IMHO] uses the translated text of URIs, not
the escaped text.  The URI itself as a byte stream limits what octets can
appear in the URI.  However, it not nearly so restrictive as to what
characters can occur.  Octets are not equal to characters.

>     3) calls itself a "scheme" and encourages the naming of new "schemes"
>        for fragment syntax, in spite of the fact that the URI syntax
>        already has something called a scheme; (doesn't anyone have a
>        thesaurus?)

The two schemes are in different domains of use.  I haven't found anyone yet
confused by the name.

>     4) focuses on mechanical identification of XML elements (fragile
>        and media-type-specific) rather than the content (section heading,
>        paragraph number, paragraph text, etc.).

Arguably, the author hasn't written many XPath or XPointer expressions.
Most of the ones that I write use content based selection criteria [i.e.,
section heading, paragraph number, et cetera].  In fact, nowhere in XPointer
do I see any focus on either mechanics or content.  Instead, there is an
expressive language that supports either mechanical or content based
selection.  This is appropriate, considering that the domain of linking and
annotation requires both for different use cases.



> In short, these things are not suitable for use with URIs and should
> not be recommended by the W3C.
> 
> 
> Cheers,
> 
> Roy T. Fielding, Chief Scientist, Day Software
>                   (roy.fielding@d...) <http://www.day.com/>
> 
>                   Co-founder, The Apache Software Foundation
>                   (fielding@a...)  <http://www.apache.org/>

<<attachment: winmail.dat>>


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.