hi, thanks a lot for ur help! it works! i went through the faq and wish i could make things easy by making the same default namespace in stylesheet:
 
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
 
but it doesn't work...
 
i have another question. in order to get a webpage and transform it dynamically, i need a form for user to fill in the url and pass it to my server. after went through the documentation, i found out it's so difficult to make even a simple form in cocoon. may i use a html form instead and how to handle the parameters in sitemap?
 
 
regards

Mark Lundquist <[EMAIL PROTECTED]> wrote:

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


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

Reply via email to