[Home] [By Thread] [By Date] [Recent Entries]

  • From: Julian Reschke <julian.reschke@g...>
  • To: Michael Kay <mike@s...>
  • Date: Thu, 09 Jul 2009 11:40:52 +0200

Michael Kay wrote:
> ...
> There's actually a debate going on in the XSLT/XQuery groups at the moment
> about allowing a syntax for QNames (for example in XPath expressions and in
> places in XSLT where QNames are used at run-time) that consists of the URI
> and local-name, without requiring a prefix. Finding the right syntax is not
> easy. I think it needs to work with all namespace names, which certainly
> includes all legal IRIs and possibly includes all strings. Clark notation
> {uri}local is one candidate, though the curly braces cause problems in some
> contexts such as XSLT attribute value templates. I've been proposing
> backticks: `uri`local or `uri`:local but there's a fair bit of opposition to
> that on aesthetic grounds. (Curly braces and backticks are some of the few
> characters that are illegal in IRIs).
> ...

Interesting.

In JCR (Java Content Reppository) 1.0 (JSR-170), all names used in the 
API were passed as prefixed names, and there was a seaparate API to 
get/set namespace/prefix mappings.

In JCR 2.0 (JSR-283), we have extended the API to accept names in Clark 
notation everywhere previously only prefixed names were allowed.

BR, Julian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member