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

Re: xsl-list Digest 1 Apr 2007 05:10:01 -0000 Issue 10

Subject: Re: xsl-list Digest 1 Apr 2007 05:10:01 -0000 Issue 1094
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 04 Apr 2007 16:19:27 +0200
 Re: xsl-list Digest 1 Apr 2007 05:10:01 -0000 Issue 10
Please don't answer to the digest, it is not possible to maintain the thread and keep the content together.


Date: Sat, 31 Mar 2007 23:58:06 +0100 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> From: "Michael Kay" <mike@xxxxxxxxxxxx> Subject: Proposed syntax for namespace binding in XPath Message-ID: <028301c773e8$0bac8110$6401a8c0@turtle>

I'd like to solicit reactions to a proposal to define an informal standard
for binding namespaces in strings containing XPath expressions.

The syntax I'm thinking of using is:

(:# xmlns=http://default/uri xmlns:p=http://other/uri #:) xpath-expression

Using a special comment has the advantage that XPath processors that don't
understand the notation will ignore it (though I freely admit that
"meaningful comments" have their drawbacks). It avoids use of quotes which
makes it easy to embed in an XML attribute, and it uses space to delimit the
URI - although there is no absolute ban on having a space in a namespace
URI, there are already plenty of things that will break if you do it, so
it's unlikely to cause any new problems.

Since this is all 'in a string value', XPath processors that don't understand
it would treat it as a string surely?
I.e. there is no need to hide it in comments?
Use a PI if you need XML notation.


Why mess with comments?

The James Clark notation has been around for a while and regularly
re-used?


JJ









___________________________________________________________
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


Current Thread

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
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.