Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Passing a variable for a number level - sub levels not showing

From: "Kat" <kathyburke40@-------.--->
To: 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}">&#160;&#160;</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>&#160;&#160;</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>



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent