Im trying to do a wml site in Cocoon, everything works fine. but when I have som 
input's and whant to set them in my URL, e.g xyz.wml?link=foo, then I have to use a 
wmls-script...
The problem is that the pipeline have to know this file and if I do so, the script 
file is shown in the browser :(

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:template match="/">
                <wml>
                        <card id="index">
                                <b>
                                <p align="center">WSCC Publisher</p>
                                </b>
                                <p> 
                                Title<INPUT  NAME="Title"  size="15"></INPUT><br/>     
                         
                                Intro:<input name="Intro" size="15"/><br/>
                                Key:  <input name="Key" size="15"/><br/>
                                </p>
                                
                                
                                
<do type="accept" label="Calculate">
  <go href="check.wmls#go_url($(Title), $(Intro), $(Key))"/>
</do>
                                
                                

                        </card>
                </wml>
        </xsl:template>
</xsl:stylesheet>

scriptfile..

extern function go_url(title, intro, key)
{

var the_url="pub.wml?Title=" + title + "&Intro=" + intro + "&Key=" + key;

WMLBrowser.go(the_url);
}
[/code]
sitemap...
[code]
                        <map:match pattern="**.wmls">
                                <map:read src="style/check.wmls" mime-type="wmls" />
                        </map:match>

What am I doing wrong??


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

Reply via email to