Re: Redefinition of group, who's correct

"[email protected]" <[email protected]> Wed, 20 Mar 2013 21:34:36 +0100 (CET)
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>
   &#160;
  </div> 
  <div>
   I have a had contact with Altova (the developers of XMLSpy) several times and their answer is something like &#34;we are right and the rest of the world is wrong ...&#34;
  </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 &#34;white paper&#34; for the FDA stating that XMLSpy is not a suitable tool for validating CDISC-XML documents.
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   With best regards,
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Jozef Aerts
  </div> 
  <div>
   XML4Pharma
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   <br/>&#62; Michael Kay &#60;[email protected]&#62; hat am 20. M&#228;rz 2013 um 20:05 geschrieben:
   <br/>&#62; 
   <br/>&#62; 
   <br/>&#62; Since oXygen allows a choice of schema processors, it would be useful to 
   <br/>&#62; say which one you selected (or to try more than one).
   <br/>&#62; 
   <br/>&#62; It would also be useful to tell us what XMLSpy says is wrong - what is 
   <br/>&#62; the error message?
   <br/>&#62; 
   <br/>&#62; Michael Kay
   <br/>&#62; Saxonica
   <br/>&#62; 
   <br/>&#62; On 20/03/2013 17:56, Pierre Attar wrote:
   <br/>&#62; &#62; Hi,
   <br/>&#62; &#62;
   <br/>&#62; &#62; I have a problem using group redefinitions and validating both with 
   <br/>&#62; &#62; XMLSpy (who complains) and Oxygen (who validates).
   <br/>&#62; &#62; My question : who is correct ? Where a I wrong ?
   <br/>&#62; &#62;
   <br/>&#62; &#62; Note: my schema are a lot more complex but I try to make a sample (non 
   <br/>&#62; &#62; realistic) in order to isolate my question.
   <br/>&#62; &#62;
   <br/>&#62; &#62; Here is the situation :
   <br/>&#62; &#62;
   <br/>&#62; &#62; base.xsd declares a group called essai :
   <br/>&#62; &#62; &#60;xs:schema xmlns:xs=&#34;http://www.w3.org/2001/XMLSchema&#34; 
   <br/>&#62; &#62; xmlns=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; targetNamespace=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; elementFormDefault=&#34;qualified&#34; attributeFormDefault=&#34;unqualified&#34;&#62;
   <br/>&#62; &#62; &#60;xs:element name=&#34;ENTER_NAME_OF_ROOT_ELEMENT_HERE&#34;&#62;
   <br/>&#62; &#62; &#60;xs:annotation&#62;
   <br/>&#62; &#62; &#60;xs:documentation&#62;Comment describing your root 
   <br/>&#62; &#62; element&#60;/xs:documentation&#62;
   <br/>&#62; &#62; &#60;/xs:annotation&#62;
   <br/>&#62; &#62; &#60;/xs:element&#62;
   <br/>&#62; &#62; &#60;xs:group name=&#34;essai&#34;&#62;
   <br/>&#62; &#62; &#60;xs:choice/&#62;
   <br/>&#62; &#62; &#60;/xs:group&#62;
   <br/>&#62; &#62; &#60;/xs:schema&#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62; other.xsd only includes base.xsd
   <br/>&#62; &#62;
   <br/>&#62; &#62; &#60;xs:schema xmlns:xs=&#34;http://www.w3.org/2001/XMLSchema&#34; 
   <br/>&#62; &#62; xmlns=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; targetNamespace=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; elementFormDefault=&#34;qualified&#34; attributeFormDefault=&#34;unqualified&#34;&#62;
   <br/>&#62; &#62; &#60;xs:include schemaLocation=&#34;base.xsd&#34;/&#62;
   <br/>&#62; &#62; &#60;/xs:schema&#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62; And now, redefine .xsd both redefine base.xsd and includes other.xsd
   <br/>&#62; &#62;
   <br/>&#62; &#62; &#60;xs:schema xmlns:xs=&#34;http://www.w3.org/2001/XMLSchema&#34; 
   <br/>&#62; &#62; xmlns=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; targetNamespace=&#34;http://modeles.fr/modeles/reference&#34; 
   <br/>&#62; &#62; elementFormDefault=&#34;qualified&#34; attributeFormDefault=&#34;unqualified&#34;&#62;
   <br/>&#62; &#62; &#60;xs:redefine schemaLocation=&#34;base.xsd&#34;&#62;
   <br/>&#62; &#62; &#60;xs:group name=&#34;essai&#34;&#62;
   <br/>&#62; &#62; &#60;xs:choice&#62;
   <br/>&#62; &#62; &#60;xs:group ref=&#34;essai&#34;/&#62;
   <br/>&#62; &#62; &#60;xs:element name=&#34;test&#34;/&#62;
   <br/>&#62; &#62; &#60;/xs:choice&#62;
   <br/>&#62; &#62; &#60;/xs:group&#62;
   <br/>&#62; &#62; &#60;/xs:redefine&#62;
   <br/>&#62; &#62; &#60;xs:include schemaLocation=&#34;other.xsd&#34;/&#62;
   <br/>&#62; &#62; &#60;/xs:schema&#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62; At this time, XML spy complains but not oxygen 14.2. If I remove the 
   <br/>&#62; &#62; include, no problem found.
   <br/>&#62; &#62;
   <br/>&#62; &#62; Any ideas ?
   <br/>&#62; &#62;
   <br/>&#62; &#62; Pierre
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; 
   <br/>&#62; 
  </div>
 
</body></html>
------=_Part_85434_683998463.1363811676122--