[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?

Subject: RE: RE: RE: Need to use generate-id() or other method?
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Thu, 24 Apr 2003 16:46:42 -0400
generate id tables
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}">&#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::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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.