vanishing namespace declaration
Tuesday, 16 August 2011 · 6 messages
IF
Igor Farinic16 Aug 2011 11:08 #
Hi,
in BaseX 6.7.2 beta we are hitting new issue, that we haven't observed in 6.7.1.
I store following xml:
<task oid="91919191-76e0-59e2-86d6-998877665544"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:my="http://myself.me/schemas/whatever">
<extension>
<my:shipState>capsized</my:shipState>
<my:dead xsi:type="xsd:integer">42</my:dead>
</extension>
</task>... and when I retrieve it, the xsd namespace declaration is missing. However the xsd namespace is used in value of xsi:type attribute.
regards,
Igor Farinic
CG
Christian Grün16 Aug 2011 11:35 #
Hi Igor,
Quoted text · Igor Farinic · 3 lines
> I store following xml: > [...] > ... and when I retrieve it, [...]
How do you retrieve it?
Christian
IF
Igor Farinic16 Aug 2011 11:46 #
Hi,
I am using ClientSession and following xquery command:
query.append(DECLARE_NAMESPACE_C);
query.append("for $x in //c:object where
$x/@oid=\"").append(oid).append("\" return $x");
cq = session.query(query.toString());Quoted text · Christian Grün · 8 lines
On 08/16/2011 11:35 AM, Christian Grün wrote: > Hi Igor, > >> I store following xml: >> [...] >> ... and when I retrieve it, [...] > How do you retrieve it? > Christian
CG
Christian Grün16 Aug 2011 11:55 #
I didn't manage to reproduce this behavior. Did you run the latest snapshot? Are you working with the sources? Note that the JAR snapshots are regularly updated (we might introduce a revision a number to the snapshot to avoid confusion).
Quoted text · Igor Farinic · 24 lines
On Tue, Aug 16, 2011 at 11:46 AM, Igor Farinic <igor.farinic at evolveum.com> wrote: > Hi, > > I am using ClientSession and following xquery command: > > query.append(DECLARE_NAMESPACE_C); > query.append("for $x in //c:object where > $x/@oid=\"").append(oid).append("\" return $x"); > cq = session.query(query.toString()); > > > On 08/16/2011 11:35 AM, Christian Grün wrote: >> >> Hi Igor, >> >>> I store following xml: >>> [...] >>> ... and when I retrieve it, [...] >> >> How do you retrieve it? >> Christian > >
IF
Igor Farinic16 Aug 2011 15:57 #
I managed to reproduce the issue even with latest snapshot.
Strange is that we have similar tag with value xsd:integer in different test and there it handles namespace declaration correctly.
To simplify testing of newest snapshots it would help, if you have a maven snapshot repository.
Igor
Quoted text · Christian Grün · 28 lines
On 08/16/2011 11:55 AM, Christian Grün wrote: > I didn't manage to reproduce this behavior. Did you run the latest > snapshot? Are you working with the sources? Note that the JAR > snapshots are regularly updated (we might introduce a revision a > number to the snapshot to avoid confusion). > ___________________________ > > On Tue, Aug 16, 2011 at 11:46 AM, Igor Farinic > <igor.farinic at evolveum.com> wrote: >> Hi, >> >> I am using ClientSession and following xquery command: >> >> query.append(DECLARE_NAMESPACE_C); >> query.append("for $x in //c:object where >> $x/@oid=\"").append(oid).append("\" return $x"); >> cq = session.query(query.toString()); >> >> >> On 08/16/2011 11:35 AM, Christian Grün wrote: >>> Hi Igor, >>> >>>> I store following xml: >>>> [...] >>>> ... and when I retrieve it, [...] >>> How do you retrieve it? >>> Christian >>
CG
Christian Grün16 Aug 2011 23:20 #
Quoted text · Igor Farinic · 1 line
> I managed to reproduce the issue even with latest snapshot.
Hm.. do you have an sscce that will allow us to reproduce this issue as well?
- Christian
Quoted text · Igor Farinic · 43 lines
> Strange is that we have similar tag with value xsd:integer in different test > and there it handles namespace declaration correctly. > > > To simplify testing of newest snapshots it would help, if you have a maven > snapshot repository. > > Igor > > On 08/16/2011 11:55 AM, Christian Grün wrote: >> >> I didn't manage to reproduce this behavior. Did you run the latest >> snapshot? Are you working with the sources? Note that the JAR >> snapshots are regularly updated (we might introduce a revision a >> number to the snapshot to avoid confusion). >> ___________________________ >> >> On Tue, Aug 16, 2011 at 11:46 AM, Igor Farinic >> <igor.farinic at evolveum.com> wrote: >>> >>> Hi, >>> >>> I am using ClientSession and following xquery command: >>> >>> query.append(DECLARE_NAMESPACE_C); >>> query.append("for $x in //c:object where >>> $x/@oid=\"").append(oid).append("\" return $x"); >>> cq = session.query(query.toString()); >>> >>> >>> On 08/16/2011 11:35 AM, Christian Grün wrote: >>>> >>>> Hi Igor, >>>> >>>>> I store following xml: >>>>> [...] >>>>> ... and when I retrieve it, [...] >>>> >>>> How do you retrieve it? >>>> Christian >>> > >
Written for BaseX 6.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery