[Xpath-ng] Proposal for static context syntax

Robin Berjon robin.berjon at expway.fr
Wed Nov 27 09:43:46 MST 2002


David Rosenborg wrote:
> Namespace declarations use the same syntax as in the RELAX NG Compact Syntax, i.e,
> 
> namespace foo = "http://example.org/ns/foo"

I'm not against using RelaxNG notation, but why not use XPointer's? 
xmlns(foo=http://...)? Somehow it feels more xpathish to me (but then that makes 
it a personal aesthetic statement). Provided we quoted the content, it'd follow 
the Function production of XPath 1.0, which may be a plus for backcompat (in 
which case import foo:* would also become import("foo:*")).

> The static context preamble appears before any other XPath Ng constructs.

Is that truly necessary? Also, why must it be static? :)

-- 
Robin Berjon <robin.berjon at expway.fr>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488




More information about the Xpath-ng mailing list