| Newsgroups |
gmane.text.xml.schema.devel |
| Message-ID |
<[email protected]> |
------=_Part_85434_683998463.1363811676122
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
XMLSpy has a totally different interpretation of the schema 1.0 spec concer=
ning
xs:redefine.
See e.g<http://lists.w3.org/Archives/Public/xmlschema-dev/2004Dec/0048.html=
>
I have a had contact with Altova (the developers of XMLSpy) several times a=
nd
their answer is something like "we are right and the rest of the world is w=
rong
..."
The CDISC standards make a lot usage of xs:redefine, reason the issue came =
up in
our working group.
So we wrote a "white paper" for the FDA stating that XMLSpy is not a suitab=
le
tool for validating CDISC-XML documents.
With best regards,
Jozef Aerts
XML4Pharma
> Michael Kay <[email protected]> hat am 20. M=C3=A4rz 2013 um 20:05 geschr=
ieben:
>
>
> Since oXygen allows a choice of schema processors, it would be useful to
> say which one you selected (or to try more than one).
>
> It would also be useful to tell us what XMLSpy says is wrong - what is
> the error message?
>
> Michael Kay
> Saxonica
>
> On 20/03/2013 17:56, Pierre Attar wrote:
> > Hi,
> >
> > I have a problem using group redefinitions and validating both with
> > XMLSpy (who complains) and Oxygen (who validates).
> > My question : who is correct ? Where a I wrong ?
> >
> > Note: my schema are a lot more complex but I try to make a sample (non
> > realistic) in order to isolate my question.
> >
> > Here is the situation :
> >
> > base.xsd declares a group called essai :
> > <xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
> > xmlns=3D"http://modeles.fr/modeles/reference"
> > targetNamespace=3D"http://modeles.fr/modeles/reference"
> > elementFormDefault=3D"qualified" attributeFormDefault=3D"unqualified">
> > <xs:element name=3D"ENTER_NAME_OF_ROOT_ELEMENT_HERE">
> > <xs:annotation>
> > <xs:documentation>Comment describing your root
> > element</xs:documentation>
> > </xs:annotation>
> > </xs:element>
> > <xs:group name=3D"essai">
> > <xs:choice/>
> > </xs:group>
> > </xs:schema>
> >
> >
> > other.xsd only includes base.xsd
> >
> > <xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
> > xmlns=3D"http://modeles.fr/modeles/reference"
> > targetNamespace=3D"http://modeles.fr/modeles/reference"
> > elementFormDefault=3D"qualified" attributeFormDefault=3D"unqualified">
> > <xs:include schemaLocation=3D"base.xsd"/>
> > </xs:schema>
> >
> >
> > And now, redefine .xsd both redefine base.xsd and includes other.xsd
> >
> > <xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
> > xmlns=3D"http://modeles.fr/modeles/reference"
> > targetNamespace=3D"http://modeles.fr/modeles/reference"
> > elementFormDefault=3D"qualified" attributeFormDefault=3D"unqualified">
> > <xs:redefine schemaLocation=3D"base.xsd">
> > <xs:group name=3D"essai">
> > <xs:choice>
> > <xs:group ref=3D"essai"/>
> > <xs:element name=3D"test"/>
> > </xs:choice>
> > </xs:group>
> > </xs:redefine>
> > <xs:include schemaLocation=3D"other.xsd"/>
> > </xs:schema>
> >
> >
> > At this time, XML spy complains but not oxygen 14.2. If I remove the
> > include, no problem found.
> >
> > Any ideas ?
> >
> > Pierre
> >
> >
> >
>
>
------=_Part_85434_683998463.1363811676122
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body style="">
<div>
XMLSpy has a totally different interpretation of the schema 1.0 spec concerning xs:redefine.
</div>
<div>
See e.g
<a href="http://lists.w3.org/Archives/Public/xmlschema-dev/2004Dec/0048.html">http://lists.w3.org/Archives/Public/xmlschema-dev/2004Dec/0048.html</a>
</div>
<div>
 
