[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: RE: Need to use generate-id() or other method?
Here is the template that builds the table. Where I'm now using a checkbox attribute to indicate if a given step should be timed, I will change to be two columns using the StartTime and EndTime buttons if/when the Timer attribute for <step> = yes. Thanks again. Kathy <xsl:template match="process_steps"> <table border="1" cellpadding="4"> <tr bgcolor="blue" valign="middle"> <th align="left" colspan="2"> <h3>PROCESS STEPS</h3> </th> <xsl:apply-templates/> </tr> </table> </xsl:template> <xsl:template match="step"> <xsl:variable name="space" select="(count(ancestor::step) * 12 + 1) * 7"/> <tr> <td width="5%" align="center" valign="top"> <xsl:apply-templates select="@ckbox[.='yes']"/> </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::step)]"/> </td> </tr> </table> </td> </tr> <xsl:apply-templates select="step"/> </xsl:template> <xsl:template match="@ckbox"> <input type="checkbox"> <xsl:if test=".='yes'"> <xsl:attribute name="unchecked">unchecked</xsl:attribute> </xsl:if> </input> </xsl:template> -----Original Message----- From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] Sent: Thursday, April 24, 2003 4:38 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: RE: RE: Need to use generate-id() or other method? > -----Original Message----- > From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx> > > This does seem to be easier than what I was thinking! > > Although the <step> elements don't have an assigned id attribute, I > use xsl:number when I build the table and they get > numbered 1., 1.1, 1.1.1, etc. > Could I somehow create this attribute as part of my xsl:number > template...then create the StartTime, EndTime attributes as well? It would be easier to help if you posted the template that matches <process_step>. -- Charles Knell cknell@xxxxxxxxxx - email XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|