[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] Namespace definition in Output data.
From: |
Suraj Kumar |
Subject: |
Re: [Qexo-general] Namespace definition in Output data. |
Date: |
Sat, 9 Nov 2002 15:18:19 -0500 |
I tried <query xmlns:zb="xyz>, However the compilation of query fails with
reason that xmlns is unknown namespace.
After declaring xmlns as a namespace and mapping to URI
http://www.w3.org/XML/1998/namespace, the query compiled fine and the
resulting root tag had hard coded name space definition.
Thanks for your help.
----- Original Message -----
From: "Per Bothner" <address@hidden>
To: "Suraj Kumar" <address@hidden>
Cc: <address@hidden>
Sent: Saturday, November 09, 2002 2:33 PM
Subject: Re: [Qexo-general] Namespace definition in Output data.
> Suraj Kumar wrote:
>
> > The problem with above output is that the tag is missing namespace
> > declaration. Please let me know on how to add name space declaration
> > to the resulting node.
>
> Qexo's namespace support is incomplete. It handles namespaces when
> reading using the document function, and matches QNames uses namespaces.
> However "namespace elements" are not properly stored in documents.
> Firthermore, "serialization" back into XML text is not yet specified
> in the XQuery docments, and has not been implemented.
>
> Assuming, the needed namespaces are fixed, it might work to manually
> include the namespace declarations (which Qexo current treats as
> plain attributes):
>
> <query xmlns:zb="xxx">...</query>
>
> Alernatively, you could try using some encoding which could be fixed
> by a namespace-aware prost-processor.
>
> Fixing namespace support is important, but it's just me working on it,
> and I have to do other things to pay the bills. Maybe after the next
> vesions of the specifications are released I'll concentrate on fixing
> the namespace support.
> --
> --Per Bothner
> address@hidden http://www.bothner.com/per/
>