This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Preserve the structure in output
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Preserve the structure in output
- From: "Frank Chen" <frank63 at ms5 dot hinet dot net>
- Date: Thu, 19 Jul 2001 01:15:50 +0800
- References: <F187i6nx8dyDd3OJXsN00000759@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi:
Yes, you preserve whitespace nodes in the source tree, but you still need to
copy them into the result tree, something like this:
<xsl:template match="text()">
<xsl:copy/>
</xsl:template>
Frank
----- Original Message -----
From: "Earl Spencer" <eapencer74@hotmail.com>
To: <XSL-List@lists.mulberrytech.com>
Sent: Wednesday, July 18, 2001 10:48 PM
Subject: [xsl] Preserve the structure in output
> Hi Folks,
>
> I have a doubt like when i do a transformation of one xml file into
> another xml file my resuling xml file does not maintan the structure of
the
> previous file like
>
> before transformaton
> <A>
> <B>
> <C>this is c</C>
> </B>
> </A>
>
> after transformationit looks like this
>
> <B><C>this is c</C></B>
>
> but i want it to look like
> <B>
> <C>this is c</C>
> </B>
>
> i tried using preserve white space but it did not work
>
> ne help on this
>
> thanks in advance
> Spencer
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list