xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Formating to text


Subject: Re: Formating to text
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Fri, 24 Mar 2000 07:01:31 -0500

> The problem here is indeed to keep control over the horizontal position
> and current value of the indentation to generate the line breaks while
> running through the tree.
> Updatable variables are eagerly missing here and I don't see how you can
> easily perform this task which would be trivial with any procedural
> language.
> Have I missed something ?

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>

 Steve


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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor