I'm attempting to generate a WSDL fragment containing the <types> for the
web service.
Expected result:
<schema targetNamespace="urn:bpel:jiap" xmlns=
"http://www.w3.org/2001/XMLSchema">
Result being generated by stylesheet:
<!--s/b: xmlns="http://www.w3.org/2001/XMLSchema" -->
<schema xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace=
"urn:bpel:jiap"/>
I'm using the xalan from Jdk 1.4.2_08 rt.jar.
This appears to be a bug in xalan, but I'll be happy if this is a bug in my
stylesheet.
Michael Giroux
XML input file:
<?xml version='1.0' ?>
<component name='custDemo'>
</component>
Stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version = '1.0' xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:tns=
"urn:bpel:jiap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xalan="http://xml.apache.org/xslt" >
<xsl:output method="xml" indent="yes" xalan:indent-amount="2"/>
<xsl:template match="component">
<definitions targetNamespace="urn:bpel:jiap">
<xsl:element name="types">
<xsl:comment>s/b: xmlns="http://www.w3.org/2001/XMLSchema"
</xsl:comment>
<xsl:element name="schema" namespace="
http://www.w3.org/2001/XMLSchema">
<xsl:attribute name="targetNamespace">urn:bpel:jiap
</xsl:attribute>
</xsl:element> <!-- </schema> -->
</xsl:element> <!-- </types> -->
</definitions>
</xsl:template>
</xsl:stylesheet>