|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: including the HTML <BR> in XSL template
That is indeed the whole solution. Thanks to everyone who helped! One more question: can you specify that you don't want newlines inserted? For example </P> always ends up on its own line....even though there aren't any in the template. <xsl:template match="foo"><P style="color:red"><xsl:apply-templates/></P></xsl:template> -----Original Message----- From: David Marston/CAM/Lotus [mailto:David_Marston@xxxxxxxxx] Sent: Thursday, April 27, 2000 7:51 AM To: xsl-list@xxxxxxxxxxxxxxxx Subject: Re: including the HTML <BR> in XSL template Matt says: >Some browsers just don't like the <BR/> format, and display two empty >lines with the <BR></BR> format. I think Betty was trying to present a real solution. Putting it all together: 1. xsl:output method="html" specified 2. Stylesheet says to output <BR/> 3. XSLT processor takes (1) into account when performing (2), so it actually generates <BR> As already mentioned, the above behavior is required by the XSLT spec (Section 16.2, paragraph 4), so you can depend on it. Xalan has been tested and shown to do the above correctly. .................David Marston XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








