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

Re: Fwd: xml/xslt line break

Subject: Re: Fwd: xml/xslt line break
From: Taly <urania.muse@xxxxxxxxx>
Date: Sun, 20 Jul 2008 14:18:33 +0300
Re:  Fwd: xml/xslt line break
I am using version 1.0 thats the problem.I saw a samplw in the web but
didn't work for me:
http://www.dpawson.co.uk/xsl/sect2/break.html#d3080e76
perhaps I donno ow to use call-template the way I should
thanks

On Sun, Jul 20, 2008 at 1:52 PM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> Taly wrote:
>>
>> xml/xslt line break
>> Hi all, I a, getting xml data from another app with '/n' between lines.
>> The problem is that when this gets converted to HTML all of the line
>>  breaks in the CDATA section are lost, and it becomes one long line.
>> Is there a way to format what's inside the CDATA tag to have <br>
>>  after each line?
>
> One solution is to use the HTML pre element e.g. if you have
>  <foo>Line1
>  Line 2
>  Line 3</foo>
> in your XML then you could transform it with
>  <xsl:template match="foo">
>    <pre>
>      <xsl:apply-templates/>
>    </pre>
>  </xsl:template>
>
> If you don't want to use the HTML pre element but want to transform line
> breaks to the HTML br element then that is possible too.
> Which version of XSLT do you use, 1.0 or 2.0?
>
>
>
> --
>
>        Martin Honnen
>        http://JavaScript.FAQTs.com/

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.