Re: cocoon jaxme transformer! (Othman Haddad)

2002-07-07 Thread Jochen Wiedmann

Hi, Othman,


 i'm trying to use the CastorTransformer to generate javabeans with cocoon=
 2
 but i rather prefer the jaxme approach for javabeans generation from 
 an xml file because i find that they can be more useful than the 
 castor ones..

 so my question is: is there any cocoon-jaxme user 
 there, and is it possible to write and use a kind of 
 jaxmeTransformer in cocoon2?

I have worked with Cocoon in the past and really like it.
A marriage of Cocoon and JaxMe seems very promising, as
both are dedicated to SAX, for performance reasons.

Unfortunately you do not add any hints what the CastorTransformer
precisely is and a quick search through Altavista didn't give
me a clue. May be you should explain a little bit more?


Regards,

Jochen



-
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]




Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad)

2002-07-07 Thread Jochen Wiedmann

 hi,
 the documentation of CastorTransformer you can find it in the 
 sources of Cocoon2.02 in the repository:
 cocoon-
 2.0.2\src\scratchpad\webapp\samples\castor\doc

That simple?

Ah, whenever I lay my hands on Cocoon, I fall in love again!
How said I never get the possibility to make a project with
it. (Sunshine, want a teleworker? :-)

Attached you find a suggestion for a JaxMeTransformer. Notice
its much simpler than the CastorTransformer because it doesn't
need to support SAX1 or those nasty mapping files. Please let
me know the results.

If it works, you could do me a favour and make a complete
example from it (much like the Castor sample) and supply this
to the Cocoon-dev mailing list.


Regards,

Jochen




JaxMeTransformer.java
Description: Binary data

-
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]


Extrange problem with Cocoon 2.0.2

2002-07-07 Thread Alejandro Raiczyk
Title: Extrange problem with Cocoon 2.0.2





Hi, 


 I'm trying to run cocoon 2.0.2 within my application. I copied the WEB-INF directory from /cocoon/WEB-INF and the only thing I've done is to add a pipeline.

When I try it I get this Exception:


org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoSuchFieldError: manager
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoSuchFieldError: manager
 at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
 at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
 at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)

 at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
 ... 1 more
java.lang.NoSuchFieldError: manager
 at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
 at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
 at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)

 at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
 at java.lang.Thread.run(Thread.java:536)


I have no idea what is this about and I couldn't find nothing on the web. With cocoon 2.0 I had no problem doing what I described before.

My configuration is:


Tomcat 4.0.1
Cocoon 2.0.2
Java 1.4


Thanks in advance.


Alejandro Raiczyk





Connection pooling w. 1.4.0.

2002-07-07 Thread Michael Mangeng

Hi

I know about the connection pooling problem with 1.4.0. So i´ve used 1.3.1
so far.
Now i need to update to 1.4.0 and I´m wondering what i can do to use
connection pooling with 1.4.0

thanx for help
greetings
mike


-
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]




Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad)

2002-07-07 Thread Ivelin Ivanov


Can you compare JaxMe to Castor, Betwixt, Jonas, JAXB ?



- Original Message -
From: Jochen Wiedmann [EMAIL PROTECTED]
To: Othman Haddad [EMAIL PROTECTED]; jaxme mailing list
[EMAIL PROTECTED]; cocoon user list
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 4:22 AM
Subject: Re: Réf. : Re: cocoon jaxme transformer! (Othman Haddad)


  hi,
  the documentation of CastorTransformer you can find it in the
  sources of Cocoon2.02 in the repository:
  cocoon-
  2.0.2\src\scratchpad\webapp\samples\castor\doc

 That simple?

 Ah, whenever I lay my hands on Cocoon, I fall in love again!
 How said I never get the possibility to make a project with
 it. (Sunshine, want a teleworker? :-)

 Attached you find a suggestion for a JaxMeTransformer. Notice
 its much simpler than the CastorTransformer because it doesn't
 need to support SAX1 or those nasty mapping files. Please let
 me know the results.

 If it works, you could do me a favour and make a complete
 example from it (much like the Castor sample) and supply this
 to the Cocoon-dev mailing list.


 Regards,

 Jochen








 -
 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]




XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

2002-07-07 Thread Ivelin Ivanov


We could use some help from the XInclude/Cinclude experts for
the problem Oliver is trying to solve.


- Original Message -
From: Andrew C. Oliver [EMAIL PROTECTED]
To: cocoon users [EMAIL PROTECTED]
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:



map:match pattern=action/categories_combo.xml
 map:generate src=content/dynamic/categories.xsp
 type=serverpages/
 map:transform src=stylesheets/categories2combo.xsl/
 map:serialize type=html/
/map:match


 my xform page reads:

 xf:selectMany ref=/category selectUIType=listbox
 xf:captionCategory/xf:caption
 xi:include
 href=categories_combo.xml#xpointer(/xformcategories)/
 xf:violations class=error/
 /xf:selectMany


 (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
 
  xf:selectMany ref=/role selectUIType='listbox'
xf:captionProfessional roles/xf:caption
 
  xf:item
xf:captionGeek/xf:caption
xf:valueGeek/xf:value
  /xf:item
  xf:item
xf:captionHacker/xf:caption
xf:valueHacker/xf:value
  /xf:item
  
 
  /xf:selectMany
 
 
  Now you can replace the items section with an xinlude section.
 
 
  xf:selectMany ref=/role selectUIType='listbox'
 
  xi:include href=myresources/dynamicRolesList.xml/
 
  /xf:selectMany
 
 
  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.
 
  ...
  map:transform type=xinclude/
  map:transform type=xmlform/
  ...
 
 
 
  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 [EMAIL PROTECTED]
  To: cocoon users [EMAIL PROTECTED]
  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. 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]
 
 --
 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. http://xml.apache.org/cocoon/faq/index.html

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




Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

2002-07-07 Thread WeikelQ

Pleae change Neil Weikel's e-mail to [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]




Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

2002-07-07 Thread Stephan Michels


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 [EMAIL PROTECTED]
 To: cocoon users [EMAIL PROTECTED]
 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:
 
 
 
 map:match pattern=action/categories_combo.xml
  map:generate src=content/dynamic/categories.xsp
  type=serverpages/
  map:transform src=stylesheets/categories2combo.xsl/
  map:serialize type=html/
 /map:match
 
 
  my xform page reads:
 
  xf:selectMany ref=/category selectUIType=listbox
  xf:captionCategory/xf:caption
  xi:include
  href=categories_combo.xml#xpointer(/xformcategories)/

I think you should use cocoon://categories_combo.xml instead, and
use the CInclude transformer.

  xf:violations class=error/
  /xf:selectMany
 
 
  (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. http://xml.apache.org/cocoon/faq/index.html

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




Re: php-xml-cocoon-html | wml --- query string lost

2002-07-07 Thread Michael Mangeng



I haven´t done anything with PHPcocoon yet but 
i think you have to use the PHPGenerator.

Since you are not specifing a generator to the 
map:generate tag cocoon uses the filegenerator (if this is the default one in 
your sitemap).

try using:
map:generate src="http://localhost/test/getSomething.php" 
type="php"

while you use:
map:components
 
map:generator
  
map:generator name="php" src="...path-to-phpgenerator..."/
...


hope this is correct ;-)

greetings
mike

  - Original Message - 
  From: 
  Zein 
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, July 07, 2002 9:05 PM
  Subject: php-xml-cocoon-html 
  | wml --- query string lost 
  
  hi,
  
  iam new to cocoon and want to parse a xml 
  document
  which is made by a 
  php-file.
  
  i call the file like this:
  
  http://localhost:8080/cocoon/test/getSomething.php?foo1=testfoo2=test2foo3=test3
  
  my sitemap entry looks like this:
  
  map:match 
  pattern="test/getSomething.php"
   map:generate src="http://localhost/test/getSomething.php
   map:parameter 
  name="use-request-parameter" value="true"/
   /map:generate
   map:select 
  type="browser"
   --- snipp - no problems 
  here
   /map:select
  /map:match
  
  but it does notwork.
  cocoon does not call the source file with the 
  query string,
  so the variables in my phpfile are 
  empty.
  i also tried out something like 
this:
  
  
  map:match 
  pattern="test/getSomething.php*"
   map:generate src="http://localhost/test/getSomething.php{1}
   map:parameter 
  name="use-request-parameter" value="true"/
   /map:generate
  
  but the same problem.
  does anyone knowwhat's wrong with 
  mysitemap entry
  and how i can fix it?
  i would be very grateful if someone could help 
  me
  and thank you in advance.
  
  i use cocoon 2.0.1 with tomcat 
4.0.3.
  
  regards,
  zein dowe


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Andrew C. Oliver

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 xmlformcategories.  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 cinclude:include 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 xformcategories 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

cinclude:include src=cocoon:/categories_combo.xml
select=xformcategories/*/

or something to that effect


source of requestform.xml:

?xml version=1.0?

document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
  xmlns:cinclude=http://apache.org/cocoon/include/1.0;

  xf:form id=request-form view=requestform
action=postrequest.html

error
  xf:violations class=error/
/error

xf:selectMany ref=/category selectUIType=listbox
xf:captionCategory/xf:caption
cinclude:include src=cocoon:/categories_combo.xml /
xf:violations class=error/
/xf:selectMany

xf:textbox ref=/title
xf:captionTitle/Item Name (no HTML)/xf:caption
xf:violations class=error/
/xf:textbox

 snip 


xf:textbox ref=/password
xf:captionPassword/xf:caption
xf:violations class=error/
/xf:textbox

xf:submit id=next class=button
  xf:captionNext/xf:caption
/xf:submit

  /xf:form
  
/document


output from categories_combo.xml:

xformcategories xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
xf:item

xf:captionOriginal Art/xf:caption
xf:value16/xf:value
/xf:item
xf:item
xf:captionAntiques/xf:caption
xf:value0/xf:value
/xf:item
xf:item
xf:captionBooks/xf:caption
xf:value1/xf:value
/xf:item

xf:item
xf:captionCars/xf:caption
xf:value2/xf:value
/xf:item
xf:item
xf:captionCollectibles/xf:caption
xf:value3/xf:value
/xf:item
xf:item
xf:captionComics/xf:caption
xf:value4/xf:value

/xf:item
xf:item
xf:captionComputers/xf:caption
xf:value5/xf:value
/xf:item
xf:item
xf:captionCrafts/xf:caption
xf:value6/xf:value
/xf:item
xf:item
xf:captionElectronics/xf:caption
xf:value7/xf:value

/xf:item
xf:item
xf:captionGifts/xf:caption
xf:value8/xf:value
/xf:item
xf:item
xf:captionLoans/xf:caption
xf:value9/xf:value
/xf:item
xf:item
xf:captionMusic/xf:caption
xf:value10/xf:value

/xf:item
xf:item
xf:captionOffice Supplies/xf:caption
xf:value11/xf:value
/xf:item
xf:item
xf:captionOther/xf:caption
xf:value12/xf:value
/xf:item
xf:item
xf:captionToys/xf:caption
xf:value13/xf:value

/xf:item
xf:item
xf:captionTravel/xf:caption
xf:value14/xf:value
/xf:item
xf:item
xf:captionVideos/xf:caption
xf:value15/xf:value
/xf:item
/xformcategories


-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 [EMAIL PROTECTED]
  To: cocoon users [EMAIL PROTECTED]
  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:
  
  
  
  map:match pattern=action/categories_combo.xml
   map:generate src=content/dynamic/categories.xsp
   type=serverpages/
   map:transform src=stylesheets/categories2combo.xsl/
   map:serialize type=html/
  /map:match
  
  
   my xform page reads:
  
   xf:selectMany ref=/category selectUIType=listbox
   xf:captionCategory/xf:caption
   xi:include
   href=categories_combo.xml#xpointer(/xformcategories)/
 
 I think you should use cocoon://categories_combo.xml instead, and
 use the CInclude transformer.
 
   xf:violations class=error/
   /xf:selectMany

Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

2002-07-07 Thread Stephan Michels


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 xmlformcategories.  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 cinclude:include 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 xformcategories 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

 cinclude:include src=cocoon:/categories_combo.xml
 select=xformcategories/*/

 or something to that effect

And whats the result of

xi:include
href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
parse=xml/

Perhaps you forget the 'parse' attribute?


 source of requestform.xml:

 ?xml version=1.0?

 document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
   xmlns:cinclude=http://apache.org/cocoon/include/1.0;

   xf:form id=request-form view=requestform
 action=postrequest.html

 error
   xf:violations class=error/
 /error

 xf:selectMany ref=/category selectUIType=listbox
 xf:captionCategory/xf:caption
 cinclude:include src=cocoon:/categories_combo.xml /
 xf:violations class=error/
 /xf:selectMany

 xf:textbox ref=/title
 xf:captionTitle/Item Name (no HTML)/xf:caption
 xf:violations class=error/
 /xf:textbox

  snip 


 xf:textbox ref=/password
 xf:captionPassword/xf:caption
 xf:violations class=error/
 /xf:textbox

 xf:submit id=next class=button
   xf:captionNext/xf:caption
 /xf:submit

   /xf:form

 /document


 output from categories_combo.xml:

 xformcategories xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
 xf:item

 xf:captionOriginal Art/xf:caption
 xf:value16/xf:value
 /xf:item
 xf:item
 xf:captionAntiques/xf:caption
 xf:value0/xf:value
 /xf:item
 xf:item
 xf:captionBooks/xf:caption
 xf:value1/xf:value
 /xf:item

 xf:item
 xf:captionCars/xf:caption
 xf:value2/xf:value
 /xf:item
 xf:item
 xf:captionCollectibles/xf:caption
 xf:value3/xf:value
 /xf:item
 xf:item
 xf:captionComics/xf:caption
 xf:value4/xf:value

 /xf:item
 xf:item
 xf:captionComputers/xf:caption
 xf:value5/xf:value
 /xf:item
 xf:item
 xf:captionCrafts/xf:caption
 xf:value6/xf:value
 /xf:item
 xf:item
 xf:captionElectronics/xf:caption
 xf:value7/xf:value

 /xf:item
 xf:item
 xf:captionGifts/xf:caption
 xf:value8/xf:value
 /xf:item
 xf:item
 xf:captionLoans/xf:caption
 xf:value9/xf:value
 /xf:item
 xf:item
 xf:captionMusic/xf:caption
 xf:value10/xf:value

 /xf:item
 xf:item
 xf:captionOffice Supplies/xf:caption
 xf:value11/xf:value
 /xf:item
 xf:item
 xf:captionOther/xf:caption
 xf:value12/xf:value
 /xf:item
 xf:item
 xf:captionToys/xf:caption
 xf:value13/xf:value

 /xf:item
 xf:item
 xf:captionTravel/xf:caption
 xf:value14/xf:value
 /xf:item
 xf:item
 xf:captionVideos/xf:caption
 xf:value15/xf:value
 /xf:item
 /xformcategories


 -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 [EMAIL PROTECTED]
   To: cocoon users [EMAIL PROTECTED]
   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:
   
   
   
   map:match pattern=action/categories_combo.xml
map:generate src=content/dynamic/categories.xsp
type=serverpages/
map:transform src=stylesheets/categories2combo.xsl/
map:serialize type=html/
   /map:match
   
   
my xform page reads:
   
xf:selectMany 

Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

2002-07-07 Thread Michael Wechner


 
 xi:include
 href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
 parse=xml/
 
 Perhaps you forget the 'parse' attribute?



XInclude supports the cocoon protocol and XPointer. As I know CInclude
does not support XPointer (which you already said, sorry), which would 
mean you have to use XInclude. I don't think you need the parse 
attribute but rather fix the XInclude call:

xi:include 
href=cocoon:/action/categories_combo.xml#xpointer(/xformcategories/*)/

The other problem I think is why are you serializing 
categories_combo.xml as HTML instead of XML?

Hope I am not more confusing than I actually intend to help

Michael



