Re: [xsl] Preserve the structure in output

Subject: Re: [xsl] Preserve the structure in output
From: "Frank Chen" <frank63@xxxxxxxxxxxxx>
Date: Thu, 19 Jul 2001 01:15:50 +0800
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@xxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
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


Current Thread