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:
xmlns">
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
