- From: Philippe Le Hegaret <plh@w3.org>
- Date: 04 Feb 2003 14:04:22 -0500
- To: Steve Graham <sggraham@us.ibm.com>
- Cc: www-ws-desc@w3.org
On Tue, 2003-02-04 at 13:37, Steve Graham wrote: > Regarding [1]: > I am having trouble reading this document. > > Two questions: > 1) Is it legal to have the following in the file: > <!DOCTYPE xs:schema PUBLIC '-//W3C//DTD XMLSCHEMA 200102//EN' > 'http://www.w3.org/2001/XMLSchema.dtd' [ > > <!ENTITY % entities SYSTEM 'entities.dtd' > > > %entities; > ]> > > It seems that two tools have trouble with this construct. This is legal according to XML 1.0: http://www.w3.org/TR/REC-xml#NT-doctypedecl > Second question: > The schema declaration: > <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' > targetNamespace='&wsdl-ns;' > xmlns:wsdl='&wsdl-ns;' > elementFormDefault='qualified' > > > Uses '&WSDL-ns;'. This looks like some sort of parameterized expansion. > Can some one clue me in to how this works? That's a general entity defined in XML 1.0. wsdl-ns is defined in entities.dtd: <!ENTITY wsdl-ns "http://www.w3.org/&draft.year;/&draft.mm;/wsdl"> > Can some one clue me in to how this works? Basically, this mechanism simplifies the publication of the documents and ensure that all materials are in sync. I don't publish the real editors copy of the XML Schemas but an XSLT copy of them. Look at the January version of WSDL 1.2 XML Schema: http://www.w3.org/2003/01/wsdl Entities are removed by the XSL transformation and default attributes are added in the document as well. Philippe
Received on Tuesday, 4 February 2003 14:04:28 UTC