2002/ws/desc/test-suite/results-messages generate-xpath-assertions.xslt,1.4,1.5

Update of /sources/public/2002/ws/desc/test-suite/results-messages
In directory hutz:/tmp/cvs-serv20221

Modified Files:
	generate-xpath-assertions.xslt 
Log Message:
Added more fault checking


Index: generate-xpath-assertions.xslt
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/results-messages/generate-xpath-assertions.xslt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** generate-xpath-assertions.xslt	18 Nov 2006 11:39:32 -0000	1.4
--- generate-xpath-assertions.xslt	18 Nov 2006 13:14:27 -0000	1.5
***************
*** 95,100 ****
  	<xsl:if test='m:fault'>
  	  <assertion>count(<xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/*)=1</assertion>
! 	  <assertion><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/*[local-name()='Fault' and namespace-uri()='http://www.w3.org/2003/05/soap-envelope']</assertion>
! 	</xsl:if>
  	<xsl:if test='m:soapModule/@ref="http://www.w3.org/2002/ws/desc/6/10/test-module"'>
  	  <assertion><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Header/module:module-test</assertion>
--- 95,110 ----
  	<xsl:if test='m:fault'>
  	  <assertion>count(<xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/*)=1</assertion>
! 	  <assertion><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/soap12:Fault</assertion>
!           <xsl:if test='m:fault/m:soapFaultCode[@type="code"]'>
!             <assertion>contains(<xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Code/soap12:Value, "<xsl:value-of select='m:fault/m:soapFaultCode/@localName'/>")</assertion>
!           </xsl:if>
!           <xsl:for-each select='m:fault/m:soapFaultSubcode[@type="code"]'>
!             <assertion>contains(<xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Code//soap12:Subcode/soap12:Value, "<xsl:value-of select='@localName'/>")</assertion>
!           </xsl:for-each>
!           <xsl:if test='m:fault/m:contentModel'>
!             <assertion><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Detail[<xsl:text>local-name()="</xsl:text>
!             <xsl:value-of select='m:fault/m:contentModel/@localName'/>" and namespace-uri()="<xsl:value-of select='m:fault/m:contentModel/@namespace'/>"]</assertion>
!           </xsl:if>
!         </xsl:if>
  	<xsl:if test='m:soapModule/@ref="http://www.w3.org/2002/ws/desc/6/10/test-module"'>
  	  <assertion><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Header/module:module-test</assertion>

Received on Saturday, 18 November 2006 13:14:38 UTC