Subject: [xsl] Transforming cascading included schemas From: Jean Lemons <jkslagle@xxxxxxxxxxxxx> Date: Mon, 30 Sep 2002 23:02:58 -0500 |
Source wsdl SSS.wsdl: ... <wsdl:definitions name="SSS" ...> <wsdl:types> <xsd:schema> <xsd:include schemaLocation="AAA.xsd"/> </xsd:schema> </wsdl:types> <wsdl:message name="MSG1"> <wsdl:part name="part1" type="type1"/> </wsdl:message> ... <wsdl:portType name="SSSPortType"> <wsdl:operation name="SSS"> <wsdl:input message="MSG1"/> ... </wsdl:operation> </wsdl:portType> ... </wsdl:definitions>
Schema AAA.xsd … <xsd:schema ... > <xsd:include schemaLocation="BBB.xsd"/> <xsd:element name="type1"> <xsd:complexType> <xsd:all> <xsd:element ref="type2"/> … </xsd:all> </xsd:complexType> </xsd:element> … </xsd:schema>
Schema BBB.xsd … <xsd:schema ... > <xsd:element name="type2"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="5"/> </xsd:restriction> </xsd:simpleType> </xsd:element> ... </xsd:schema>
Desired output for the message information is along the lines of: Operation Description SSS Blah Blah Blah INPUT MSG: MSG1 Part part1 Type Name Type Length Min Max Type1 Type2 Type2 String 5 ...
... <!-- Key: types --> <xsl:key name="msgType" match="//xsd:schema//*" use="@name"/> ... <!-- Handle Include --> <xsl:template match="//xsd:include"> <xsl:apply-templates select="document(@schemaLocation)"/> <xsl:apply-templates/> </xsl:template> ...
Thanks, Jeanie
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] FOP and SVG dependency, J.Pietschmann | Thread | RE: [xsl] Transforming cascading in, TSchutzerWeissmann |
[xsl] FOP and SVG dependency, Charles Ohana | Date | [xsl] Re: behavior of xsl:value-of , Dimitre Novatchev |
Month |