- From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 09 Jul 2007 20:39:14 +0000
- To: public-ws-addressing-eds@w3.org
Update of /sources/public/2004/ws/addressing/testsuitewsdl/logs/ws-i In directory hutz:/tmp/cvs-serv25855/logs/ws-i Added Files: log.xml ws-i-sort.xsl ws-i.xsl Log Message: Moved from cvs.w3.org --- NEW FILE: log.xml --- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="log.xsl" type="text/xsl" ?> <log timestamp="2006-01-17T22:26:10.578" xmlns="http://www.ws-i.org/testing/2003/03/log/" xmlns:wsi-monConfig="http://www.ws-i.org/testing/2003/03/monitorConfig/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <monitor version="1.0.0" releaseDate="2005-07-04"> <implementer name="WS-I Organization" location="http://www.ws-i.org"/> <environment> <runtime name="Java(TM) 2 Runtime Environment, Standard Edition" version="1.4.2"/> <operatingSystem name="Windows XP" version="5.1"/> <xmlParser name="Apache Xerces" version="XML4J 4.3.4"/> </environment> <wsi-monConfig:configuration> <wsi-monConfig:comment>This configuration file is used to test the WS-I sample applications running on a single system.</wsi-monConfig:comment> <wsi-monConfig:logFile replace="true" location="log.xml"> <wsi-monConfig:addStyleSheet href="../common/xsl/log.xsl" type="text/xsl" /> </wsi-monConfig:logFile> <wsi-monConfig:logDuration>600</wsi-monConfig:logDuration> [...1230 lines suppressed...] Connection: Keep-Alive
 Content-Type: application/soap+xml; charset=utf-8;action="";
 Content-Length: 896
 Date: Tue, 17 Jan 2006 22:26:27 GMT
 
 </httpHeaders> </messageEntry> <messageEntry xsi:type="httpMessageEntry" ID="64" conversationID="2" type="response" timestamp="2006-01-17T22:26:27.969"> <messageContent></messageContent> <senderHostAndPort>localhost:9080</senderHostAndPort> <receiverHostAndPort>127.0.0.1:3438</receiverHostAndPort> <httpHeaders>HTTP/1.1 200 OK
 Content-Length: 0
 Content-Language: en-GB
 Server: WebSphere Application Server/7.0
 Date: Tue, 17 Jan 2006 22:26:27 GMT
 
 </httpHeaders> </messageEntry> </log> --- NEW FILE: ws-i-sort.xsl --- <xsl:stylesheet version="1.0" xmlns:l="http://www.w3.org/2002/ws/addressing/logs/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> <xsl:template match="l:log"> <l:log xmlns:l="http://www.w3.org/2002/ws/addressing/logs/"> <xsl:for-each select="//l:message[@type='request']"> <xsl:sort select="@timestamp"/> <xsl:copy-of select="current()"/> <xsl:copy-of select="following-sibling::l:message[1]"/> </xsl:for-each> </l:log> </xsl:template> </xsl:stylesheet> --- NEW FILE: ws-i.xsl --- <?xml version="1.0" encoding="UTF-8"?> <!-- $Header: /sources/public/2004/ws/addressing/testsuitewsdl/logs/ws-i/ws-i.xsl,v 1.1 2007/07/09 20:39:12 plehegar Exp $ Convert WS-I Monitor file into WS-Addressing Log file --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsi-log303="http://www.ws-i.org/testing/2003/03/log/" xmlns:wsi-log407="http://www.ws-i.org/testing/2004/07/log/"> <xsl:output method="xml" indent="yes"/> <xsl:variable name="bom"><?xml</xsl:variable> <xsl:variable name="gone"><?_xml</xsl:variable> <xsl:template match="wsi-log303:log"> <l:log xmlns:l="http://www.w3.org/2002/ws/addressing/logs/"> <xsl:for-each select="//wsi-log303:messageEntry"> <xsl:variable name="content"> <xsl:call-template name="replace"> <xsl:with-param name="text" select="wsi-log303:messageContent"/> <xsl:with-param name="replace" select="$bom"/> <xsl:with-param name="with" select="$gone"/> <xsl:with-param name="disable-output-escaping" select="yes"/> </xsl:call-template> </xsl:variable> <l:message timestamp="{@timestamp}" conversation="{@conversationID}" wsi-log303:ID="{@ID}" type="{@type}"> <l:content> <xsl:value-of select="$content" disable-output-escaping="yes"/> </l:content> <xsl:copy-of select="wsi-log303:senderHostAndPort"/> <xsl:copy-of select="wsi-log303:receiverHostAndPort"/> <xsl:copy-of select="wsi-log303:httpHeaders"/> </l:message> </xsl:for-each> </l:log> </xsl:template> <xsl:template match="wsi-log407:log"> <l:log xmlns:l="http://www.w3.org/2002/ws/addressing/logs/"> <xsl:for-each select="//wsi-log407:messageEntry"> <xsl:variable name="content"> <xsl:call-template name="replace"> <xsl:with-param name="text" select="wsi-log407:messageContent"/> <xsl:with-param name="replace" select="$bom"/> <xsl:with-param name="with" select="$gone"/> <xsl:with-param name="disable-output-escaping" select="yes"/> </xsl:call-template> </xsl:variable> <l:message timestamp="{@timestamp}" conversation="{@conversationID}" wsi-log407:ID="{@ID}" type="{@type}"> <l:content> <xsl:value-of select="$content" disable-output-escaping="yes"/> </l:content> <xsl:copy-of select="wsi-log407:senderHostAndPort"/> <xsl:copy-of select="wsi-log407:receiverHostAndPort"/> <xsl:copy-of select="wsi-log407:httpHeaders"/> </l:message> </xsl:for-each> </l:log> </xsl:template> <!-- http://xsltsl.sourceforge.net/ --> <xsl:template name="replace"> <xsl:param name="text"/> <xsl:param name="replace"/> <xsl:param name="with"/> <xsl:param name="disable-output-escaping">no</xsl:param> <xsl:choose> <xsl:when test="string-length($replace) = 0 and $disable-output-escaping = 'yes'"> <xsl:value-of select="$text" disable-output-escaping="yes"/> </xsl:when> <xsl:when test="string-length($replace) = 0"> <xsl:value-of select="$text"/> </xsl:when> <xsl:when test="contains($text, $replace)"> <xsl:variable name="before" select="substring-before($text, $replace)"/> <xsl:variable name="after" select="substring-after($text, $replace)"/> <xsl:choose> <xsl:when test='$disable-output-escaping = "yes"'> <xsl:value-of select="$before" disable-output-escaping="yes"/> <xsl:value-of select="$with" disable-output-escaping="yes"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$before"/> <xsl:value-of select="$with"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="replace"> <xsl:with-param name="text" select="$after"/> <xsl:with-param name="replace" select="$replace"/> <xsl:with-param name="with" select="$with"/> <xsl:with-param name="disable-output-escaping" select="$disable-output-escaping"/> </xsl:call-template> </xsl:when> <xsl:when test='$disable-output-escaping = "yes"'> <xsl:value-of select="$text" disable-output-escaping="yes"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
Received on Monday, 9 July 2007 20:39:16 UTC