[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XQL query with namespace




Hi,
sorry for the delay....

>Hi.
>
>I have faces with some difficulties with the xml query.

Note: Ozone doesn't support XQL - it supports XPath. (which is the base
for XQL)

>Suppose I have an XML file like this :
>
><tp:DocExchange tp:docExchangeId="N06">
>   <tp:ebXMLBinding tp:version="0.98b">
>    <tp:ReliableMessaging tp:deliverySemantics="OnceAndOnlyOnce" tp:idempotency="true" tp:messageOrderSemantics="Guaranteed">
>     <tp:Retries>5</tp:Retries>
>
>............
>
>To get the value of the Retries element, the xql string would be something like this:
>
>//DocExchange[@docExchangeId='N06']//Retries
>
>But when I tried, I couldn't get the result.
>
>For another try, the xql string "//DocExchange[@tp:docExchangeId='N06']//Retries" caused an NotSerializableException.
>
>However, when I tried the same syntax "//DocExchange[@docExchangeId='N06']//Retries"
>
>to an xml file which does not have the namespace prefix, I could get the text value of  5.
>
>Is ozone not support xql with namespaces, or is it me making a mistake?
>
>Please help me..  

Well, Ozone doesn't fully support XML Namespaces because currently it
"only" implements persistent DOM according to W3C's DOM Level 1 spec.
This spec doesn't define XML Namespaces and with this Ozone doesn't
support namespaces. We started a discussion about a new, DOM Level 2
conformant, implemention multiple times. But it seems that the volunteers
were put off by this topic because they all think that they have to 
know the Ozone core very well - which is *not* the case. :-)
I can remember that Jörg started to implement a DOM Level 2 conformant
persistency layer. Jörg, any news?

Lars
--
______________________________________________________________________
Lars Martin                                    mailto:lars@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com