W3C home > Mailing lists > Public > public-ws-desc-comments@w3.org > October 2004

Mixing Schema Languages

From: Asir Vedamuthu <asirv@webmethods.com>
Date: Fri, 15 Oct 2004 08:39:56 -0400
Message-ID: <5B10E50E14A4594EB1B5566B69AD9407068E6873@maileast>
To: public-ws-desc-comments@w3.org

[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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:20:31 GMT