xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Proposed syntax for namespace binding in XPath


Subject: RE: [xsl] Proposed syntax for namespace binding in XPath
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Apr 2007 15:32:44 +0100

> That though doesn't bind prefixes, it just does away with the 
> need for prefixes altogether, so instead of
> 
> (:# xmlns:p=http://other/uri #:) /p:foo/p:bar[2]
> 
> you'd write
> 
> /{http://other/uri}foo/{http://other/uri}bar[2]
> 
> which is workable, but a bit long winded, especially in 
> attribute value templates, where { already has another 
> meaning, and so would need to be quoted.

I have considered this approach, which might be useful for handling
software-generated path expressions; but I think that use case is a lot less
common than XPath expressions written by humans using a text editor in some
kind of data file (or online form) where there's no obvious way to specify a
namespace context.

Michael Kay
http://www.saxonica.com/


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor