Namespace Bug!

Monday, 19 December 2011 · 2 messages · last reply 20 Dec 2011
TN
Truong An Nguyen19 Dec 2011 11:54 #
Hello, When I tried to execute the query in the file query.xq on the XML file DiagCom.otx, BaseX generated the false namespace for the following element <action>:
 <action xmlns="http://iso.org/OTX/StandardInterface/Event"
name="GetComChannel0" id="id_f87ea71dd006450c9aa5085c9648d8e9"> (xmlns
shouldn't be generated here)
Could you please quickly fix this error for me? Many thanks. Cheers, An
CG
Christian Grün20 Dec 2011 11:44 #
Dear Truong, I managed to strip down the issue to the following xml document and xquery: XQuery: replace node //*:b with <b xmlns="CORRECT"/> XML:
<e xmlns="CORRECT">
  <e>
    <a xmlns="..."/>
  </e>
  <e>
    <b/>
  </e>
</e>
We are working on the fix; please expect some feedback soon. Christian
Quoted text · Truong An Nguyen · 17 lines
On Mon, Dec 19, 2011 at 11:54 AM, Truong An Nguyen <ngtruongan at gmail.com> wrote: > Hello, > > When I tried to execute the query in the file query.xq on the XML file > DiagCom.otx, BaseX generated the false namespace for the following element > <action>: > > <action xmlns="http://iso.org/OTX/StandardInterface/Event" > name="GetComChannel0" id="id_f87ea71dd006450c9aa5085c9648d8e9"> (xmlns > shouldn't be generated here) > > Could you please quickly fix this error for me? Many thanks. > > Cheers, > > An >

⚡Generated with XQuery