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

RE: xsl and text with xml indent

Subject: RE: xsl and text with xml indent
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 14:40:13 +0100
xml indent
Perhaps you're using MSXML3, which removes whitespace from the input DOM
unless you build it using preserveWhitespace=true.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of selva
> Sent: 30 July 2001 13:53
> To: XSL LIST
> Subject:  xsl and text with xml indent
>
>
> Hi,
> 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
>
> <myelement>
>    <childelement> childvalue </childelement>
>    <childParent>
>         <grandchild> grandchildvalue </grandchild>
>    </childParent>
> </myelement>
>
> to be converted to
>
> Text_one
>     Text_two childvalue
>     Text_three
>        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,
> Selva
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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