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

RE: Looking to understand how this works?

Subject: RE: Looking to understand how this works?
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Fri, 11 Apr 2003 14:16:37 +0100
width of albuquerque
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Kathy Burke
> Sent: Friday, April 11, 2003 12:49 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  Looking to understand how this works?
> 
> 
> Americo Albuquerque sent me some wonderful code to lay out 
> outlined steps using table/cells and a space variable. 
> Although I understand there are alternatives, I actually 
> could understand most of this!  But I would love to
> understand:
> 
> (1) The significance of the math to calculate the space 
> variable? Take the count (ie level) of the step multiply by 
> 12 + 1 multiply by 7...just curious.

Ok. 12 is the number of spaces to put (could be any other number).
Multiplied by the step level so you get level*(12 spaces). 7 is the width
in pixels of each space (this could also be any other number). The +1 is
just I don't get width="0", it will be at least 1 space width.

This is used in <table width="space width">

An alternative to this was post by Wendell as:
<xsl:for-each select="ancestor::step">
 <xsl:text>&#160;</xsl:text>
</xsl:for-each>

> 
> (2) What does the line <xsl:apply-templates 
> select="*[not(self::step)]"/> mean?

Here we apply-templates to all childs except step ones.

Hope that this helps you

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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.