W3C home > Mailing lists > Public > public-ws-desc-eds@w3.org > October 2006

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

From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 20 Oct 2006 16:17:29 +0000
To: public-ws-desc-eds@w3.org
Message-Id: <E1Gax3p-00062G-PQ@lionel-hutz.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:20 UTC