2002/ws/desc/wsdl20 wsdldefs.xsl,1.11,1.12

Update of /sources/public/2002/ws/desc/wsdl20
In directory homer:/tmp/cvs-serv32076

Modified Files:
	wsdldefs.xsl 
Log Message:
Improved error messages

Index: wsdldefs.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/wsdl20/wsdldefs.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** wsdldefs.xsl	11 Nov 2005 07:46:28 -0000	1.11
--- wsdldefs.xsl	13 Nov 2005 21:11:19 -0000	1.12
***************
*** 98,106 ****
  	<xsl:template name="component-src">
  		<xsl:param name="component"/>
! 		<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/compdef[@comp=normalize-space($component)]/../@src"/>
  		<xsl:if test="string-length($src) = 0">
  		  <xsl:message>
  		    <xsl:text>Wrong component reference: </xsl:text>
! 		    <xsl:value-of select="$component"/>
  		  </xsl:message>
  		</xsl:if>
--- 98,107 ----
  	<xsl:template name="component-src">
  		<xsl:param name="component"/>
! 		<xsl:variable name="c" select="normalize-space($component)"/>
! 		<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/compdef[@comp=$c]/../@src"/>
  		<xsl:if test="string-length($src) = 0">
  		  <xsl:message>
  		    <xsl:text>Wrong component reference: </xsl:text>
! 		    <xsl:value-of select="$c"/>
  		  </xsl:message>
  		</xsl:if>
***************
*** 201,211 ****
  		<xsl:param name="component" />
  		<xsl:param name="property" />
! 		<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/propdef[@comp=normalize-space($component)][@prop=normalize-space($property)]/../@src"/>
  		<xsl:if test="string-length($src) = 0">
  		  <xsl:message>
  		    <xsl:text>Wrong property reference: </xsl:text>
! 		    <xsl:value-of select="$component"/>
  		    <xsl:text> / </xsl:text>
! 		    <xsl:value-of select="$property"/>
  		  </xsl:message>
  		</xsl:if>
--- 202,214 ----
  		<xsl:param name="component" />
  		<xsl:param name="property" />
! 		<xsl:variable name="c" select="normalize-space($component)"/>
! 		<xsl:variable name="p" select="normalize-space($property)"/>
! 		<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/propdef[@comp=$c][@prop=$p]/../@src"/>
  		<xsl:if test="string-length($src) = 0">
  		  <xsl:message>
  		    <xsl:text>Wrong property reference: </xsl:text>
! 		    <xsl:value-of select="$c"/>
  		    <xsl:text> / </xsl:text>
! 		    <xsl:value-of select="$p"/>
  		  </xsl:message>
  		</xsl:if>

Received on Sunday, 13 November 2005 21:11:23 UTC