> -----Original Message-----
> From: Martijn C. Vos 
> Sent: dinsdag 29 mei 2007 12:34
> To: [email protected]
> Subject: RE: own attribute
> 
> Amon wrote:
> > 
> > Is there are way to add my own attribute to the fd:item 
> element, let 
> > say selected="selected" , which i can use in my xslt?
> 
> I don't think you can do this in the form model (the file 
> where everything has the fd: prefix), but you can pass 
> anything you like in fi:styling in the template file.
> 
> Stuff you do in XSLT is (or should be) styling, even when 
> it's very complex styling, so it makes sense to put it there.
> 

That shouldn't be necessary but it's a dirty and easy way to do the
trick. Nicer ways are defining the initial value in the definition like
Reijn said[1] or use form binding so the right value is selected.
[1] http://marc.info/?l=xml-cocoon-users&m=117887397612124&w=2

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl

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

Reply via email to