Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 4448 invoked by uid 500); 7 Jul 2002 18:35:32 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 4425 invoked from network); 7 Jul 2002 18:35:32 -0000 Message-ID: <00b501c225e5$14e4e980$ce00a8c0@IIVANOV2> From: "Ivelin Ivanov" To: Cc: References: <1025985304.17911.1018.camel@localhost.localdomain> <037301c2252d$338d00b0$6502a8c0@IIVANOV2> <1026062231.17911.1185.camel@localhost.localdomain> Subject: XInclude/CInclude Issue (Re: including dynamic data with XMLForm) Date: Sun, 7 Jul 2002 13:35:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N We could use some help from the XInclude/Cinclude experts for the problem Oliver is trying to solve. ----- Original Message ----- From: "Andrew C. Oliver" To: "cocoon users" Sent: Sunday, July 07, 2002 12:17 PM Subject: Re: including dynamic data with XMLForm > Hi Ivelin, > > Thanks for your reply. > > This isn't quite quite working. It seems to insist on resolving to a > file. > > ERROR (2002-07-07) 09:08.29:743 [sitemap] > (/cocoon/samples/bringmethis/action/postrequest.html) > Thread-45/XIncludeTransformer: Error in processXIncludeElement > org.apache.cocoon.ResourceNotFoundException: Resource not found.: > org.apache.excalibur.source.SourceNotFoundException: Resource not found > file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/categories_ combo.xml > > My xinclude statement reads currently as follows: > > > > > type="serverpages"/> > > > > > > my xform page reads: > > > Category > href="categories_combo.xml#xpointer(/xformcategories)"/> > > > > > (this isn't exactly where I want it but I figured I'd move back if I got > it working). > > Note the pointer is because I need to have a root element to make the > document valid. I'd rather not make my root element the selectMany. > > Thanks, > > Andy > > > On Sat, 2002-07-06 at 16:39, Ivelin Ivanov wrote: > > > > One option is to use the XInclude transformer. > > > > Say you have > > > > > > Professional roles > > > > > > Geek > > Geek > > > > > > Hacker > > Hacker > > > > .... > > > > > > > > > > Now you can replace the items section with an xinlude section. > > > > > > > > > > > > > > > > > > > > Where dynamicRolesList.xml can be any resolvable resource (not just an xml > > file). > > You would probably use an internal sitemap resource to generate the xml from > > the db. > > > > The sitemap ordering is important. XIncludeTransformer has to come before > > the XMLFormTransformer. > > > > ... > > > > > > ... > > > > > > > > If this satisfies your response, prefix your reply with SUMMARY, so that the > > doc team can include it in the FAQ. > > > > > > Ivelin > > > > ----- Original Message ----- > > From: "Andrew C. Oliver" > > To: "cocoon users" > > Sent: Saturday, July 06, 2002 2:55 PM > > Subject: including dynamic data with XMLForm > > > > > > > Hi All, > > > > > > I'm trying to create a page where a multi-select list has options that > > > are populated from a database. What is not immediately clear to me is > > > how I can create an XMLForm page where the list contents are dynamically > > > generated. Any clues? > > > > > > -Andy > > > -- > > > http://www.superlinksoftware.com - software solutions for business > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in > > > Java > > > http://krysalis.sourceforge.net/centipede - the best build/project > > > structure > > > a guy/gal could have! - Make Ant simple on complex Projects! > > > The avalanche has already started. It is too late for the pebbles to > > > vote. > > > -Ambassador Kosh > > > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been answered in the > > > FAQ before posting. > > > > > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. > > > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- > http://www.superlinksoftware.com - software solutions for business > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in > Java > http://krysalis.sourceforge.net/centipede - the best build/project > structure > a guy/gal could have! - Make Ant simple on complex Projects! > The avalanche has already started. It is too late for the pebbles to > vote. > -Ambassador Kosh > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: