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

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

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
xslt indent amount
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


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.