Hi!
I'm using the saxonica xquery processor and I have problems with namespaces in the result of the xquery. The problem is that if I want to get back an xml document with namespaces in the returned doument the namespace will be duplicated and in the first xml tag where the namespace is used an empty namespace declaration is inserted. For ex.: If the input of the xquery is: <input name="A"> <xxx:row objectID="15"> <xxx:cell columnObjectREF="year" value="1970"/> <xxx:cell columnObjectREF="male" value="11"/> </xxx:row> </input> and I just want to return the input with the following xquery declare namespace ifp="http://www.f400.hu/ifp"; <root> { ... return .//input[@name="A"] } </root> the result will be: <input name="A"> <xxx:xxx:row xmlns:xxx="" objectID="15"> <xxx:xxx:cell columnObjectREF="year" value="1970"/> <xxx:xxx:cell columnObjectREF="male" value="11"/> </xxx:xxx:row> </input> Does anyone have a solution for this problem? TIA, Esther -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
This does not look good. Do you mean to say that you using the
oxf:xquery processor? -Erik [hidden email] wrote: > Hi! > > I'm using the saxonica xquery processor and I have problems with namespaces in the result of the xquery. The problem is that if I want to get back an xml document with namespaces in the returned doument the namespace will be duplicated and in the first xml tag where the namespace is used an empty namespace declaration is inserted. > > For ex.: > If the input of the xquery is: > <input name="A"> > <xxx:row objectID="15"> > <xxx:cell columnObjectREF="year" value="1970"/> > <xxx:cell columnObjectREF="male" value="11"/> > </xxx:row> > </input> > and I just want to return the input with the following xquery > declare namespace ifp="http://www.f400.hu/ifp"; > <root> > { > ... > return > .//input[@name="A"] > } > </root> > the result will be: > <input name="A"> > <xxx:xxx:row xmlns:xxx="" objectID="15"> > <xxx:xxx:cell columnObjectREF="year" value="1970"/> > <xxx:xxx:cell columnObjectREF="male" value="11"/> > </xxx:xxx:row> > </input> > > Does anyone have a solution for this problem? > > TIA, > Esther -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |