![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Passing a variable for a number level - sub levels not showing Passing a variable for a number level - sub levels not showingTo: NULL Date: 12/10/2006 5:47:00 PM
Hi, the following is just a section of a larger stylesheet. The problem
I'm having is the <form> for the Submit button called "Complete" where
I'm passing the step variable to a StepComplete.aspx page for
processing. The stylesheet uses a multi-level step (for user
instructions) such as 1, 1.1, 1.1.1, etc. If the user clicks the
Complete button on Step 1.1, I need to pass 1.1 as the variable value,
but it passes just the 1 and so on: 1.1.1 for step 1.1.1, etc.
Any suggestions greatly appreciated. I'm not the brightest bulb on the
tree when it comes to xslt!
Thanks,
Kit
<xsl:template match="step">
<xsl:variable name="content">
</xsl:variable>
<xsl:variable name="space" select="(count(ancestor::step) * 10 + 1) *
7"/>
<tr onMouseOver="this.bgColor = '#99FFFF'" onMouseOut ="this.bgColor =
'#FFFFFF'" >
<td align="center" valign="middle">
<xsl:variable name="id">
<xsl:number level="multiple" count="step" format="1.1"/>
</xsl:variable>
<form name="{$id}" action="StepComplete.aspx?StepID={$id}"
method="post">
<input style="CURSOR: POINTER" type="submit" value="Complete"/>
</form>
</td>
<td valign="top">
<table width="100%" border="0" cellpadding="0">
<tr>
<td valign="top" width="{$space}">
<table border="0" cellpadding="0">
<tr>
<td valign="top" width="{$space}">  </td>
<td valign="top">
<xsl:number level="multiple" count="step" format="1.1"/>
<xsl:if test="not(ancestor::step)">
<xsl:text>.</xsl:text>
</xsl:if>
<xsl:text>  </xsl:text>
</td>
</tr>
</table>
</td>
<td>
<xsl:apply-templates select="*[not(self::substeps)]"/>
</td>
</tr>
</table>
</td>
</tr>
<xsl:apply-templates select="substeps/step"/>
</xsl:template>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
