Am Mit, 2002-12-18 um 14.03 schrieb Konstantin Piroumian: > From: "Jakob Praher" <[EMAIL PROTECTED]> > > > hi, > > > > I am dropping my xslt/xform impl in favour of the existing cocoon xform > > approach. > > > > Now I have come over some questions regarding the functionality: > > > > - Is it possible to bind to existing data? > > Elaborate on this please. What are you going to bind and where is that data > exist? > > - If so how to do it ? >
yup. imagine: you have a list of countries that are stored somewhere (like a custom generator out of your app server, or an xml file on the disk ) you have a bean that expects one country out of a list of countries. so you have your xform statement like this: <xf:selectOne ref="/country" > <xf:choices> <item .../> </xf:choices> </xf:selectOne> mow it would be nifty to bind the items via xpath to an existing document (for instance using the cocoon:/ uri scheme ) you could do it by using an xsp page, thus generating the <item />, but I think it is such a common idea that it could be good if it is in the framework - so you don't have to write an xsp page every time. -- Jakob > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>