2002/ws/desc/test-suite/messages ws-i.xsl,1.1,1.2

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

Modified Files:
	ws-i.xsl 
Log Message:
Better handling of the HTTP code
Added support for PUT


Index: ws-i.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/messages/ws-i.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** ws-i.xsl	19 Oct 2006 14:41:40 -0000	1.1
--- ws-i.xsl	20 Oct 2006 16:17:27 -0000	1.2
***************
*** 93,108 ****
  	    </xsl:when>
  	    <xsl:when test='starts-with($text, "HTTP/1.")'>
! 	      <xsl:choose>
! 		<xsl:when test='contains($text, " 200 OK")'>
! 		  <http:code value="200"><xsl:value-of select='$text'/></http:code>
! 		</xsl:when>
! 		<xsl:otherwise>
! 		  <http:code><xsl:value-of select='$text'/></http:code>
! 		</xsl:otherwise>
! 	      </xsl:choose>
  	    </xsl:when>
  	    <xsl:when test='starts-with($text, "POST ")'>
  	      <http:method value="POST"><xsl:value-of select='substring-before(substring-after($text, "POST "), " HTTP")'/></http:method>
  	    </xsl:when>
  	    <xsl:when test='starts-with($text, "GET ")'>
  	      <http:method value="GET"><xsl:value-of select='substring-before(substring-after($text, "POST "), " HTTP")'/></http:method>
--- 93,106 ----
  	    </xsl:when>
  	    <xsl:when test='starts-with($text, "HTTP/1.")'>
! 	      <http:code value='{substring-before(substring-after($text, " "), " ")}'>
! 		<xsl:value-of select='$text'/>
! 	      </http:code>
  	    </xsl:when>
  	    <xsl:when test='starts-with($text, "POST ")'>
  	      <http:method value="POST"><xsl:value-of select='substring-before(substring-after($text, "POST "), " HTTP")'/></http:method>
  	    </xsl:when>
+ 	    <xsl:when test='starts-with($text, "PUT ")'>
+ 	      <http:method value="PUT"><xsl:value-of select='substring-before(substring-after($text, "PUT "), " HTTP")'/></http:method>
+ 	    </xsl:when>
  	    <xsl:when test='starts-with($text, "GET ")'>
  	      <http:method value="GET"><xsl:value-of select='substring-before(substring-after($text, "POST "), " HTTP")'/></http:method>

Received on Friday, 20 October 2006 16:17:31 UTC