Subject: Re: Why <br /> in XSLT Stylesheet changed to <br> in HTML output
From: annirack@xxxxxxx
Date: Wed, 14 Jan 2004 16:49:41 -0800
|
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.Jiang@xxxxxxxxxxxxxx>
Date: Wednesday, January 14, 2004 12:19 pm
Subject: 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
|