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

Re: XHTML Output

Subject: Re: XHTML Output
From: "Paul Sleigh" <bat@xxxxxxxxx>
Date: Fri, 14 Nov 2003 18:10:39 +1100
xsl xhtml
On Fri, 14 Nov 2003 17:36:58 +1100, "Todd Baker"
<lists@xxxxxxxxxxxxxxxxx> said:
> Hello,
> 
> I am using the MSXML parser and my HTML output has the trailing slash's
> removed (ie <br /> results in <br>) during the parsing.
> 
> I want the output to be to contain these trailing slash's, does anyone know
> what (and if there is) a command that will tell the parser to maintain these
> trailing slash's?

In Sablotron there's an extra output type, method="xhtml", that you
specify in the xsl:output element.  If that's not correct for pure XSLT,
I presume method="xml" will do the trick nicely:

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
    method="xml" 
    indent="yes"/>

...
</xsl:stylesheet>

: Bat :
 
 
------------------------------------------------------------
Fruitbat                     PO Box 1269, Belconnen ACT 2616
Eric TF Bat                                http://flurf.net/
Paul Sleigh                                    bat@xxxxxxxxx
Karl Faustus von Aachen                         0407-468-244
------------------------------------------------------------
  It all sounds rather naive and sentimental to be talking 
  about children laughing and dancing and singing together 
  when we all know perfectly well that what children do in 
  real life is snarl and take drugs.
                    - Douglas Adams, _The Salmon Of Doubt_
------------------------------------------------------------

 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.