This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: whitespace before the trailing slash



when writing xhtml I use

<br class="compatibility"/>

You can not control how the XSL system writes out a tag but if there is
an attribute there then there will be some space after the element type
name and the browser will be happy.

Actually I write stylesheet for the html output method with just <br/>
and then run a stylesheet to convert an html stylesheet to an xhtml one
and this takes care of adding attributes to empty elements and adding
white space to ensure that elements that are not canonically empty
never use the /> syntax. but always <p> </p>

I posted this html/xhtml stylesheet before but I could
make it available again if need be.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]