xsl-list
[Top] [All Lists]

Re: Why <br /> in XSLT Stylesheet changed to <br> in HTML output

2004-01-14 17:49:41
That is an automatic conversion for an HTML output type.  You have two options: 
Force the output to xml using the output element, or include the xhtml 
namespace in the html root element.

so you can either include
<xsl:output method="xml" indent="yes" xmlns:xalan="http://xml.apache.org/xslt"; 
xalan:indent-amount="4" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
encoding="iso-8859-1"/>

or you can replace
<html>
with
<html xmlns:htm="http://www.w3.org/1999/xhtml";>

Or, better yet, both!

--Brendan

----- Original Message -----
From: "Jiang, Peiyun" <Peiyun(_dot_)Jiang(_at_)nrc-cnrc(_dot_)gc(_dot_)ca>
Date: Wednesday, January 14, 2004 12:19 pm
Subject: [xsl] Why <br /> in XSLT Stylesheet changed to <br> in HTML output

I have some <br /> tags in my XSLT stylesheet. But they are 
changed to <br>
in HTML after transformation. Any idea why this is happening?

Thanks.

Peiyun Jiang

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




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



<Prev in Thread] Current Thread [Next in Thread>