W3C home > Mailing lists > Public > public-ws-addressing-eds@w3.org > July to September 2007

2004/ws/addressing/testsuitewsdl/report rollup.xslt,1.1,1.2

From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 16 Jul 2007 20:44:01 +0000
To: public-ws-addressing-eds@w3.org
Message-Id: <E1IAXQH-0003UG-Kk@lionel-hutz.w3.org>

Update of /sources/public/2004/ws/addressing/testsuitewsdl/report
In directory hutz:/tmp/cvs-serv13348

Modified Files:
	rollup.xslt 
Log Message:
Added xsl:param to fix
 Error at xsl:for-each on line 45 of file:/home/plehegar/dev/2004/ws/addressing/testsuitewsdl/report/rollup.xslt:
  XPST0008: XPath syntax error at char 7 on line 45 in {$rollup/log}:
    Variable $rollup has not been declared
Failed to compile stylesheet. 1 error detected.


Index: rollup.xslt
===================================================================
RCS file: /sources/public/2004/ws/addressing/testsuitewsdl/report/rollup.xslt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** rollup.xslt	9 Jul 2007 20:39:12 -0000	1.1
--- rollup.xslt	16 Jul 2007 20:43:56 -0000	1.2
***************
*** 15,53 ****
  	</xsl:template>
  	<xsl:template match="test-rollup">
! 		<xsl:variable name="rollup" select="."/>
! 		<xsl:copy-of select="participants"/>
! 		<vendors>
! 			<xsl:for-each select="$rollup/log">
! 				<xsl:sort select="@server" order="ascending"/>
! 				<xsl:sort select="@client" order="ascending"/>
! 				<vendor index="{position()}" client="{@client}" server="{@server}" href="{@href}"/>
! 			</xsl:for-each>
! 		</vendors>
! 		<required>
! 			<xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='REQUIRED']">
! 				<xsl:with-param name="rollup" select="$rollup"/>
! 			</xsl:apply-templates>
! 		</required>
! 		<optional>
! 			<xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='OPTIONAL']">
! 				<xsl:with-param name="rollup" select="$rollup"/>
! 			</xsl:apply-templates>
! 		</optional>
! 		<informational>
! 			<xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='INFORMATIONAL']">
! 				<xsl:with-param name="rollup" select="$rollup"/>
! 			</xsl:apply-templates>
! 		</informational>
  	</xsl:template>
  	<xsl:template match="testcases:testcase">
! 		<testcase id="{@xml:id}" href="http://www.w3.org/2002/ws/addr/testsuitewsdl/testcases/#{@xml:id}" type="{@cr}">
! 			<xsl:variable name="testcase-id" select="@xml:id"/>
! 			<xsl:for-each select="$rollup/log">
! 				<xsl:sort select="@server" order="ascending"/>
! 				<xsl:sort select="@client" order="ascending"/>
! 				<result index="{position()}" href="{@results}">
! 					<xsl:choose>
! 						<xsl:when test="document(@results)">
! 							<xsl:if test="document(@href)/log:log/log:message[@testcase=$testcase-id]">
  								<xsl:variable name="assertion" select="document(@results)/results/assertion[@against=$testcase-id]"/>
  								<xsl:choose>
--- 15,55 ----
  	</xsl:template>
  	<xsl:template match="test-rollup">
! 	  <xsl:variable name="rollup" select="."/>
! 	  <xsl:copy-of select="participants"/>
! 	  <vendors>
! 	    <xsl:for-each select="$rollup/log">
! 	      <xsl:sort select="@server" order="ascending"/>
! 	      <xsl:sort select="@client" order="ascending"/>
! 	      <vendor index="{position()}" client="{@client}" server="{@server}" href="{@href}"/>
! 	    </xsl:for-each>
! 	  </vendors>
! 	  <required>
! 	    <xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='REQUIRED']">
! 	      <xsl:with-param name="rollup" select="$rollup"/>
! 	    </xsl:apply-templates>
! 	  </required>
! 	  <optional>
! 	    <xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='OPTIONAL']">
! 	      <xsl:with-param name="rollup" select="$rollup"/>
! 	    </xsl:apply-templates>
! 	  </optional>
! 	  <informational>
! 	    <xsl:apply-templates select="$testcases/testcases:testcases/testcases:testcase[@cr='INFORMATIONAL']">
! 	      <xsl:with-param name="rollup" select="$rollup"/>
! 	    </xsl:apply-templates>
! 	  </informational>
  	</xsl:template>
  	<xsl:template match="testcases:testcase">
! 	  <xsl:param name="rollup"/>
! 	  
! 	  <testcase id="{@xml:id}" href="http://www.w3.org/2002/ws/addr/testsuitewsdl/testcases/#{@xml:id}" type="{@cr}">
! 	    <xsl:variable name="testcase-id" select="@xml:id"/>
! 	    <xsl:for-each select="$rollup/log">
! 	      <xsl:sort select="@server" order="ascending"/>
! 	      <xsl:sort select="@client" order="ascending"/>
! 	      <result index="{position()}" href="{@results}">
! 		<xsl:choose>
! 		  <xsl:when test="document(@results)">
! 		    <xsl:if test="document(@href)/log:log/log:message[@testcase=$testcase-id]">
  								<xsl:variable name="assertion" select="document(@results)/results/assertion[@against=$testcase-id]"/>
  								<xsl:choose>
Received on Monday, 16 July 2007 20:44:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:19:42 GMT