-
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]




Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Andrew C. Oliver

xi:include
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:/categories_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 xmlformcategories.  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 cinclude:include 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 xformcategories 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
 
  cinclude:include src=cocoon:/categories_combo.xml
  select=xformcategories/*/
 
  or something to that effect
 
 And whats the result of
 
 xi:include
 href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
 parse=xml/
 
 Perhaps you forget the 'parse' attribute?
 
 
  source of requestform.xml:
 
  ?xml version=1.0?
 
  document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
xmlns:cinclude=http://apache.org/cocoon/include/1.0;
 
xf:form id=request-form view=requestform
  action=postrequest.html
 
  error
xf:violations class=error/
  /error
 
  xf:selectMany ref=/category selectUIType=listbox
  xf:captionCategory/xf:caption
  cinclude:include src=cocoon:/categories_combo.xml /
  xf:violations class=error/
  /xf:selectMany
 
  xf:textbox ref=/title
  xf:captionTitle/Item Name (no HTML)/xf:caption
  xf:violations class=error/
  /xf:textbox
 
   snip 
 
 
  xf:textbox ref=/password
  xf:captionPassword/xf:caption
  xf:violations class=error/
  /xf:textbox
 
  xf:submit id=next class=button
xf:captionNext/xf:caption
  /xf:submit
 
/xf:form
 
  /document
 
 
  output from categories_combo.xml:
 
  xformcategories xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
  xf:item
 
  xf:captionOriginal Art/xf:caption
  xf:value16/xf:value
  /xf:item
  xf:item
  xf:captionAntiques/xf:caption
  xf:value0/xf:value
  /xf:item
  xf:item
  xf:captionBooks/xf:caption
  xf:value1/xf:value
  /xf:item
 
  xf:item
  xf:captionCars/xf:caption
  xf:value2/xf:value
  /xf:item
  xf:item
  xf:captionCollectibles/xf:caption
  xf:value3/xf:value
  /xf:item
  xf:item
  xf:captionComics/xf:caption
  xf:value4/xf:value
 
  /xf:item
  xf:item
  xf:captionComputers/xf:caption
  xf:value5/xf:value
  /xf:item
  xf:item
  xf:captionCrafts/xf:caption
  xf:value6/xf:value
  /xf:item
  xf:item
  xf:captionElectronics/xf:caption
  xf:value7/xf:value
 
  /xf:item
  xf:item
  xf:captionGifts/xf:caption
  xf:value8/xf:value
  /xf:item
  xf:item
  xf:captionLoans/xf:caption
  xf:value9/xf:value
  /xf:item
  xf:item
  xf:captionMusic/xf:caption
  xf:value10/xf:value
 
  /xf:item
  xf:item
  xf:captionOffice Supplies/xf:caption
  xf:value11/xf:value
  /xf:item
  xf:item
  xf:captionOther/xf:caption
  xf:value12/xf:value
  /xf:item
  xf:item
  xf:captionToys/xf:caption
  xf:value13/xf:value
 
  /xf:item
  xf:item
  xf:captionTravel/xf:caption
  xf:value14/xf:value
  /xf:item
  xf:item
  xf:captionVideos/xf:caption
  xf:value15/xf:value
  /xf:item
  /xformcategories
 
 
  -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 [EMAIL PROTECTED]
To: cocoon users [EMAIL PROTECTED]
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.:
 

Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Andrew C. Oliver

Thanks but XInclude really likes files:

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:/categories_combo.xml



On Mon, 2002-07-08 at 00:38, Michael Wechner wrote:
 
  
  xi:include
  href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
  parse=xml/
  
  Perhaps you forget the 'parse' attribute?
 
 
 
 XInclude supports the cocoon protocol and XPointer. As I know CInclude
 does not support XPointer (which you already said, sorry), which would 
 mean you have to use XInclude. I don't think you need the parse 
 attribute but rather fix the XInclude call:
 
 xi:include 
 href=cocoon:/action/categories_combo.xml#xpointer(/xformcategories/*)/
 
 The other problem I think is why are you serializing 
 categories_combo.xml as HTML instead of XML?
 

good point.  changed that. (it was so it was easy to debug when I wrote
the stylesheet).

 Hope I am not more confusing than I actually intend to help
 
 Michael
 

I appreciate it!


Thanks,

Andy

 
 
 -
 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]
 
-- 
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. http://xml.apache.org/cocoon/faq/index.html

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




Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Ivelin Ivanov


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.


- Original Message -
From: Andrew C. Oliver [EMAIL PROTECTED]
To: cocoon users [EMAIL PROTECTED]
Sent: Sunday, July 07, 2002 7:01 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


 xi:include
 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 xmlformcategories.  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 cinclude:include 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 xformcategories 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
  
   cinclude:include src=cocoon:/categories_combo.xml
   select=xformcategories/*/
  
   or something to that effect
 
  And whats the result of
 
  xi:include
  href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
  parse=xml/
 
  Perhaps you forget the 'parse' attribute?
 
  
   source of requestform.xml:
  
   ?xml version=1.0?
  
   document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
 xmlns:cinclude=http://apache.org/cocoon/include/1.0;
  
 xf:form id=request-form view=requestform
   action=postrequest.html
  
   error
 xf:violations class=error/
   /error
  
   xf:selectMany ref=/category selectUIType=listbox
   xf:captionCategory/xf:caption
   cinclude:include src=cocoon:/categories_combo.xml /
   xf:violations class=error/
   /xf:selectMany
  
   xf:textbox ref=/title
   xf:captionTitle/Item Name (no HTML)/xf:caption
   xf:violations class=error/
   /xf:textbox
  
    snip 
  
  
   xf:textbox ref=/password
   xf:captionPassword/xf:caption
   xf:violations class=error/
   /xf:textbox
  
   xf:submit id=next class=button
 xf:captionNext/xf:caption
   /xf:submit
  
 /xf:form
  
   /document
  
  
   output from categories_combo.xml:
  
   xformcategories xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
   xf:item
  
   xf:captionOriginal Art/xf:caption
   xf:value16/xf:value
   /xf:item
   xf:item
   xf:captionAntiques/xf:caption
   xf:value0/xf:value
   /xf:item
   xf:item
   xf:captionBooks/xf:caption
   xf:value1/xf:value
   /xf:item
  
   xf:item
   xf:captionCars/xf:caption
   xf:value2/xf:value
   /xf:item
   xf:item
   xf:captionCollectibles/xf:caption
   xf:value3/xf:value
   /xf:item
   xf:item
   xf:captionComics/xf:caption
   xf:value4/xf:value
  
   /xf:item
   xf:item
   xf:captionComputers/xf:caption
   xf:value5/xf:value
   /xf:item
   xf:item
   xf:captionCrafts/xf:caption
   xf:value6/xf:value
   /xf:item
   xf:item
   xf:captionElectronics/xf:caption
   xf:value7/xf:value
  
   /xf:item
   xf:item
   xf:captionGifts/xf:caption
   xf:value8/xf:value
   /xf:item
   xf:item
   xf:captionLoans/xf:caption
   xf:value9/xf:value
   /xf:item
   xf:item
   xf:captionMusic/xf:caption
   xf:value10/xf:value
  
   /xf:item
   xf:item
   xf:captionOffice Supplies/xf:caption
   xf:value11/xf:value
   /xf:item
   xf:item
   xf:captionOther/xf:caption
   xf:value12/xf:value
   /xf:item
   xf:item
   xf:captionToys/xf:caption
   xf:value13/xf:value
  
   /xf:item
   xf:item
   xf:captionTravel/xf:caption
   xf:value14/xf:value
   /xf:item
   xf:item
   xf:captionVideos/xf:caption
   xf:value15/xf:value
   /xf:item
   /xformcategories
  
  
   -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 [EMAIL PROTECTED]
 To: cocoon users [EMAIL 

Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Andrew C. Oliver

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 [EMAIL PROTECTED]
 To: cocoon users [EMAIL PROTECTED]
 Sent: Sunday, July 07, 2002 7:01 PM
 Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
 withXMLForm)
 
 
  xi:include
  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 xmlformcategories.  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 cinclude:include 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 xformcategories 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
   
