[xsl] xsl and text with xml indent

Subject: [xsl] xsl and text with xml indent
From: selva <selva@xxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 18:22:54 +0530
I am trying to convert an XML document to a text document. While
converting, I would like to preserve the indentation from the source xml
file. For
example, an xml element

   <childelement> childvalue </childelement>
        <grandchild> grandchildvalue </grandchild>

to be converted to

    Text_two childvalue
       Text_four grandchildvalue

I am using templates to deal with avery element and saying
"apply-templates" when matching for the root element. I get the data
formatted in text form, but the indentation is lost. I tried to use
<xsl:output method="text" indent="yes"/>
but I couldn't get the expected result. Can anybody tell me how to
achieve this?

Thanks & Regards,

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

Current Thread