Subject: RE: [xsl] indentation in xsl From: "Michael Kay" <mhk@xxxxxxxxx> Date: Mon, 7 Apr 2003 19:03:00 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] indentation in xsl, Oleg Tkachenko | Thread | RE: [xsl] indentation in xsl, Andrew Welch |
RE: [xsl] Fw: Root Node and apply-t, Avula, Raj | Date | RE: [xsl] Strip space in Sablotron , Avula, Raj |
Month |