|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: indentation in xsl
> I am trying to do some recursive transforming with an
> identation. Currently I have no clue how to get started. My
> XML looks like this
>
> <folder name="Test1">
> <folder name="SubTest1"/>
> <folder name="SubTest2">
> <folder name="SubSubTest2"/>
> </folder>
> </folder>
>
> Now I want to transform it with XSL but put a number of
> spaces in front depending on the depth of the particular folder.
<xsl:template match="folder">
<xsl:for-each select="ancestor::*">
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:template>
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
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
|

Cart








