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

RE: Trying to put a <BR> in a string parameter

Subject: RE: Trying to put a <BR> in a string parameter
From: Kerin Cosford <Kerin.Cosford@xxxxxxxxxxxxxxxxx>
Date: Fri, 13 Jul 2001 15:25:45 +0100
br in a string
sorry, I was thinking in terms of XHTML, which is what all the HTML I've
produced in the last few months have been - when you output XML, ou specify
output method as XML, rather than HTML - hence <br/> not being converted to
<br>.

-----Original Message-----
From: Thomas B. Passin [mailto:tpassin@xxxxxxxxxxxx]
Sent: 13 July 2001 14:48
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Trying to put a <BR> in a string parameter


[Kerin Cosford]

> It's possible that <xsl:value-of select="."/><br/> is working fine - have
> you viewed source in your browser, and had a look if the br tag is there?
>
> Most browsers choke on <br/>. The other option when generating them
through
> XSL is to use <br class="none"/>.
>

With every provessor I've tried, when you  specify the html output method, a
<br/> in the source file turns into <br> in the html output.

If you wanted to force it and still use xml output (I don't know why), note
that <br class="none"/> is just one example.  Any attribute at all will put
a space after the "<br", and that's enought to make browsers happy.  So you
could use <br dummy='x'/> and it would work just as well.

Cheers,

Tom P


 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

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.