Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 91445 invoked by uid 500); 8 Jul 2002 03:45:50 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 91421 invoked from network); 8 Jul 2002 03:45:49 -0000 Message-ID: <008c01c22631$fb48cb20$0100a8c0@MAUCHI> From: "Ivelin Ivanov" To: , "cocoon users" References: <1026086467.17911.1217.camel@localhost.localdomain> <004801c22619$8fe9b050$0100a8c0@MAUCHI> <1026092620.17911.1255.camel@localhost.localdomain> Subject: Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm) Date: Sun, 7 Jul 2002 22:46:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks for the patch Oliver. That's how active I like most cocoon-users to be like ;) BTW, I was under the impression that it was recently decided that we will merge XInclude and CInclude's code bases. Only XInclude would remain with the added ability to act on both XInclude and CInclude's namespaces. How did you decide to improve CInclude vs fixing XInclude. -=Ivelin ----- Original Message ----- From: "Andrew C. Oliver" To: "cocoon users" Cc: Sent: Sunday, July 07, 2002 8:43 PM Subject: Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm) > On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote: > > I'm sure there must be a more elegant way to solve the problem. > > We just need to wait a bit to hear from the XInclude developers. > > > Down low, too slow. Patch incoming. New syntax implemented for > CInclude to allow xpointers. Will need help testing as my CInclude > experience includes about 1 entire day of goofing with the sucker. > > http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540 > > I added a "select" attribute to CInclude that supports the XPointer > syntax without the XPointer() part (just what would go between the > ()'s). (This is cleaner than the #XPointer() url-suffix nastiness). > > Hopefully, one of the CInclude geniuses will take a look at this and > make it better. I was baffled by the tall inheritance tree. Mostly I > borrowed the code from XInclude and made it look more like CInclude > without actually understanding Avalon. > > Anyhow, if someone will kindly apply this or an even better version then > my issue will be satisfied and probably others who might want to > populate HTML lists, selects, etc in XMLForm webapps. Plus it will > solve the hole in between XInclude and CInclude. > > (anything in this email that sounds arrogant is actually a whole > day/weekend of frustration suddenly alleviated -- exuberance) > > Thanks, > > -Andy > > > > > > > > > > ----- Original Message ----- > > From: "Andrew C. Oliver" > > To: "cocoon users" > > Sent: Sunday, July 07, 2002 7:01 PM > > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data > > withXMLForm) > > > > > > > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)" > > > parse="xml"/> > > > > > > does this for me: > > > > > > org.apache.cocoon.ResourceNotFoundException: Resource not found.: > > > org.apache.excalibur.source.SourceNotFoundException: Resource not found > > > > > file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat > > egories_combo.xml > > > > > > So it looks like I'm stuck with an additional transformation. Which (as > > > a situation) bites. > > > > > > -Andy > > > > > > > > > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote: > > > > > > > > On 7 Jul 2002, Andrew C. Oliver wrote: > > > > > > > > > Hi, > > > > > > > > > > Thanks for your reply. This is very close to what I want. > > > > > So I'm almost there, but I have to have a root element on the > > > > > categories_combo.xml "page". Its . I only > > > > > want whats in between the root element. CInclude appears to not > > > > > support the xpointer as it was trying to treat it as part of the URL. > > > > > I'd hoped that the "element" attribute of the tag > > > > > would allow this, but it actually seems to be for doing the opposite. > > > > > I suppose I can apply an additional layer of transformation that takes > > > > > the output, includes everything but the and then > > > > > includes its children, but that is very inefficient and kinda of a > > pain, > > > > > etc. > > > > > > > > > > Is there a more straightforward way to take only the children of the > > > > > xmformcategories, include them without including the xmlformcategories > > > > > tag? > > > > > > > > > > basically > > > > > > > > > > > > > > select="xformcategories/*"/> > > > > > > > > > > or something to that effect > > > > > > > > And whats the result of > > > > > > > > > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)" > > > > parse="xml"/> > > > > > > > > Perhaps you forget the 'parse' attribute? > > > > > > > > > > > > > > source of requestform.xml: > > > > > > > > > > > > > > > > > > > > > > > > xmlns:cinclude="http://apache.org/cocoon/include/1.0"> > > > > > > > > > > > > > > action="postrequest.html"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Category > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Title/Item Name (no HTML) > > > > > > > > > > > > > > > > > > > > .... snip .... > > > > > > > > > > > > > > > > > > > > Password > > > > > > > > > > > > > > > > > > > > > > > > > Next > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > output from categories_combo.xml: > > > > > > > > > > > > > > > > > > > > > > > > > Original Art > > > > > 16 > > > > > > > > > > > > > > > Antiques > > > > > 0 > > > > > > > > > > > > > > > Books > > > > > 1 > > > > > > > > > > > > > > > > > > > > Cars > > > > > 2 > > > > > > > > > > > > > > > Collectibles > > > > > 3 > > > > > > > > > > > > > > > Comics > > > > > 4 > > > > > > > > > > > > > > > > > > > > Computers > > > > > 5 > > > > > > > > > > > > > > > Crafts > > > > > 6 > > > > > > > > > > > > > > > Electronics > > > > > 7 > > > > > > > > > > > > > > > > > > > > Gifts > > > > > 8 > > > > > > > > > > > > > > > Loans > > > > > 9 > > > > > > > > > > > > > > > Music > > > > > 10 > > > > > > > > > > > > > > > > > > > > Office Supplies > > > > > 11 > > > > > > > > > > > > > > > Other > > > > > 12 > > > > > > > > > > > > > > > Toys > > > > > 13 > > > > > > > > > > > > > > > > > > > > Travel > > > > > 14 > > > > > > > > > > > > > > > Videos > > > > > 15 > > > > > > > > > > > > > > > > > > > > > > > > > -Andy > > > > > > > > > > > > > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote: > > > > > > > > > > > > On Sun, 7 Jul 2002, Ivelin Ivanov wrote: > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > If I unterstand you right, categories_combo.xml should be generated > > by the > > > > > > sitemap. But XInclude transformer tries to read the file from the > > > > > > filesystem. > > > > > > > > > > > > > > > > > > > > My xinclude statement reads currently as follows: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type="serverpages"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > my xform page reads: > > > > > > > > > > > > > > > > > > > > > > > > Category > > > > > > > > > > > > > > > href="categories_combo.xml#xpointer(/xformcategories)"/> > > > > > > > > > > > > I think you should use cocoon://categories_combo.xml instead, and > > > > > > use the CInclude transformer. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > (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 > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > 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: > > > > > > > -- > > > 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org