Re: [xsl] various XSD format

Subject: Re: [xsl] various XSD format
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 11 May 2007 14:21:09 +0100
Pierre

The second is an older form of schema, used, and I think invented, by Microsoft before XSD was finalised.
It is called XDR, XML Data Reduced.
It is only used in their products now for backward compatibility.
I'm not sure if there's an XSLT to convert but there is a tool that does a good a job as possible. It is called xsd.exe and comes as part of the .NET framework SDK.



Joe http://joe.fawcett.name

----- Original Message ----- From: "Bru, Pierre" <Pierre.Bru@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, May 11, 2007 2:08 PM
Subject: [xsl] various XSD format



hi,


I'm used to read XSL file looking like

 <xsd:element name="EO_Characteristics">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="EO_REFERENCE" minOccurs="1" maxOccurs="1"/>
       <xsd:element ref="EO_Originator" minOccurs="1" maxOccurs="1"/>
       <xsd:element ref="Product_Addressee" minOccurs="1"
maxOccurs="1"/>
       <xsd:element ref="SCHEDULED_DATE" minOccurs="0" maxOccurs="1"/>
       <xsd:element ref="COMMENT_TEXT" minOccurs="0" maxOccurs="1"/>
     </xsd:sequence>
   </xsd:complexType>
 </xsd:element>

but I receltly when thru one looking like

 <elementType name="EO_Characteristics">
   <sequence>
     <elementTypeRef name="EO_REFERENCE" minOccur="1" maxOccur="1"/>
     <elementTypeRef name="EO_Originator" minOccur="1" maxOccur="1"/>
     <elementTypeRef name="Product_Addressee" minOccur="1"
maxOccur="1"/>
     <elementTypeRef name="SCHEDULED_DATE" minOccur="0" maxOccur="1"/>
     <elementTypeRef name="COMMENT_TEXT" minOccur="0" maxOccur="1"/>
   </sequence>
 </elementType>

what is the diffence between these two formats ? is there some known XSL
to go from the second to the first ?

TIA,
Pierre.

Current Thread