cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: transform xhtml with xsl style sheet.
Date Sat, 17 Apr 2004 18:28:36 GMT

On Apr 17, 2004, at 11:12 AM, leon tian wrote:

> hi, thanks for your reply! i guess that's where the problem is. my xsl 
> stylesheet can't work on the xhtml generated by HTMLGenerator coz 
> HTMLGenerator put a default namespace as:
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> i need to transform the web page dynamically so i can't just erase it. 
> and i can't find the config option from tidy to omit it. how can 
> i handle it then?
>
> my xsl namespace:
> <xsl:stylesheet version="1.1" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

It's not your source document that needs to be "fixed" — just fix your 
stylesheet! :-)

Add this to your <xsl:stylesheet> element:

	xmlns:html="http://www.w3.org/1999/xhtml"

This is an XSL FAQ: 
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d5661e184

HTH,
mark


Mime
View raw message