There are a couple tricks to do this, but I think your best bet would
be to add a cdata section to your xml - I think that will solve your
problem. So:

<caption><![CDATA[ "I now have a natural looking radiant smile that receives
constant compliments and additionally have no more headaches!"  --
Gina ]]></caption>

Will keep the parser from parsing the data and removing the line
breaks - at least it should.

Otherwise you could do it in the xslt by adding
<xsl:text>&#x0A;</xsl:text> to get some line breaks in there.

Hope that helps

On Mon, 31 Jan 2005 11:22:54 -0500, Mark Leder <[EMAIL PROTECTED]> wrote:
> Alex,
> Thanks for looking into this with me.
> Here's an XML snip, showing two different pic captions.  The second
> <caption>, I inserted a <br /> to show where I would want a break for a new
> paragraph.
> To see the actual flash, go to http://www.pearlywhitesmile.com/testimonials/
> ==============
> 
> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
> <images>
>     <pic>
> 
> <image>http://www.pearlywhitesmile.com/images/photos/testimonials/01.jpg</im
> age>
>         <caption>"I now have a natural looking radiant smile that receives
> constant compliments and additionally have no more headaches!"  --
> Gina</caption>
>     </pic>
>     <pic>
> 
> <image>http://www.pearlywhitesmile.com/images/photos/testimonials/02.jpg</im
> age>
>         <caption>Late last year, I was in the process of looking for a new
> dentist. As I was contemplating having cosmetic dentistry performed I didn't
> feel that my current dentist was qualified to perform the latest cosmetic
> techniques. <br /><br />After much research, I decided to make an
> appointment with Dr. Barry for a consultation.  -- Patricia</caption>
>     </pic>
>  </images>
> 
> ==============
> Thanks,
> Mark
> 
> -----Original Message-----
> From: Alex Sherwood [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 31, 2005 10:59 AM
> To: CF-Talk
> Subject: Re: XML/XSLT Line Break
> 
> I'm a little confused. Can you post a sample XML document, and mark where
> the line breaks should be?
> 
> If I understand, you want to be able to embed line breaks in the caption
> text and then have the line breaks be refelected when the caption text is
> displayed? The front end is Flash, right?
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192363
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to