cinclude:include src=cocoon:/categories_combo.xml
select=xformcategories/*/
   
or something to that effect
  
   And whats the result of
  
   xi:include
   href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
   parse=xml/
  
   Perhaps you forget the 'parse' attribute?
  
   
source of requestform.xml:
   
?xml version=1.0?
   
document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
  xmlns:cinclude=http://apache.org/cocoon/include/1.0;
   
  xf:form id=request-form view=requestform
action=postrequest.html
   
error
  xf:violations class=error/
/error
   
xf:selectMany ref=/category selectUIType=listbox
xf:captionCategory/xf:caption
cinclude:include src=cocoon:/categories_combo.xml /
xf:violations class=error/
/xf:selectMany
   
xf:textbox ref=/title
xf:captionTitle/Item Name (no HTML)/xf:caption
xf:violations class=error/
/xf:textbox
   
 snip 
   
   
xf:textbox ref=/password
xf:captionPassword/xf:caption
xf:violations class=error/
/xf:textbox
   
xf:submit id=next class=button
  xf:captionNext/xf:caption
/xf:submit
   
  /xf:form
   
/document
   
   
output from categories_combo.xml:
   
xformcategories xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
xf:item
   
xf:captionOriginal Art/xf:caption
xf:value16/xf:value
/xf:item
xf:item
xf:captionAntiques/xf:caption
xf:value0/xf:value
/xf:item
xf:item
xf:captionBooks/xf:caption
xf:value1/xf:value
/xf:item
   
xf:item
xf:captionCars/xf:caption
xf:value2/xf:value
/xf:item
xf:item
xf:captionCollectibles/xf:caption
xf:value3/xf:value
/xf:item
xf:item

Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

2002-07-07 Thread Ivelin Ivanov


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 [EMAIL PROTECTED]
To: cocoon users [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
  To: cocoon users [EMAIL PROTECTED]
  Sent: Sunday, July 07, 2002 7:01 PM
  Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
  withXMLForm)
 
 
   xi:include
   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 xmlformcategories.  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 cinclude:include
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 xformcategories 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

 cinclude:include src=cocoon:/categories_combo.xml
 select=xformcategories/*/

 or something to that effect
   
