Hi,

yes you can and no it's not difficult.

I can give you one advice: Look at the examples. Woody (renamed to cforms:) is a good form block.
And if you want to do it by hand, look at the generated pages using your browser's View Page Source option.
Incredibly usefull that option, and available anywhere:)
You can see what kind of input cocoon expects. Unfortunately, I really can't tell you much more as I don't know
what you want to do exactly. But even cocoon/woody uses the normal way to pass form data (though mostly POST
and not GET - which is not different for the request object). So no matter how you create the form - it will be
processed if the sitemap is OK. And whether you use the cocoon forms or your own forms, as long as the forms
look the same at the end it makes no different (please note things like cocoon-action in the form handler!)


Leon

leon tian wrote:

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* <http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com> - Communicate instantly..."Ping" your friends today! *Download Messenger Now* <http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com/download/index.html>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to