[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Control over html output
Hi Apologies if this topic has already been covered elsewhere but if so, I can't seem to find it... I'm currently using XSLT to output to html (xalan 2), and I'd like to have more control over the resulting html that is delivered to the browser after if has been processed. For example, a code section like this: <tr> <td width="10" height="10"><some-content...></td> </tr> gets transformed to this... <tr> <td width="10" height="10"><some-content...> </td> </tr> In this case the linebreak causes undesirable whitespace to appear in the resulting document in certain browsers. At the moment I'm having to rely on the rather crude solution of setting the html output indent to "no" to avoid this, but this seems a rather inelegant solution... On a similar note, is there any way to specify strict xhtml output? I've experimented with adding the xhtml doctype declaration but this hasn't really affected the output of the elements, e.g. <br/> in the stylesheet still gets output as <br> in spite of the doctype... If these issues can't be solved through xslt, does anyone know of a way to edit xalan's default output (through a config file, for instance?) regards Andy 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
|