And whats the result of
   
xi:include
href=cocoon:/categories_combo.xml#xpointer(xformcategories/*)
parse=xml/
   
Perhaps you forget the 'parse' attribute?
   

 source of requestform.xml:

 ?xml version=1.0?

 document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;

xmlns:cinclude=http://apache.org/cocoon/include/1.0;

   xf:form id=request-form view=requestform
 action=postrequest.html

 error
   xf:violations class=error/
 /error

 xf:selectMany ref=/category selectUIType=listbox
 xf:captionCategory/xf:caption
 cinclude:include src=cocoon:/categories_combo.xml
/
 xf:violations class=error/
 /xf:selectMany

 xf:textbox ref=/title
 xf:captionTitle/Item Name (no HTML)/xf:caption
 xf:violations class=error/
 /xf:textbox

  snip 


 xf:textbox ref=/password
 xf:captionPassword/xf:caption
 xf:violations class=error/
 /xf:textbox

Hello...

2002-07-07 Thread



I have a question when develop web-app using 
Cocoon.

I think that It isheavy task using Cocoon 
Whendevelopingweb-page.

Because I think that it take much time to make .xsp 
file
and view page by browser.. shutdown webserver and
restart .. so , so.

What do you think about this?
thanks. ^^;


Re: Hello...

2002-07-07 Thread yuryx

ÃÖÁßÈ£ wrote:

 I have a question when develop web-app using
 Cocoon.
 I think that It is heavy task using Cocoon When developing web-page.
 Because I think that it take much time to make .xsp file
 and view page by browser.. shutdown webserver and
 restart .. so , so.
 What do you think about this?
 thanks. ^^;

Cocoon recompile (after changes in xsp) your xsp without restarting
webserver (Tomcat)
You just set rewrite page every time to view the page in you browser.
Regards.
Yury.




-
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]