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

Re: escaping QName interlopers


Re:  escaping QName interlopers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/ "Simon St.Laurent" <simonstl@s...> was heard to say:
| It struck me this morning that many of the problems with QNames aren't
| exactly the fault of QNames.  QNames are kind of the result of a
| collision between a URI truck and the Name compact car where we end up
| driving the truck from the driver's seat of the car.
|
| The most obvious fault line is the inability to express QNames as URIs.

Yep. TAG issue "rdfmsQnameUriMapping-6".

I don't think there's a good answer. Your description of the current
conventions as "hilarious" is sadly not too far off the mark.

The only clean solution that I can see involves adding a new markup
character to the XML grammar (and is therefor hardly a solution in any
practical sense, alas).

For example, you could define "{" as the start character for a new
QName lexical space defined as a URI, local-name tuple. Then

<x:foo xmlns:x="http://example.com"/>

and

<{http://example.com,foo}/>

would be the same. And

<xsl:value-of select="x:foo/@y:bar" xmlns:x="uri1" xmlns:y="uri2"/>

would be the same as

<{http://www.w3.org/1999/XSL/Transform,value-of} select="{uri1,foo}/@{uri2,bar}"/>

                                        Be seeing you,
                                          norm

- -- 
Norman.Walsh@S...    | There is a road from the eye to the heart
XML Standards Architect | that does not go through the intellect.--G.
Web Tech. and Standards | K. Chesterton
Sun Microsystems, Inc.  | 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE+Lv4VOyltUcwYWjsRAkgVAJ4wRdqy6qWHJka9O1VqS8mQSNNbZQCeLzUs
GotMDLCL5KHFWIBn7eachBU=
=mztj
-----END PGP SIGNATURE-----

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.