[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
Please don't answer to the digest, it is not possible to maintain the
thread and keep the content together.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|