[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: step-by-step work instructions -- recursive apply-

Subject: RE: step-by-step work instructions -- recursive apply-templ ates to cr eate html table
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Wed, 9 Apr 2003 20:00:20 +0100
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}">&#160;</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


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.