Mixing Schema Languages

[On behalf of the XML Schema WG ..]

WSDL allows (unintentionally) users to mix components from different schema
languages for XML - say, DTD, XML Schema, Relax NG, etc. How? Via WSDL
import statements -
http://www.w3.org/TR/2004/WD-wsdl20-20040803/#import-xsd,
http://www.w3.org/TR/2004/WD-wsdl20-20040803/#import-xsd, and
http://www.w3.org/TR/2004/WD-wsdl20-20040803/#relax

Example,

<definitions
 xmlns="http://www.w3.org/2004/08/wsdl"
 xmlns:xs="http://www.w3.org/2001/XMLSchema">
 xmlns:dtd="http://www.example.org/dtd">
 xmlns:rng="http://www.relaxng.org/ns/structure/1.0">

 <types>
  <xs:import namespace="uriA" schemaLocation="a.xsd"/> (XSD)
  <dtd:import namespace="uriB" location="b.dtd"/> (DTD)
  <rng:include namespace="uriC" href="c.rng"/> (RNG)
  <xs:schema targetNamespace="uriA">
   <!-- defs and declarations -->
  </xs:schema>
 </types>

<definitions>

At the component model level, these components map to Definitions.{element
declarations} and {type definitions} properties. We request you to say how
it works, or refer to a definition of how it works, or else to rule out
mixing schema languages.

On behalf of the XML Schema WG,

Asir S Vedamuthu
asirv at webmethods dot com
http://www.webmethods.com/ 

Received on Friday, 15 October 2004 12:40:31 UTC