This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: indenting output Q?
- From: "Joerg Heinicke" <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 12 Dec 2001 21:57:42 +0100
- Subject: Re: [xsl] indenting output Q?
- References: <OF59CE5C19.7D7BF7A0-ONC2256B20.0059172F@e-know.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
XSL isn't the right thing for formatting the output-tree. The only simple
thing is Oleg's sugestion <xsl:output indent="yes"/>. Then the code looks
like the following:
<ADT_A01>
<MSH>
<MSH.1>|</MSH.1>
<MSH.2>~^\&</MSH.2>
This is still not perfect but better than everything in one line.
The best maybe would be a formatting stylesheet and a
two-step-transformation.
Regards,
Joerg
----- Original Message -----
From: <Jakub.Valenta@Deio.net>
To: <XSL-List@lists.mulberrytech.com>
Sent: Wednesday, December 12, 2001 5:16 PM
Subject: [xsl] indenting output Q?
> Hi all,
> I would like to ask how to produce some good looking output with Xalan.
>
> my template is:
> <xsl:template match="event_name">
> <ADT_A01>
> <MSH>
> <MSH.1>|</MSH.1>
> <MSH.2>~^\&</MSH.2>
> ...
>
> but the result is:
>
> <ADT_A01><MSH><MSH.1>|</MSH.1><MSH.2>~^\&</MSH.2> ...
>
> and I would like it to be:
>
> <ADT_A01>
> <MSH>
> <MSH.1>|</MSH.1>
> <MSH.2>~^\&</MSH.2>
> ...
>
> any hints?
>
> br,
>
> Jakub
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list