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

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 UTC