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

Re: Formating to text

Subject: Re: Formating to text
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Fri, 24 Mar 2000 15:44:07 +0100
Re: Formating to text
Steve Tinney wrote:
> Can you do it instead by counting the depth of the node that you are
> handling?  You could use the ancestor:: axis, or a subset of what you
> find along there, i.e., write a template named 'indent' which will
> indent n spaces per level, and call it with:
>         <xsl:call-template name="indent">
>           <xsl:with-param name="level"
>                         select="count(ancestor::*)"/>
>         </xsl:call-template>
Yes, of course ;=) it's a great idea.
And the variation "sum(ancestor::b/@indent)" is even better in my
Now I have to find out how I can mix this with some recursion to keep
control over the horizontal position and generate the line breaks...

Thanks for the tip.


Eric van der Vlist                                             Dyomedea
http://xmlfr.org         http://ducotede.com        http://dyomedea.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.