Namespaces (Was: Re: [Xpath-ng] Thoughts on work products)

Robin Berjon robin.berjon at expway.fr
Fri Nov 29 08:04:40 MST 2002


Hi David,

David Rosenborg wrote:
>>Wouldn't it be sufficient to provide for a way to express the namespace
>>component of a name? We might be able to get away with {ns}ln, or given a way
>> to bind prefixes, simple QNames.
> 
> I'm afraid not, because prefixes can appear in attribute values and text
> content.

Wouldn't those be quoted then?

namespace("pref", "http://:foo");
namespace("hlk", "http://hlink");
...
$var = create-element("pref:foo");
add-attribute($var, "hlk:href", "bar");
...

But maybe we're not on the same page when referring to "node construction".


Unrelated issue: what do we use as comments? // and /**/ seem inappropriate at 
best :) # is used for fragment IDs, but might be contextually disambiguated. I'm 
just interested because I wanted to insert a comment above and couldn't.

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