</div>
<div>
I have a had contact with Altova (the developers of XMLSpy) several times and their answer is something like "we are right and the rest of the world is wrong ..."
</div>
<div>
The CDISC standards make a lot usage of xs:redefine, reason the issue came up in our working group.
<br/>So we wrote a "white paper" for the FDA stating that XMLSpy is not a suitable tool for validating CDISC-XML documents.
</div>
<div>
 
</div>
<div>
With best regards,
</div>
<div>
 
</div>
<div>
Jozef Aerts
</div>
<div>
XML4Pharma
</div>
<div>
 
</div>
<div>
 
</div>
<div>
<br/>> Michael Kay <[email protected]> hat am 20. März 2013 um 20:05 geschrieben:
<br/>>
<br/>>
<br/>> Since oXygen allows a choice of schema processors, it would be useful to
<br/>> say which one you selected (or to try more than one).
<br/>>
<br/>> It would also be useful to tell us what XMLSpy says is wrong - what is
<br/>> the error message?
<br/>>
<br/>> Michael Kay
<br/>> Saxonica
<br/>>
<br/>> On 20/03/2013 17:56, Pierre Attar wrote:
<br/>> > Hi,
<br/>> >
<br/>> > I have a problem using group redefinitions and validating both with
<br/>> > XMLSpy (who complains) and Oxygen (who validates).
<br/>> > My question : who is correct ? Where a I wrong ?
<br/>> >
<br/>> > Note: my schema are a lot more complex but I try to make a sample (non
<br/>> > realistic) in order to isolate my question.
<br/>> >
<br/>> > Here is the situation :
<br/>> >
<br/>> > base.xsd declares a group called essai :
<br/>> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
<br/>> > xmlns="http://modeles.fr/modeles/reference"
<br/>> > targetNamespace="http://modeles.fr/modeles/reference"
<br/>> > elementFormDefault="qualified" attributeFormDefault="unqualified">
<br/>> > <xs:element name="ENTER_NAME_OF_ROOT_ELEMENT_HERE">
<br/>> > <xs:annotation>
<br/>> > <xs:documentation>Comment describing your root
<br/>> > element</xs:documentation>
<br/>> > </xs:annotation>
<br/>> > </xs:element>
<br/>> > <xs:group name="essai">
<br/>> > <xs:choice/>
<br/>> > </xs:group>
<br/>> > </xs:schema>
<br/>> >
<br/>> >
<br/>> > other.xsd only includes base.xsd
<br/>> >
<br/>> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
<br/>> > xmlns="http://modeles.fr/modeles/reference"
<br/>> > targetNamespace="http://modeles.fr/modeles/reference"
<br/>> > elementFormDefault="qualified" attributeFormDefault="unqualified">
<br/>> > <xs:include schemaLocation="base.xsd"/>
<br/>> > </xs:schema>
<br/>> >
<br/>> >
<br/>> > And now, redefine .xsd both redefine base.xsd and includes other.xsd
<br/>> >
<br/>> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
<br/>> > xmlns="http://modeles.fr/modeles/reference"
<br/>> > targetNamespace="http://modeles.fr/modeles/reference"
<br/>> > elementFormDefault="qualified" attributeFormDefault="unqualified">
<br/>> > <xs:redefine schemaLocation="base.xsd">
<br/>> > <xs:group name="essai">
<br/>> > <xs:choice>
<br/>> > <xs:group ref="essai"/>
<br/>> > <xs:element name="test"/>
<br/>> > </xs:choice>
<br/>> > </xs:group>
<br/>> > </xs:redefine>
<br/>> > <xs:include schemaLocation="other.xsd"/>
<br/>> > </xs:schema>
<br/>> >
<br/>> >
<br/>> > At this time, XML spy complains but not oxygen 14.2. If I remove the
<br/>> > include, no problem found.
<br/>> >
<br/>> > Any ideas ?
<br/>> >
<br/>> > Pierre
<br/>> >
<br/>> >
<br/>> >
<br/>>
<br/>>
</div>
</body></html>
------=_Part_85434_683998463.1363811676122--