W3C home > Mailing lists > Public > public-ws-desc-eds@w3.org > January 2007

2002/ws/desc/test-suite/results-messages generate-xpath-assertions.xslt,1.7,1.8

From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 04 Jan 2007 19:47:30 +0000
To: public-ws-desc-eds@w3.org
Message-Id: <E1H2YYk-0007P5-Cv@lionel-hutz.w3.org>

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

Modified Files:
	generate-xpath-assertions.xslt 
Log Message:
Added the suggestion from Jonathan for better handling for SOAP codes and subcodes


Index: generate-xpath-assertions.xslt
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/results-messages/generate-xpath-assertions.xslt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C 2 -d -r1.7 -r1.8
*** generate-xpath-assertions.xslt	18 Nov 2006 14:51:16 -0000	1.7
--- generate-xpath-assertions.xslt	4 Jan 2007 19:47:28 -0000	1.8
***************
*** 99,106 ****
  	  <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><xsl:value-of select='$msg'/>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Code//soap12:Subcode/soap12:Value[contains(text(), "<xsl:value-of select='@localName'/>")]</assertion>
            </xsl:for-each>
            <xsl:if test='m:fault/m:contentModel'>
--- 99,118 ----
  	  <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><xsl:value-of select='$msg'/>
! 	    <xsl:text>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Code/soap12:Value[substring-after(.,":")="</xsl:text>
! 	    <xsl:value-of select='m:fault/m:soapFaultCode/@localName'/>
! 	    <xsl:text>"][substring-before(.,":") = name(namespace::*[.="</xsl:text>
! 	    <xsl:value-of select='m:fault/m:soapFaultCode/@namespace'/>
! 	    <xsl:text>"])]</xsl:text>
! 	    </assertion>
            </xsl:if>
            <xsl:for-each select='m:fault/m:soapFaultSubcode[@type="code"]'>
!             <assertion><xsl:value-of select='$msg'/>
! 	    <xsl:text>/l:content/soap12:Envelope/soap12:Body/soap12:Fault/soap12:Code//soap12:Subcode/soap12:Value[substring-after(.,":")="</xsl:text>
! 	    <xsl:value-of select='@localName'/>
! 	    <xsl:text>"][substring-before(.,":") = name(namespace::*[.="</xsl:text>
! 	    <xsl:value-of select='@namespace'/>
! 	    <xsl:text>"])]</xsl:text>
! 	    </assertion>
            </xsl:for-each>
            <xsl:if test='m:fault/m:contentModel'>
Received on Thursday, 4 January 2007 19:47:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 January 2007 19:47:38 GMT