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

RE: <BR> a problem for XALAN?

Subject: RE: <BR> a problem for XALAN?
From: David_Marston@xxxxxxxxx
Date: Thu, 10 Aug 2000 10:45:28 -0400
xalan empty tag
Despite the subject line, this question is about XSLT in general,
not just Xalan! In some quick tests Paul Dick just ran, we found
that Xalan agrees with Saxon and XT about this. As others have
pointed out, this is really a Netscape issue. XSLT processors
should realize that they are putting out an empty tag, and they
should account for XML/XHTML vs. HTML output, but the transform
language does not grant control over precise details of the
serialization-to-file of an empty tag.

We also need a clear statement from Eddy Medina about what method
he specified in xsl:output. In our tests, we saw the specified
behavior for both xml and html methods. Any form of empty <br>
element, such as <br></br> gets output as <br/> when the method
is xml, and <br> when it's html. The space inside the tag isn't
supposed to matter.

If you really need to placate Netscape, how about
<xsl:value-of disable-output-escaping="yes" select="'&lt;br />'"/>
This is the circumvention of output standards that is much
maligned on this list. I must invoke the usual caveat that the
above technique should only be used when there is no other way.
................David Marston


 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-2011 All Rights Reserved.