- From: Jonathan Marsh via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 10 Feb 2007 02:09:06 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/results/wsdl-xslt In directory hutz:/tmp/cvs-serv2055/test-suite/results/wsdl-xslt Modified Files: wsdl-component-model.xslt Log Message: wsdl-xslt support for SAWSDL testcases. Index: wsdl-component-model.xslt =================================================================== RCS file: /sources/public/2002/ws/desc/test-suite/results/wsdl-xslt/wsdl-component-model.xslt,v retrieving revision 1.31 retrieving revision 1.32 diff -C 2 -d -r1.31 -r1.32 *** wsdl-component-model.xslt 9 Feb 2007 04:13:18 -0000 1.31 --- wsdl-component-model.xslt 10 Feb 2007 02:09:04 -0000 1.32 *************** *** 16,19 **** --- 16,21 ---- xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsacm="http://www.w3.org/2002/ws/desc/wsdl/component-ws-addressing" + xmlns:sawsdlcm="http://www.w3.org/2002/ws/desc/wsdl/component-sawsdl" + xmlns:sawsdl="http://www.w3.org/2007/01/sawsdl#" exclude-result-prefixes="wsdl wsoap xs wsdlx wrpc whttp wsaw wsa"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> *************** *** 183,186 **** --- 185,193 ---- </interfaceOperations> </xsl:if> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlInterfaceExtension> + <xsl:call-template name="sawsdl-model-reference"/> + </sawsdlcm:sawsdlInterfaceExtension> + </xsl:if> </interfaceComponent> </xsl:if> *************** *** 222,227 **** <xsl:if test="@style"> <style> ! <xsl:call-template name="split-style"> ! <xsl:with-param name="style" select="@style"/> </xsl:call-template> </style> --- 229,234 ---- <xsl:if test="@style"> <style> ! <xsl:call-template name="split-uri-list"> ! <xsl:with-param name="uri-list" select="@style"/> </xsl:call-template> </style> *************** *** 246,249 **** --- 253,261 ---- </rpccm:rpcInterfaceOperationExtension> </xsl:if> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlInterfaceOperationExtension> + <xsl:call-template name="sawsdl-model-reference"/> + </sawsdlcm:sawsdlInterfaceOperationExtension> + </xsl:if> </interfaceOperationComponent> </xsl:template> *************** *** 277,286 **** Recursive named template to convert a space-separated list of styles into xml substructure --> ! <xsl:template name="split-style"> ! <xsl:param name="style"/> ! <xsl:if test="$style!=''"> ! <base:uri><xsl:value-of select="substring-before(concat($style,' '),' ')"/></base:uri> ! <xsl:call-template name="split-style"> ! <xsl:with-param name="style" select="substring-after($style,' ')"/> </xsl:call-template> </xsl:if> --- 289,298 ---- Recursive named template to convert a space-separated list of styles into xml substructure --> ! <xsl:template name="split-uri-list"> ! <xsl:param name="uri-list"/> ! <xsl:if test="$uri-list!=''"> ! <base:uri><xsl:value-of select="substring-before(concat($uri-list,' '),' ')"/></base:uri> ! <xsl:call-template name="split-uri-list"> ! <xsl:with-param name="uri-list" select="substring-after($uri-list,' ')"/> </xsl:call-template> </xsl:if> *************** *** 323,326 **** --- 335,343 ---- </wsacm:wsaInterfaceFaultExtension> </xsl:if> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlInterfaceFaultExtension> + <xsl:call-template name="sawsdl-model-reference"/> + </sawsdlcm:sawsdlInterfaceFaultExtension> + </xsl:if> </interfaceFaultComponent> </xsl:template> *************** *** 903,907 **** <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 920,929 ---- <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 913,917 **** <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 935,944 ---- <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 935,939 **** </xsl:choose> </xsl:variable> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 962,971 ---- </xsl:choose> </xsl:variable> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 953,957 **** <xsl:param name="operation"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($operation,':')"/> <xsl:variable name="prefix" select="substring-before($operation,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 985,994 ---- <xsl:param name="operation"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($operation,':')"><xsl:value-of select="substring-after($operation,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$operation"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($operation,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 963,967 **** <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 1000,1009 ---- <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 980,984 **** </xsl:choose> </xsl:variable> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 1022,1031 ---- </xsl:choose> </xsl:variable> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 998,1002 **** <xsl:param name="operation"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($operation,':')"/> <xsl:variable name="prefix" select="substring-before($operation,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 1045,1054 ---- <xsl:param name="operation"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($operation,':')"><xsl:value-of select="substring-after($operation,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$operation"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($operation,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 1013,1017 **** <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name" select="substring-after($name,':')"/> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> --- 1065,1074 ---- <xsl:param name="name"/> <xsl:param name="namespace-context"/> ! <xsl:variable name="local-name"> ! <xsl:choose> ! <xsl:when test="contains($name,':')"><xsl:value-of select="substring-after($name,':')"/></xsl:when> ! <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise> ! </xsl:choose> ! </xsl:variable> <xsl:variable name="prefix" select="substring-before($name,':')"/> <xsl:variable name="namespace-name" select="$namespace-context/namespace::*[local-name()=$prefix]"/> *************** *** 1054,1057 **** --- 1111,1121 ---- </name> <system>http://www.w3.org/2001/XMLSchema</system> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlElementDeclarationExtension> + <xsl:call-template name="sawsdl-model-reference"/> + <xsl:call-template name="sawsdl-lifting-schema-mapping"/> + <xsl:call-template name="sawsdl-lowering-schema-mapping"/> + </sawsdlcm:sawsdlElementDeclarationExtension> + </xsl:if> </elementDeclarationComponent> </xsl:for-each> *************** *** 1071,1385 **** </name> <system>http://www.w3.org/2001/XMLSchema</system> </typeDefinitionComponent> </xsl:for-each> </xsl:template> <xsl:template name="built-in-types"> ! <typeDefinitionComponent xml:id="xs-anyURI"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>anyURI</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-base64Binary"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>base64Binary</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-boolean"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>boolean</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-byte"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>byte</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-date"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>date</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-dateTime"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>dateTime</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-decimal"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>decimal</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-double"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>double</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-duration"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>duration</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-ENTITIES"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>ENTITIES</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-ENTITY"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>ENTITY</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-float"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>float</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-gDay"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>gDay</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-gMonth"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>gMonth</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-gMonthDay"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>gMonthDay</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-gYear"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>gYear</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-gYearMonth"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>gYearMonth</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-hexBinary"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>hexBinary</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-ID"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>ID</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-IDREF"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>IDREF</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-IDREFS"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>IDREFS</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-int"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>int</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-integer"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>integer</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-language"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>language</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-long"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>long</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-Name"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>Name</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-NCName"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>NCName</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-negativeInteger"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>negativeInteger</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-NMTOKEN"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>NMTOKEN</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-NMTOKENS"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>NMTOKENS</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-nonNegativeInteger"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>nonNegativeInteger</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-nonPositiveInteger"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>nonPositiveInteger</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-normalizedString"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>normalizedString</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-NOTATION"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>NOTATION</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-positiveInteger"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>positiveInteger</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-QName"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>QName</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-short"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>short</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-string"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>string</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-time"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>time</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-token"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>token</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-unsignedByte"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>unsignedByte</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-unsignedInt"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>unsignedInt</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-unsignedLong"> ! <name> ! <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>unsignedLong</base:localName> ! </name> ! <system>http://www.w3.org/2001/XMLSchema</system> ! </typeDefinitionComponent> ! <typeDefinitionComponent xml:id="xs-unsignedShort"> <name> <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName>unsignedShort</base:localName> </name> <system>http://www.w3.org/2001/XMLSchema</system> </typeDefinitionComponent> </xsl:template> --- 1135,1293 ---- </name> <system>http://www.w3.org/2001/XMLSchema</system> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlTypeDefinitionExtension> + <xsl:call-template name="sawsdl-model-reference"/> + <xsl:call-template name="sawsdl-lifting-schema-mapping"/> + <xsl:call-template name="sawsdl-lowering-schema-mapping"/> + </sawsdlcm:sawsdlTypeDefinitionExtension> + </xsl:if> </typeDefinitionComponent> </xsl:for-each> </xsl:template> <xsl:template name="built-in-types"> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">anyURI</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">base64Binary</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">boolean</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">byte</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">date</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">dateTime</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">decimal</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">double</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">duration</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">ENTITIES</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">ENTITY</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">float</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">gDay</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">gMonth</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">gMonthDay</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">gYear</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">gYearMonth</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">hexBinary</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">ID</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">IDREF</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">IDREFS</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">int</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">integer</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">language</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">long</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">Name</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">NCName</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">negativeInteger</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">NMTOKEN</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">NMTOKENS</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">nonNegativeInteger</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">nonPositiveInteger</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">normalizedString</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">NOTATION</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">positiveInteger</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">QName</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">short</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">string</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">time</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">token</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">unsignedByte</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">unsignedInt</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">unsignedLong</xsl:with-param> ! </xsl:call-template> ! <xsl:call-template name="built-in-simple-type"> ! <xsl:with-param name="type">unsignedShort</xsl:with-param> ! </xsl:call-template> ! </xsl:template> ! <xsl:template name="built-in-simple-type"> ! <xsl:param name="type"/> ! <typeDefinitionComponent xml:id="xs-{$type}"> <name> <base:namespaceName>http://www.w3.org/2001/XMLSchema</base:namespaceName> ! <base:localName><xsl:value-of select="$type"/></base:localName> </name> <system>http://www.w3.org/2001/XMLSchema</system> + <xsl:if test="$sawsdl-engaged"> + <sawsdlcm:sawsdlTypeDefinitionExtension/> + </xsl:if> </typeDefinitionComponent> </xsl:template> *************** *** 1550,1552 **** --- 1458,1487 ---- </xsl:if> </xsl:template> + <xsl:template name="sawsdl-model-reference"> + <xsl:if test="@sawsdl:modelReference"> + <sawsdlcm:modelReference> + <xsl:call-template name="split-uri-list"> + <xsl:with-param name="uri-list" select="@sawsdl:modelReference"/> + </xsl:call-template> + </sawsdlcm:modelReference> + </xsl:if> + </xsl:template> + <xsl:template name="sawsdl-lifting-schema-mapping"> + <xsl:if test="@sawsdl:liftingSchemaMapping"> + <sawsdlcm:liftingSchemaMapping> + <xsl:call-template name="split-uri-list"> + <xsl:with-param name="uri-list" select="@sawsdl:liftingSchemaMapping"/> + </xsl:call-template> + </sawsdlcm:liftingSchemaMapping> + </xsl:if> + </xsl:template> + <xsl:template name="sawsdl-lowering-schema-mapping"> + <xsl:if test="@sawsdl:loweringSchemaMapping"> + <sawsdlcm:loweringSchemaMapping> + <xsl:call-template name="split-uri-list"> + <xsl:with-param name="uri-list" select="@sawsdl:loweringSchemaMapping"/> + </xsl:call-template> + </sawsdlcm:loweringSchemaMapping> + </xsl:if> + </xsl:template> </xsl:stylesheet>
Received on Saturday, 10 February 2007 02:09:52 UTC