You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hi...@gmx.net on 2000/10/19 09:43:08 UTC

cocoon sample "fp"

hi all.. i have some questions on working with the "fp" sample of cocoon
(1.8)

1st : how can i get rid of the <body> tag ? i mean i would like just to
have 	      the text in there without the tags (when i type sth in now its
shown         as "<body>sample text</body>"... what i want is just "sample
text")

2nd: how can i create checkboxes and a "browse field" in this example ?
     i mean i can add those 2 things but they dont work...
     what i did so far is :
item-edit.xml:
<input name="attachment" type="file">
<xsp:attribute name="label"><fp:read select="attachment/label"
from="default-person"/></xsp:attribute>
<fp:if-post>
<fp:write select="attachment" to="external-person" as="node">
<request:get-parameter name="attachment"/>
</fp:write>
</fp:if-post>
<fp:read select="attachment" from="external-person" as="node"/>
</input>
and same with checkboxes...
then i added entrys to default.xml (with label and value)

but it doesnt work (i can check the boxes and i can choose a file.. and
the filename and path is prompted but it doesnt save !
i feell i have to add sth into form-html.xsl like <xsl:template
match="input[@type='file']"> but how ? and what ?

please can somebody help me out ??

thx
michael

p.s. oh and does someone know good example pages for cocoon stuffs ?
and/or perhaps a good book that deals with cocoon ?

-- 
Sent through GMX FreeMail - http://www.gmx.net