ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
RE: [xml-dev] Comparable considered necessary
by Paul Brown other posts by this author
Aug 11 2002 8:51PM messages near this date
Re: [xml-dev] XLink olden days | RE: [xml-dev] Programming for Markup vs. Markup for Programming
>  -----Original Message-----
>  [ Simon St.Laurent [simonstl 't simonstl.com] ]
>  I've been thinking about the kind of processing I do with XML.
>  Nearly all of it involves matching against patterns.
>  I think the largest concrete problem I have with URIs is their
>  lack of a common mechanism for saying this equals that.
>  [ URL-based example for monasticxml.com ]

I have seen someone angry enough at a non-working XSLT stylesheet to bang their keyboard on 
their cubical walls; pointing out that the correct namespace was

	http://www.w3.org/1999/XSL/Transform

as opposed to

	http://www.w3c.org/1999/XSL/Transform

was small consolation.  (Pointing an HTTP GET at either of those will get you "Someday a sch
ema for XSL Transforms will live here".)

>  The lack of clarity - heck, the outright refusal to acknowledge the
>  question - about how to get from an identifier to a resource or back
>  again - is the nails in the coffin.

Here's a link to the relevant RFC, for reference:

	http://www.ietf.org/rfc/rfc2396.txt?number=2396

What about the situation when a resource identified by a URI (Uniform Resource Identifier) i
s abstract?  (This isn't forbidden by RFC2396...  It isn't forbidden, but I could legitimate
ly use "plato:chair" as a URI understood to point to the abstract notion of a chair.)

I think that functional equality, i.e., equivalence of interpretation, of URIs is fundamenta
lly an application-level concern.  What seems reasonable to me is to use the URI "scheme" (s
ection 3 in the RFC) to determine an equality relation on URIs.  The RFC didn't do us any fa
vors by not saying (e.g., "a namespace whose name starts with [Xx][Mm][Ll] is reserved") tha
t the schemes http:, ftp:, gopher:, etc. are all reserved and to be interpreted according to
 various other RFCs.

For instance, my suggestion for the XSL URI would have been: "w3c://XSL/Transform?version=1_
0".

Use of URIs of the form "http://foo/bar" is too widespread to declare that the equivalence r
elation for the http scheme is the same in a browser as it is in an XML document.  Maybe som
ething (silly) like: "url://http://foo/bar"?

The idea that "http://www.company.com represents Company.com" is not lost on me, but it is d
efinitely inconsistent with the RFC's intent (as I read it).  The scheme is manifestly the o
ne for http URLs, and it points me to Company.com's web page, not to the company.  Maybe som
ething EDI-like, e.g., "d-and-b:1234" would have been better.

	-- Paul

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved