[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: step-by-step work instructions -- recursive apply-
Hi > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Kathy Burke > Sent: Wednesday, April 09, 2003 7:40 PM > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: RE: step-by-step work instructions -- > recursive apply-templ ates to cr eate html table > > > Americo, > > This is really nice...once I figure out how to get the text > in the steps and include the other para subelements... > > For my learning purposes...would you mind explaining what > these two lines do? > > <xsl:variable name="space" select="(count(ancestor::step) > * 13 + 1) * 7"/> This sets sets the space variable so I can set the width used in the table. It is what makes the format It is used later like this: (...) <td valign="top" width="{$space}"> <table border="0"> <tr> <td width="{$space}"> </td> <td> <xsl:number level="multiple" count="step" format="1.1"/> (...) > > <xsl:if test="not(ancestor::step)"> In your example you have: 1. 1.1 This tests if the current step is the first ancestor so I can add the extra '.' If you don't want this you can remove this line > > Thanks again. > Your welcome :) 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
|