Re: Cocoon Portal Layout

2002-10-25 Thread Antonio Gallardo Rivera
I think you can do that.

Antonio Gallardo

El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
 Hi Guys,

 I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon Portal
 on our application.

 Can I change the total layout of the portal? Can I remove all the frames
 anf create layout perhaps include menus just below the header banner?

 I asked this because I have noticed that there are no frameset declarations
 on any of the stylesheets used in the portal samples.

 Thanks in advance
 Richard

-
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: Cocoon Portal Layout

2002-10-25 Thread Richard Reyes
Thanks Antonio,

would you happent to know where the frameset codes declared?

- Original Message -
From: Antonio Gallardo Rivera [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:04 PM
Subject: Re: Cocoon Portal Layout


I think you can do that.

Antonio Gallardo

El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
 Hi Guys,

 I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon Portal
 on our application.

 Can I change the total layout of the portal? Can I remove all the frames
 anf create layout perhaps include menus just below the header banner?

 I asked this because I have noticed that there are no frameset
declarations
 on any of the stylesheets used in the portal samples.

 Thanks in advance
 Richard

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




Re: Cocoon Portal Layout

2002-10-25 Thread Antonio Gallardo Rivera
I think inside the xsl file for the portal.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
 Thanks Antonio,

 would you happent to know where the frameset codes declared?

 - Original Message -
 From: Antonio Gallardo Rivera [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 2:04 PM
 Subject: Re: Cocoon Portal Layout


 I think you can do that.

 Antonio Gallardo

 El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
  Hi Guys,
 
  I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon Portal
  on our application.
 
  Can I change the total layout of the portal? Can I remove all the frames
  anf create layout perhaps include menus just below the header banner?
 
  I asked this because I have noticed that there are no frameset

 declarations

  on any of the stylesheets used in the portal samples.
 
  Thanks in advance
  Richard

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




Re: Cocoon Portal Layout

2002-10-25 Thread Bert Van Kets
Sorry Antonio but it's in the resources/free/portal.xml and 
resources/auth/portal.xml files.

Bert

At 00:20 25/10/2002 -0600, you wrote:
I think inside the xsl file for the portal.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
 Thanks Antonio,

 would you happent to know where the frameset codes declared?

 - Original Message -
 From: Antonio Gallardo Rivera [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 2:04 PM
 Subject: Re: Cocoon Portal Layout


 I think you can do that.

 Antonio Gallardo

 El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
  Hi Guys,
 
  I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon Portal
  on our application.
 
  Can I change the total layout of the portal? Can I remove all the frames
  anf create layout perhaps include menus just below the header banner?
 
  I asked this because I have noticed that there are no frameset

 declarations

  on any of the stylesheets used in the portal samples.
 
  Thanks in advance
  Richard

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



-
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: Cocoon Portal Layout

2002-10-25 Thread Richard Reyes
Hi Bert,

Can I change the orientation of the frames sets? It doesn't seem like it?

- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:52 PM
Subject: Re: Cocoon Portal Layout


Sorry Antonio but it's in the resources/free/portal.xml and
resources/auth/portal.xml files.

Bert

At 00:20 25/10/2002 -0600, you wrote:
I think inside the xsl file for the portal.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
  Thanks Antonio,
 
  would you happent to know where the frameset codes declared?
 
  - Original Message -
  From: Antonio Gallardo Rivera [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 25, 2002 2:04 PM
  Subject: Re: Cocoon Portal Layout
 
 
  I think you can do that.
 
  Antonio Gallardo
 
  El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
   Hi Guys,
  
   I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon
Portal
   on our application.
  
   Can I change the total layout of the portal? Can I remove all the
frames
   anf create layout perhaps include menus just below the header banner?
  
   I asked this because I have noticed that there are no frameset
 
  declarations
 
   on any of the stylesheets used in the portal samples.
  
   Thanks in advance
   Richard
 
  -
  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]


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




Re: mod-db action yields 'CALL IDENTITY()' MySQL syntax error

2002-10-25 Thread Christian Haul
On 24.Oct.2002 -- 09:38 PM, Samuel Bruce wrote:
 Hello,
 
 I'm using the latest CVS, TC 4.1.12, JDK 1.4.01.
 
 The mod-db action inserts the first row correctly, but
 fails on the second row insert. It seems to also fail
 attempting to rollback.
 
 Anything you can do to help is appreciated.

 Thread-10/DatabaseAction: Rolling back transaction.
 Caused by Syntax error or access violation: You have
 an error in your SQL syntax near 'CALL IDENTITY()' at
 line 1
 DEBUG   (2002-10-24) 23:56.37:520  
 [sitemap.action.mod-db-add] ()
 Thread-10/DatabaseAction: There was an error rolling
 back the transaction
 java.sql.SQLException: General error: Warning:  Some
 non-transactional changed tables couldn't be rolled
 back
   at

 org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497)
   at

So, you are trying to use the autoincrement module for HSQLDB with
MySQL. That just won't work. Please use the MySQL one. For this, you
need to edit the cocoon.xconf and uncomment the correct module and
comment out the hsqldb one. mod-db uses the one with shorthand auto
unless instructed otherwise.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


-
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: Creating PDF with graphics

2002-10-25 Thread Ralph Seidl
Hi Michael,

J.Pietschmann is right, I also had trouble with the batik and fop jars.
The jar-Files I use now:

fop.jar (V20.4) 1.694.560 Bytes
batik.jar (from fop V20.4) 2.163.538 Bytes

I'm using: 
cocoon 2.0.3 
tomcat 4.0.4
jdk 1.3.1

under NT 4.0 and Solaris (under Solaris I use the PJA-Toolkit because I
have no X-Windows on this server)

If you use this jars and you get no java.lang.NoClassDefFoundError I
guess my original code should work

Hope this helps,

Ralph

[EMAIL PROTECTED] wrote:
 
 Ralph, many thanks, this is, what I expected. If it works, I only have to
 add svg: to the graphics tag. But it currently doesn't work. The result
 is a broken PDF output - only about the 10 first bytes from the PDF. I
 played a bit with your code and I found, that the line svg:svg ...
 (closed with the matching end tag) killed the PDF creation.
 
  fo:block
fo:instream-foreign-object
  svg:svg width=150mm height=10mm
  /svg:svg
/fo:instream-foreign-object
  /fo:block
 
 As you can see, I replaced the 800.0 and 8.0 values, because I got a
 error message about a missing transformation parameter or so. After doing
 this, the last log entry in catalina.out, that seems to be written in
 the case of the svg:svg block, is:
 
 java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext
 
 I wonder about this, because the SVG-Demo from Cocoon works fine and
 contains similar code as yours.
 
 Do I have to reconfigure anything or install something? I installed the
 normal Cocoon 2.0.3 package and Tomcat 4.1.8 on a Linux box. There is a
 package batik-all-1.5b2.jar installed in the cocoon lib-directory. I
 didn't understand what's wrong. I use the J2SDK 1.4.0 from the Sun site ;-
 ).
 
 Meanwhile, I read some docs about instream-foreign-object and found,
 that your code looks 100% correct. So I assume it's my mistake.
 
 Other messages here in the list are also about
 a java.lang.NoClassDefFoundError, but for other classes. It looks like a
 typical configuration- oder dependency problem. But I found no solution
 anywhere.
 
 Any suggestion?
 
 [EMAIL PROTECTED] wrote at
 Thu, 24 Oct 2002 17:36:21 +0200:
 
 Hi,
 
 try something like
 
  fo:block
fo:instream-foreign-object
  svg:svg xmlns:svg=http://www.w3.org/2000/svg; width=800.0
 height=8.0
svg:g style=stroke:#00; stroke-width:1.0
  svg:line x1=2.0 y1=2.0 x2=794.0 y2=2.0/
/svg:g
  /svg:svg
/fo:instream-foreign-object
  /fo:block
 
 If you are looking for examples take a look at the batik-project also
 from apache ( http://xml.apache.org/batik ).
 
 Michael Fridrich


-
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: Cocoon Portal Layout

2002-10-25 Thread Bert Van Kets
I have kept the sizing and position of the frames, so I have not tried this 
before.
Technically speaking it should not make a difference how your frames are 
set up, as long as they are there.  Although I don't see why you would not 
be able to
get rid of the admin-header frame though.

Your question has more to do with HTML than with Cocoon or the portal-fw. 
;-)  The portal is not that difficult, once you get the hang of it.  Make 
sure you have read all the WebApps docs at 
http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have 
read them, read them again!
If you have done this, read the following articles:
http://ziegeler.bei.t-online.de/c2auth.html
http://www.xml.com/pub/a/2002/07/24/xmlportal.html
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

Watch out for the xmlns uris they are different in Cocoon 2.0.3 and Cocoon 
2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The 
principle remains the same, only the components have moved.

HTH,
Bert

At 15:11 25/10/2002 +0800, you wrote:
Hi Bert,

Can I change the orientation of the frames sets? It doesn't seem like it?

- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:52 PM
Subject: Re: Cocoon Portal Layout


Sorry Antonio but it's in the resources/free/portal.xml and
resources/auth/portal.xml files.

Bert

At 00:20 25/10/2002 -0600, you wrote:
I think inside the xsl file for the portal.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
  Thanks Antonio,
 
  would you happent to know where the frameset codes declared?
 
  - Original Message -
  From: Antonio Gallardo Rivera [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 25, 2002 2:04 PM
  Subject: Re: Cocoon Portal Layout
 
 
  I think you can do that.
 
  Antonio Gallardo
 
  El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
   Hi Guys,
  
   I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon
Portal
   on our application.
  
   Can I change the total layout of the portal? Can I remove all the
frames
   anf create layout perhaps include menus just below the header banner?
  
   I asked this because I have noticed that there are no frameset
 
  declarations
 
   on any of the stylesheets used in the portal samples.
  
   Thanks in advance
   Richard
 
  -
  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]


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




Re: Cocoon Portal Layout

2002-10-25 Thread Richard Reyes
Thanks Bert I have already read all the urls you've given me.
I have successfully implemented the Authentication, now I'm trying to
do the portal and authorization ( Roles ).
And its sure is that Im gonna read the portal documentations some more.

Although I still would want to know were those frameset codes are?
Its not on the xml, not on the xsl... Are they being generated by Cocoon?

===
- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 3:34 PM
Subject: Re: Cocoon Portal Layout


I have kept the sizing and position of the frames, so I have not tried this
before.
Technically speaking it should not make a difference how your frames are
set up, as long as they are there.  Although I don't see why you would not
be able to
get rid of the admin-header frame though.

Your question has more to do with HTML than with Cocoon or the portal-fw.
;-)  The portal is not that difficult, once you get the hang of it.  Make
sure you have read all the WebApps docs at
http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
read them, read them again!
If you have done this, read the following articles:
http://ziegeler.bei.t-online.de/c2auth.html
http://www.xml.com/pub/a/2002/07/24/xmlportal.html
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

Watch out for the xmlns uris they are different in Cocoon 2.0.3 and Cocoon
2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
principle remains the same, only the components have moved.

HTH,
Bert

At 15:11 25/10/2002 +0800, you wrote:
Hi Bert,

Can I change the orientation of the frames sets? It doesn't seem like it?

- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:52 PM
Subject: Re: Cocoon Portal Layout


Sorry Antonio but it's in the resources/free/portal.xml and
resources/auth/portal.xml files.

Bert

At 00:20 25/10/2002 -0600, you wrote:
 I think inside the xsl file for the portal.
 
 Antonio Gallardo
 
 El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
   Thanks Antonio,
  
   would you happent to know where the frameset codes declared?
  
   - Original Message -
   From: Antonio Gallardo Rivera [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, October 25, 2002 2:04 PM
   Subject: Re: Cocoon Portal Layout
  
  
   I think you can do that.
  
   Antonio Gallardo
  
   El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
Hi Guys,
   
I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon
Portal
on our application.
   
Can I change the total layout of the portal? Can I remove all the
frames
anf create layout perhaps include menus just below the header
banner?
   
I asked this because I have noticed that there are no frameset
  
   declarations
  
on any of the stylesheets used in the portal samples.
   
Thanks in advance
Richard
  
   -
   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]


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


RE: Which way is the best to output blobs from db to user?

2002-10-25 Thread ROSSEL Olivier


 -Message d'origine-
 De: Björn Voigt [mailto:bjoern-voigt;gmx.de]
 Date: jeudi 24 octobre 2002 22:32
 À: cocoon-users
 Objet: Which way is the best to output blobs from db to user?
 
 
 Hello cocooners,
 
 i have a mysql database with a table containing pictures as blob.
 In an old Version of my Web-Application I used a servlet to output
 the pictures via http. Now I want to take Cocoon to do this.
 My question is which way is the best way to solve my problem?

A blob can be VERY easily exported from a database via the blob:/ pseudo
protocol.
YOu can refer to any blob in the database via a simple URL.
So to retrieve it via HTTP is as easy as having such a pipeline:

map:match pattern=...
 map:read src=blob:/... mime-type=.../
/mpa:match

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

-
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: pipeline problem

2002-10-25 Thread Jeremy Quinn

Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly 
this.

regards Jeremy

On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:

Hello,
 
Is it possible to call a pipeline, that returns SAX events 
representing an stylesheet, from the src attribute of a 
map:transform element? I'm trying to do it in the following pipeline 
but it doesn't work.

map:match pattern=schematronValidationResponse

    map:generate type=stream

        map:parameter name=form-name value=document/

    /map:generate

    map:transform src=cocoon:/schematron2compiledSchematron/

    map:serialize type=xml/

/map:match

 

map:match pattern=schematron2compiledSchematron

    map:generate src=schemas/berta.xsd/

    map:transform src=stylesheets/schematron.xsl/

    map:transform src=stylesheets/skeleton1-5.xsl/

/map:match

Oskar



-
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: London Cocoon users

2002-10-25 Thread Jeremy Quinn
On Thursday, Oct 24, 2002, at 12:59 Europe/London, Alex McLintock wrote:


Hi folks,

Are there any London based Cocoon users on this list who want to meet 
other Cocoon users - perhaps for a pub meeting?

Great idea, count me in.

regards Jeremy


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




Handling a form values and updating an XML

2002-10-25 Thread Iker Ametzaga
Hello,
I have a XML document with some values, that I pass to an html form 
using a XSL. When the form is submitted with the new values, I want to 
update the XML document with these new values. Which is the best way of 
doing this, using all the power of cocoon 2.1. That's all, thank you 
very much.
Iker Amezaga


-
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: Cocoon Portal Layout

2002-10-25 Thread Bert Van Kets
Hi Richard,
As said before, it's in the resources/free/portal.xml file.
Here's the content of mine:

page
  pageset columns=* rows=100,*
part title=Header scrolling=no
  urladminfree-header/url
/part
pageset columns=* rows=*,15
  part title=Content
urladminfree-content/url
  /part
  part name=bottom scrolling=no
urladminfree-bottom/url
  /part
/pageset
  /pageset
/page


There's a similar file in the auth directory.

Is this not what you are looking for??

BTW using the windows search on the content of the files can save a lot of 
time when trying to get your grips on the portal.

Bert

At 15:56 25/10/2002 +0800, you wrote:
Thanks Bert I have already read all the urls you've given me.
I have successfully implemented the Authentication, now I'm trying to
do the portal and authorization ( Roles ).
And its sure is that Im gonna read the portal documentations some more.

Although I still would want to know were those frameset codes are?
Its not on the xml, not on the xsl... Are they being generated by Cocoon?

===
- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 3:34 PM
Subject: Re: Cocoon Portal Layout


I have kept the sizing and position of the frames, so I have not tried this
before.
Technically speaking it should not make a difference how your frames are
set up, as long as they are there.  Although I don't see why you would not
be able to
get rid of the admin-header frame though.

Your question has more to do with HTML than with Cocoon or the portal-fw.
;-)  The portal is not that difficult, once you get the hang of it.  Make
sure you have read all the WebApps docs at
http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
read them, read them again!
If you have done this, read the following articles:
http://ziegeler.bei.t-online.de/c2auth.html
http://www.xml.com/pub/a/2002/07/24/xmlportal.html
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

Watch out for the xmlns uris they are different in Cocoon 2.0.3 and Cocoon
2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
principle remains the same, only the components have moved.

HTH,
Bert

At 15:11 25/10/2002 +0800, you wrote:
Hi Bert,

Can I change the orientation of the frames sets? It doesn't seem like it?

- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:52 PM
Subject: Re: Cocoon Portal Layout


Sorry Antonio but it's in the resources/free/portal.xml and
resources/auth/portal.xml files.

Bert

At 00:20 25/10/2002 -0600, you wrote:
 I think inside the xsl file for the portal.
 
 Antonio Gallardo
 
 El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
   Thanks Antonio,
  
   would you happent to know where the frameset codes declared?
  
   - Original Message -
   From: Antonio Gallardo Rivera [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, October 25, 2002 2:04 PM
   Subject: Re: Cocoon Portal Layout
  
  
   I think you can do that.
  
   Antonio Gallardo
  
   El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
Hi Guys,
   
I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon
Portal
on our application.
   
Can I change the total layout of the portal? Can I remove all the
frames
anf create layout perhaps include menus just below the header
banner?
   
I asked this because I have noticed that there are no frameset
  
   declarations
  
on any of the stylesheets used in the portal samples.
   
Thanks in advance
Richard
  
   -
   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]


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

Re: Cocoon Portal Layout

2002-10-25 Thread Richard Reyes

Hi Bert

Sorry to have confused you...

I'm looking for the part that generates the exact frameset tags
which in the end would be serialized as xhtmls.

Question: There no limitations (except of course for being a valid htmls) on
however
we set these frames / pagesets right?

Thanks.



- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 5:45 PM
Subject: Re: Cocoon Portal Layout


Hi Richard,
As said before, it's in the resources/free/portal.xml file.
Here's the content of mine:

page
   pageset columns=* rows=100,*
 part title=Header scrolling=no
   urladminfree-header/url
 /part
 pageset columns=* rows=*,15
   part title=Content
 urladminfree-content/url
   /part
   part name=bottom scrolling=no
 urladminfree-bottom/url
   /part
 /pageset
   /pageset
/page


There's a similar file in the auth directory.

Is this not what you are looking for??

BTW using the windows search on the content of the files can save a lot of
time when trying to get your grips on the portal.

Bert

At 15:56 25/10/2002 +0800, you wrote:
Thanks Bert I have already read all the urls you've given me.
I have successfully implemented the Authentication, now I'm trying to
do the portal and authorization ( Roles ).
And its sure is that Im gonna read the portal documentations some more.

Although I still would want to know were those frameset codes are?
Its not on the xml, not on the xsl... Are they being generated by Cocoon?

===
- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 3:34 PM
Subject: Re: Cocoon Portal Layout


I have kept the sizing and position of the frames, so I have not tried this
before.
Technically speaking it should not make a difference how your frames are
set up, as long as they are there.  Although I don't see why you would not
be able to
get rid of the admin-header frame though.

Your question has more to do with HTML than with Cocoon or the portal-fw.
;-)  The portal is not that difficult, once you get the hang of it.  Make
sure you have read all the WebApps docs at
http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
read them, read them again!
If you have done this, read the following articles:
http://ziegeler.bei.t-online.de/c2auth.html
http://www.xml.com/pub/a/2002/07/24/xmlportal.html
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.htm
l

Watch out for the xmlns uris they are different in Cocoon 2.0.3 and Cocoon
2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
principle remains the same, only the components have moved.

HTH,
Bert

At 15:11 25/10/2002 +0800, you wrote:
 Hi Bert,
 
 Can I change the orientation of the frames sets? It doesn't seem like it?
 
 - Original Message -
 From: Bert Van Kets [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 2:52 PM
 Subject: Re: Cocoon Portal Layout
 
 
 Sorry Antonio but it's in the resources/free/portal.xml and
 resources/auth/portal.xml files.
 
 Bert
 
 At 00:20 25/10/2002 -0600, you wrote:
  I think inside the xsl file for the portal.
  
  Antonio Gallardo
  
  El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
Thanks Antonio,
   
would you happent to know where the frameset codes declared?
   
- Original Message -
From: Antonio Gallardo Rivera [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 2:04 PM
Subject: Re: Cocoon Portal Layout
   
   
I think you can do that.
   
Antonio Gallardo
   
El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
 Hi Guys,

 I'm using Cocoon 2.1 -dev, and working on implementing the Cocoon
 Portal
 on our application.

 Can I change the total layout of the portal? Can I remove all the
 frames
 anf create layout perhaps include menus just below the header
banner?

 I asked this because I have noticed that there are no frameset
   
declarations
   
 on any of the stylesheets used in the portal samples.

 Thanks in advance
 Richard
   
  
 -
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]
  
  

Cocoon and EJB

2002-10-25 Thread Bruno Collet
Hi
I'm investigating the possibility to use Cocoon 2 for
a big corporate app.
I have a doubt whether it is possible (and easy :) to
fetch data from EJB (connected to a DB) and produce
HTML pages from both XML/XSL documents and these data.

Does it fit into the Cocoon pipeline architecture
concept?
Would it imply writing my own transformers/generators?
Thx!
Bruno

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-
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: [PATCH] for xsp-session:getxml

2002-10-25 Thread Bert Van Kets
Hi Antonio,
I've been trying hard to get this esql sample to work.
The tag works perfectly.
userxsp-session:getxml context=authentication 
path=/authentication/ID//user
returns the userID in my xsp page.  So there is nothing wrong with the 
class or the session.xsl file.

However, I need to create a query containing the userID.  I think I went 
through the whole book of exceptions in Cocoon. :-(
When I try it the way you describe below, I get an error saying method 
parseInt() not found in class java.lang.Integer.  I guess this means 
nothing is returned and the parseInt can't convert.
I've tried all kind of combinations and always get an error.
Here's what I've got now (doesn't work of course):

  esql:execute-query
esql:querySELECT * FROM members WHERE ID=xsp-session:getxml 
context=authentication path=/authentication/ID as=string//esql:query
esql:results
  esql:row-results
esql:get-columns/
  /esql:row-results
/esql:results
  /esql:execute-query

What am I missing here


Bert

P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2


At 05:54 8/10/2002 -0600, you wrote:
Another usage of this tag is to set the parameters of a query based on the is
in esql:query see the example:

esql:query
  SELECT usr_name, usr_full_name, usr_password FROM users
  WHERE usr_id =
  esql:parameter type=int
xsp:expr
  Integer.parseInt(
xsp-session:getxml context=authentication 
path=/authentication/ID
as=string/)
/xsp:expr
  /esql:parameter
/esql:query

Antonio Gallardo

El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera escribió:
 Hi, I recently needed to write some app logi usin xsp:logic tags. Into
 tags we need to write some code like:

 String myUserID = xsp-session:getxml context=authentication
 path=/authentication/ID as=string/;

 Then, I updated xsp-session:getxml to serve strings.

 Currently the attribute as of the element can have 3 values:

 1-as=object (default) returns a org.w3c.dom.DocumentFragment object. More
 info at
 http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragment.h
tml

 2-as=xml return the DocumentFragment into xsp-session:xml tags.

 3- return the value of the firstchild of the requested node. Example: If we
 have:

 IDMyID/ID
 roleMyRole/role
 data
 fullnameTheFullName/fullname

 A) Then if we write:
 xsp-session:getxml context=authentication path=/authentication/ID
 as=string/

 will return MyID

 B) xsp-session:getxml context=authentication
 path=/authentication/data/fullname as=string/

 will return: TheFullName

 Attached is the new session.xsl the place of this file is:

 xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java

 Antonio Gallardo

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




Re: Cocoon Portal Layout

2002-10-25 Thread Bert Van Kets
k, back to the basics then.

I'm using an older version of Cocoon (CVS build of 14/5/2002).  There's not 
much changed to the portal since then, except it moved to a sub sitemap.

Here's the pipeline that's called first:
map:match pattern=sunspotdemoportal
map:act type=auth-loggedIn
map:parameter name=handler 
value=sunspotdemohandler/
map:redirect-to uri=sunspotdemo-portal/
/map:act
map:generate src=sunspotdemo/resources/free/portal.xml/
map:transform src=sunspotdemo/styles/TO-html.xsl/
map:transform type=encodeURL/
map:serialize/
/map:match

Here you see that first an action is called that checks whether the user is 
logged in.  We are going to skip this one for now as that's not what we are 
looking for.  After this you see that the portal.xml file is called and 
it's transformed with teh TO-html.xsl file.  Opening that file and lookign 
for the pageset tag I find:

xsl:template match=pageset
  frameset border=0 frameborder=0 framespacing=0 noresize=
xsl:if test=@rows
  xsl:attribute name=rowsxsl:value-of 
select=@rows//xsl:attribute
/xsl:if
xsl:if test=@columns
  xsl:attribute name=colsxsl:value-of 
select=@columns//xsl:attribute
/xsl:if
xsl:apply-templates/
  /frameset
  /xsl:template

And there is your conversion from teh pageset to the frameset tag.

Does this answer your question?

I'm not sure I get your last question, but the layout can be changed as 
much as you like.  Just make sure the browser get correct (x)html.

HTH,
Bert

At 18:00 25/10/2002 +0800, you wrote:

Hi Bert

Sorry to have confused you...

I'm looking for the part that generates the exact frameset tags
which in the end would be serialized as xhtmls.

Question: There no limitations (except of course for being a valid htmls) on
however
we set these frames / pagesets right?

Thanks.



- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 5:45 PM
Subject: Re: Cocoon Portal Layout


Hi Richard,
As said before, it's in the resources/free/portal.xml file.
Here's the content of mine:

page
   pageset columns=* rows=100,*
 part title=Header scrolling=no
   urladminfree-header/url
 /part
 pageset columns=* rows=*,15
   part title=Content
 urladminfree-content/url
   /part
   part name=bottom scrolling=no
 urladminfree-bottom/url
   /part
 /pageset
   /pageset
/page


There's a similar file in the auth directory.

Is this not what you are looking for??

BTW using the windows search on the content of the files can save a lot of
time when trying to get your grips on the portal.

Bert

At 15:56 25/10/2002 +0800, you wrote:
Thanks Bert I have already read all the urls you've given me.
I have successfully implemented the Authentication, now I'm trying to
do the portal and authorization ( Roles ).
And its sure is that Im gonna read the portal documentations some more.

Although I still would want to know were those frameset codes are?
Its not on the xml, not on the xsl... Are they being generated by Cocoon?

===
- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 3:34 PM
Subject: Re: Cocoon Portal Layout


I have kept the sizing and position of the frames, so I have not tried this
before.
Technically speaking it should not make a difference how your frames are
set up, as long as they are there.  Although I don't see why you would not
be able to
get rid of the admin-header frame though.

Your question has more to do with HTML than with Cocoon or the portal-fw.
;-)  The portal is not that difficult, once you get the hang of it.  Make
sure you have read all the WebApps docs at
http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
read them, read them again!
If you have done this, read the following articles:
http://ziegeler.bei.t-online.de/c2auth.html
http://www.xml.com/pub/a/2002/07/24/xmlportal.html
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.htm
l

Watch out for the xmlns uris they are different in Cocoon 2.0.3 and Cocoon
2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
principle remains the same, only the components have moved.

HTH,
Bert

At 15:11 25/10/2002 +0800, you wrote:
 Hi Bert,
 
 Can I change the orientation of the frames sets? It doesn't seem like it?
 
 - Original Message -
 From: Bert Van Kets [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 2:52 PM
 Subject: Re: Cocoon Portal Layout
 
 
 Sorry Antonio but it's in the resources/free/portal.xml and
 resources/auth/portal.xml files.
 
 Bert
 
 At 00:20 25/10/2002 -0600, you wrote:
  I 

Re: Cocoon Portal Layout

2002-10-25 Thread Richard Reyes

Thanks Bert,

No more questions sir  ( for now ),
Now I have understand it correctly.

Thanks again.

=
- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 6:16 PM
Subject: Re: Cocoon Portal Layout


k, back to the basics then.

I'm using an older version of Cocoon (CVS build of 14/5/2002).  There's not
much changed to the portal since then, except it moved to a sub sitemap.

Here's the pipeline that's called first:
 map:match pattern=sunspotdemoportal
 map:act type=auth-loggedIn
 map:parameter name=handler
value=sunspotdemohandler/
 map:redirect-to uri=sunspotdemo-portal/
 /map:act
 map:generate src=sunspotdemo/resources/free/portal.xml/
 map:transform src=sunspotdemo/styles/TO-html.xsl/
 map:transform type=encodeURL/
 map:serialize/
 /map:match

Here you see that first an action is called that checks whether the user is
logged in.  We are going to skip this one for now as that's not what we are
looking for.  After this you see that the portal.xml file is called and
it's transformed with teh TO-html.xsl file.  Opening that file and lookign
for the pageset tag I find:

xsl:template match=pageset
   frameset border=0 frameborder=0 framespacing=0 noresize=
 xsl:if test=@rows
   xsl:attribute name=rowsxsl:value-of
select=@rows//xsl:attribute
 /xsl:if
 xsl:if test=@columns
   xsl:attribute name=colsxsl:value-of
select=@columns//xsl:attribute
 /xsl:if
 xsl:apply-templates/
   /frameset
   /xsl:template

And there is your conversion from teh pageset to the frameset tag.

Does this answer your question?

I'm not sure I get your last question, but the layout can be changed as
much as you like.  Just make sure the browser get correct (x)html.

HTH,
Bert

At 18:00 25/10/2002 +0800, you wrote:

Hi Bert

Sorry to have confused you...

I'm looking for the part that generates the exact frameset tags
which in the end would be serialized as xhtmls.

Question: There no limitations (except of course for being a valid htmls)
on
however
we set these frames / pagesets right?

Thanks.



- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 5:45 PM
Subject: Re: Cocoon Portal Layout


Hi Richard,
As said before, it's in the resources/free/portal.xml file.
Here's the content of mine:

page
pageset columns=* rows=100,*
  part title=Header scrolling=no
urladminfree-header/url
  /part
  pageset columns=* rows=*,15
part title=Content
  urladminfree-content/url
/part
part name=bottom scrolling=no
  urladminfree-bottom/url
/part
  /pageset
/pageset
/page


There's a similar file in the auth directory.

Is this not what you are looking for??

BTW using the windows search on the content of the files can save a lot of
time when trying to get your grips on the portal.

Bert

At 15:56 25/10/2002 +0800, you wrote:
 Thanks Bert I have already read all the urls you've given me.
 I have successfully implemented the Authentication, now I'm trying to
 do the portal and authorization ( Roles ).
 And its sure is that Im gonna read the portal documentations some more.
 
 Although I still would want to know were those frameset codes are?
 Its not on the xml, not on the xsl... Are they being generated by Cocoon?
 
 ===
 - Original Message -
 From: Bert Van Kets [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 3:34 PM
 Subject: Re: Cocoon Portal Layout
 
 
 I have kept the sizing and position of the frames, so I have not tried
this
 before.
 Technically speaking it should not make a difference how your frames are
 set up, as long as they are there.  Although I don't see why you would
not
 be able to
 get rid of the admin-header frame though.
 
 Your question has more to do with HTML than with Cocoon or the portal-fw.
 ;-)  The portal is not that difficult, once you get the hang of it.  Make
 sure you have read all the WebApps docs at
 http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
 read them, read them again!
 If you have done this, read the following articles:
 http://ziegeler.bei.t-online.de/c2auth.html
 http://www.xml.com/pub/a/2002/07/24/xmlportal.html

http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.htm
l
 
 Watch out for the xmlns uris they are different in Cocoon 2.0.3 and
Cocoon
 2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
 principle remains the same, only the components have moved.
 
 HTH,
 Bert
 
 At 15:11 25/10/2002 +0800, you wrote:
  Hi Bert,
  
  Can I change the 

Re: Handling a form values and updating an XML

2002-10-25 Thread Bert Van Kets
I'm using the FileWritingTransform to do this.  There are lots of samples 
in the portal demo where the user data is written to disk.  It supports 
full XPath in the file, so you can add or replace XML parts.

There is a big BUT though!!!
There is no file locking in the FWT, so you must make sure only 1 person at 
the time does access the file.  AFAIK Apart from this there is no standard 
way of writing to a file in Cocoon.

Bert

At 11:43 25/10/2002 +0200, you wrote:
Hello,
I have a XML document with some values, that I pass to an html form using 
a XSL. When the form is submitted with the new values, I want to update 
the XML document with these new values. Which is the best way of doing 
this, using all the power of cocoon 2.1. That's all, thank you very much.
Iker Amezaga


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




Re: [PATCH] for xsp-session:getxml

2002-10-25 Thread Tuomo Lesonen
Hi Bert,

Try to put esql:parameter around xsp-sessio:getxml in your query.

-Tuomo


On Fri, 25 Oct 2002, Bert Van Kets wrote:

 Hi Antonio,
 I've been trying hard to get this esql sample to work.
 The tag works perfectly.
  userxsp-session:getxml context=authentication
 path=/authentication/ID//user
 returns the userID in my xsp page.  So there is nothing wrong with the
 class or the session.xsl file.

 However, I need to create a query containing the userID.  I think I went
 through the whole book of exceptions in Cocoon. :-(
 When I try it the way you describe below, I get an error saying method
 parseInt() not found in class java.lang.Integer.  I guess this means
 nothing is returned and the parseInt can't convert.
 I've tried all kind of combinations and always get an error.
 Here's what I've got now (doesn't work of course):

esql:execute-query
  esql:querySELECT * FROM members WHERE ID=xsp-session:getxml
 context=authentication path=/authentication/ID as=string//esql:query
  esql:results
esql:row-results
  esql:get-columns/
/esql:row-results
  /esql:results
/esql:execute-query

 What am I missing here


 Bert

 P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2


 At 05:54 8/10/2002 -0600, you wrote:
 Another usage of this tag is to set the parameters of a query based on the is
 in esql:query see the example:
 
 esql:query
SELECT usr_name, usr_full_name, usr_password FROM users
WHERE usr_id =
esql:parameter type=int
  xsp:expr
Integer.parseInt(
  xsp-session:getxml context=authentication
  path=/authentication/ID
 as=string/)
  /xsp:expr
/esql:parameter
 /esql:query
 
 Antonio Gallardo
 
 El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera escribió:
   Hi, I recently needed to write some app logi usin xsp:logic tags. Into
   tags we need to write some code like:
  
   String myUserID = xsp-session:getxml context=authentication
   path=/authentication/ID as=string/;
  
   Then, I updated xsp-session:getxml to serve strings.
  
   Currently the attribute as of the element can have 3 values:
  
   1-as=object (default) returns a org.w3c.dom.DocumentFragment object. More
   info at
   http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragment.h
  tml
  
   2-as=xml return the DocumentFragment into xsp-session:xml tags.
  
   3- return the value of the firstchild of the requested node. Example: If we
   have:
  
   IDMyID/ID
   roleMyRole/role
   data
   fullnameTheFullName/fullname
  
   A) Then if we write:
   xsp-session:getxml context=authentication path=/authentication/ID
   as=string/
  
   will return MyID
  
   B) xsp-session:getxml context=authentication
   path=/authentication/data/fullname as=string/
  
   will return: TheFullName
  
   Attached is the new session.xsl the place of this file is:
  
   xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java
  
   Antonio Gallardo
 
 -
 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]




RE: Cocoon Portal

2002-10-25 Thread José Moreira
does the sunspot components come with the Cocoon tar.gz ?

how can i install them ? thank you



-Mensagem original-
De: Bert Van Kets [mailto:bert;vankets.com]
Enviada: sexta-feira, 25 de Outubro de 2002 11:17
Para: [EMAIL PROTECTED]
Assunto: Re: Cocoon Portal Layout


k, back to the basics then.

I'm using an older version of Cocoon (CVS build of 14/5/2002).  There's not
much changed to the portal since then, except it moved to a sub sitemap.

Here's the pipeline that's called first:
 map:match pattern=sunspotdemoportal
 map:act type=auth-loggedIn
 map:parameter name=handler
value=sunspotdemohandler/
 map:redirect-to uri=sunspotdemo-portal/
 /map:act
 map:generate src=sunspotdemo/resources/free/portal.xml/
 map:transform src=sunspotdemo/styles/TO-html.xsl/
 map:transform type=encodeURL/
 map:serialize/
 /map:match

Here you see that first an action is called that checks whether the user is
logged in.  We are going to skip this one for now as that's not what we are
looking for.  After this you see that the portal.xml file is called and
it's transformed with teh TO-html.xsl file.  Opening that file and lookign
for the pageset tag I find:

xsl:template match=pageset
   frameset border=0 frameborder=0 framespacing=0 noresize=
 xsl:if test=@rows
   xsl:attribute name=rowsxsl:value-of
select=@rows//xsl:attribute
 /xsl:if
 xsl:if test=@columns
   xsl:attribute name=colsxsl:value-of
select=@columns//xsl:attribute
 /xsl:if
 xsl:apply-templates/
   /frameset
   /xsl:template

And there is your conversion from teh pageset to the frameset tag.

Does this answer your question?

I'm not sure I get your last question, but the layout can be changed as
much as you like.  Just make sure the browser get correct (x)html.

HTH,
Bert

At 18:00 25/10/2002 +0800, you wrote:

Hi Bert

Sorry to have confused you...

I'm looking for the part that generates the exact frameset tags
which in the end would be serialized as xhtmls.

Question: There no limitations (except of course for being a valid htmls)
on
however
we set these frames / pagesets right?

Thanks.



- Original Message -
From: Bert Van Kets [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 5:45 PM
Subject: Re: Cocoon Portal Layout


Hi Richard,
As said before, it's in the resources/free/portal.xml file.
Here's the content of mine:

page
pageset columns=* rows=100,*
  part title=Header scrolling=no
urladminfree-header/url
  /part
  pageset columns=* rows=*,15
part title=Content
  urladminfree-content/url
/part
part name=bottom scrolling=no
  urladminfree-bottom/url
/part
  /pageset
/pageset
/page


There's a similar file in the auth directory.

Is this not what you are looking for??

BTW using the windows search on the content of the files can save a lot of
time when trying to get your grips on the portal.

Bert

At 15:56 25/10/2002 +0800, you wrote:
 Thanks Bert I have already read all the urls you've given me.
 I have successfully implemented the Authentication, now I'm trying to
 do the portal and authorization ( Roles ).
 And its sure is that Im gonna read the portal documentations some more.
 
 Although I still would want to know were those frameset codes are?
 Its not on the xml, not on the xsl... Are they being generated by Cocoon?
 
 ===
 - Original Message -
 From: Bert Van Kets [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 3:34 PM
 Subject: Re: Cocoon Portal Layout
 
 
 I have kept the sizing and position of the frames, so I have not tried
this
 before.
 Technically speaking it should not make a difference how your frames are
 set up, as long as they are there.  Although I don't see why you would
not
 be able to
 get rid of the admin-header frame though.
 
 Your question has more to do with HTML than with Cocoon or the portal-fw.
 ;-)  The portal is not that difficult, once you get the hang of it.  Make
 sure you have read all the WebApps docs at
 http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
 read them, read them again!
 If you have done this, read the following articles:
 http://ziegeler.bei.t-online.de/c2auth.html
 http://www.xml.com/pub/a/2002/07/24/xmlportal.html

http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.htm
l
 
 Watch out for the xmlns uris they are different in Cocoon 2.0.3 and
Cocoon
 2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
 principle remains the same, only the components have moved.
 
 HTH,
 Bert
 
 At 15:11 25/10/2002 +0800, you wrote:
  Hi Bert,
  
  Can I change the orientation of the frames sets? 

Re: Handling a form values and updating an XML

2002-10-25 Thread Iker Ametzaga
Could I use xmlforms, with a bean handling the form values and updating 
the XML document usin jdom? Is it possible? Thanks.

Bert Van Kets wrote:

I'm using the FileWritingTransform to do this.  There are lots of 
samples in the portal demo where the user data is written to disk.  It 
supports full XPath in the file, so you can add or replace XML parts.

There is a big BUT though!!!
There is no file locking in the FWT, so you must make sure only 1 
person at the time does access the file.  AFAIK Apart from this there 
is no standard way of writing to a file in Cocoon.

Bert

At 11:43 25/10/2002 +0200, you wrote:

Hello,
I have a XML document with some values, that I pass to an html form 
using a XSL. When the form is submitted with the new values, I want 
to update the XML document with these new values. Which is the best 
way of doing this, using all the power of cocoon 2.1. That's all, 
thank you very much.
Iker Amezaga


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




Re: Throwing an Exception within ESQL

2002-10-25 Thread Christian Haul
On 25.Oct.2002 -- 10:42 AM, Michael Edge wrote:
 
 Hi
 
 In the XSP snippet below I'd like to throw an exception from within 
esql:no-results. My questions are: how do I do this and will the exception be 
caught by the map:handle-errors section of the sitemap?

If you really want, you could throw an exception as you like. I think
it should be a processing exception.

However, you should really consider to do the select in an action, for
example the existing database or modular database actions.

I would cosider your request as extremely bad design.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: Cocoon Portal

2002-10-25 Thread Richard Reyes
yes.

read http://xml.apache.org/cocoon/installing/index.html

build the war file using

build -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes -Dinstall.war=
%TOMCAT_HOME%\webapps webapp

then copy the cocoon.war

good luck

- Original Message -
From: José Moreira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 6:57 PM
Subject: RE: Cocoon Portal


 does the sunspot components come with the Cocoon tar.gz ?

 how can i install them ? thank you



 -Mensagem original-
 De: Bert Van Kets [mailto:bert;vankets.com]
 Enviada: sexta-feira, 25 de Outubro de 2002 11:17
 Para: [EMAIL PROTECTED]
 Assunto: Re: Cocoon Portal Layout


 k, back to the basics then.

 I'm using an older version of Cocoon (CVS build of 14/5/2002).  There's
not
 much changed to the portal since then, except it moved to a sub sitemap.

 Here's the pipeline that's called first:
  map:match pattern=sunspotdemoportal
  map:act type=auth-loggedIn
  map:parameter name=handler
 value=sunspotdemohandler/
  map:redirect-to uri=sunspotdemo-portal/
  /map:act
  map:generate
src=sunspotdemo/resources/free/portal.xml/
  map:transform src=sunspotdemo/styles/TO-html.xsl/
  map:transform type=encodeURL/
  map:serialize/
  /map:match

 Here you see that first an action is called that checks whether the user
is
 logged in.  We are going to skip this one for now as that's not what we
are
 looking for.  After this you see that the portal.xml file is called and
 it's transformed with teh TO-html.xsl file.  Opening that file and lookign
 for the pageset tag I find:

 xsl:template match=pageset
frameset border=0 frameborder=0 framespacing=0 noresize=
  xsl:if test=@rows
xsl:attribute name=rowsxsl:value-of
 select=@rows//xsl:attribute
  /xsl:if
  xsl:if test=@columns
xsl:attribute name=colsxsl:value-of
 select=@columns//xsl:attribute
  /xsl:if
  xsl:apply-templates/
/frameset
/xsl:template

 And there is your conversion from teh pageset to the frameset tag.

 Does this answer your question?

 I'm not sure I get your last question, but the layout can be changed as
 much as you like.  Just make sure the browser get correct (x)html.

 HTH,
 Bert

 At 18:00 25/10/2002 +0800, you wrote:

 Hi Bert
 
 Sorry to have confused you...
 
 I'm looking for the part that generates the exact frameset tags
 which in the end would be serialized as xhtmls.
 
 Question: There no limitations (except of course for being a valid htmls)
 on
 however
 we set these frames / pagesets right?
 
 Thanks.
 
 
 
 - Original Message -
 From: Bert Van Kets [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 5:45 PM
 Subject: Re: Cocoon Portal Layout
 
 
 Hi Richard,
 As said before, it's in the resources/free/portal.xml file.
 Here's the content of mine:
 
 page
 pageset columns=* rows=100,*
   part title=Header scrolling=no
 urladminfree-header/url
   /part
   pageset columns=* rows=*,15
 part title=Content
   urladminfree-content/url
 /part
 part name=bottom scrolling=no
   urladminfree-bottom/url
 /part
   /pageset
 /pageset
 /page
 
 
 There's a similar file in the auth directory.
 
 Is this not what you are looking for??
 
 BTW using the windows search on the content of the files can save a lot
of
 time when trying to get your grips on the portal.
 
 Bert
 
 At 15:56 25/10/2002 +0800, you wrote:
  Thanks Bert I have already read all the urls you've given me.
  I have successfully implemented the Authentication, now I'm trying to
  do the portal and authorization ( Roles ).
  And its sure is that Im gonna read the portal documentations some more.
  
  Although I still would want to know were those frameset codes are?
  Its not on the xml, not on the xsl... Are they being generated by
Cocoon?
  
  ===
  - Original Message -
  From: Bert Van Kets [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 25, 2002 3:34 PM
  Subject: Re: Cocoon Portal Layout
  
  
  I have kept the sizing and position of the frames, so I have not tried
 this
  before.
  Technically speaking it should not make a difference how your frames
are
  set up, as long as they are there.  Although I don't see why you would
 not
  be able to
  get rid of the admin-header frame though.
  
  Your question has more to do with HTML than with Cocoon or the
portal-fw.
  ;-)  The portal is not that difficult, once you get the hang of it.
Make
  sure you have read all the WebApps docs at
  http://xml.apache.org/cocoon/developing/webapps/index.html.  If you
have
  read them, read them again!
  If you have done this, read the 

Re: London Cocoon users

2002-10-25 Thread Alex Romayev
Hey guys,

Sounds good.

I'm working on the client site Monday-Thursday in
Milton Keynes and in London (near Bank station) on
Fridays.

Cheers,
-Alex 

 On Thursday, Oct 24, 2002, at 12:59 Europe/London,
 Alex McLintock wrote:
 
  Hi folks,
 
  Are there any London based Cocoon users on this
 list who want to meet 
  other Cocoon users - perhaps for a pub meeting?
 
 Great idea, count me in.
 
 regards Jeremy



-
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: [PATCH] for xsp-session:getxml

2002-10-25 Thread Bert Van Kets
I tried this already.  This does not work!
Here's my page:

?xml version=1.0 encoding=UTF-8?
xsp:page language=java xmlns:xsp=http://apache.org/xsp; 
xmlns:esql=http://apache.org/cocoon/SQL/v2; 
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
users
esql:connection
esql:poolbvar/esql:pool
esql:execute-query
esql:querySELECT * FROM members WHERE 
ID=esql:parameterxsp-session:getxml context=authentication 
path=/authentication/ID as=string//esql:parameter/esql:query
esql:results
esql:row-results
user
esql:get-columns/
/user
/esql:row-results
/esql:results
/esql:execute-query
/esql:connection
/users
/xsp:page

And here's the error :
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
test_xsp:
Line 371, column 18: illegal start of expression
Line 0, column 0:
1 error

Here's a snip of the content. Line 371 is teh line starting with the + sign:

try {
  _esql_query.getPreparedStatement().setString(1,String.valueOf(
  


+ ));

} catch (SQLException _esql_exception_N1001C) {
  throw new RuntimeException(Error setting parameter on 
statement:  + _esql_query.getQueryString() + : +_esql_exception_N1001C);
}


What else can I try?

Bert


At 13:38 25/10/2002 +0300, you wrote:
Hi Bert,

Try to put esql:parameter around xsp-sessio:getxml in your query.

-Tuomo


On Fri, 25 Oct 2002, Bert Van Kets wrote:

 Hi Antonio,
 I've been trying hard to get this esql sample to work.
 The tag works perfectly.
  userxsp-session:getxml context=authentication
 path=/authentication/ID//user
 returns the userID in my xsp page.  So there is nothing wrong with the
 class or the session.xsl file.

 However, I need to create a query containing the userID.  I think I went
 through the whole book of exceptions in Cocoon. :-(
 When I try it the way you describe below, I get an error saying method
 parseInt() not found in class java.lang.Integer.  I guess this means
 nothing is returned and the parseInt can't convert.
 I've tried all kind of combinations and always get an error.
 Here's what I've got now (doesn't work of course):

esql:execute-query
  esql:querySELECT * FROM members WHERE ID=xsp-session:getxml
 context=authentication path=/authentication/ID 
as=string//esql:query
  esql:results
esql:row-results
  esql:get-columns/
/esql:row-results
  /esql:results
/esql:execute-query

 What am I missing here


 Bert

 P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2


 At 05:54 8/10/2002 -0600, you wrote:
 Another usage of this tag is to set the parameters of a query based on 
the is
 in esql:query see the example:
 
 esql:query
SELECT usr_name, usr_full_name, usr_password FROM users
WHERE usr_id =
esql:parameter type=int
  xsp:expr
Integer.parseInt(
  xsp-session:getxml context=authentication
  path=/authentication/ID
 as=string/)
  /xsp:expr
/esql:parameter
 /esql:query
 
 Antonio Gallardo
 
 El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera escribió:
   Hi, I recently needed to write some app logi usin xsp:logic tags. 
Into
   tags we need to write some code like:
  
   String myUserID = xsp-session:getxml context=authentication
   path=/authentication/ID as=string/;
  
   Then, I updated xsp-session:getxml to serve strings.
  
   Currently the attribute as of the element can have 3 values:
  
   1-as=object (default) returns a org.w3c.dom.DocumentFragment 
object. More
   info at
   
http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragment.h
  tml
  
   2-as=xml return the DocumentFragment into xsp-session:xml tags.
  
   3- return the value of the firstchild of the requested node. 
Example: If we
   have:
  
   IDMyID/ID
   roleMyRole/role
   data
   fullnameTheFullName/fullname
  
   A) Then if we write:
   xsp-session:getxml context=authentication path=/authentication/ID
   as=string/
  
   will return MyID
  
   B) xsp-session:getxml context=authentication
   path=/authentication/data/fullname as=string/
  
   will return: TheFullName
  
   Attached is the new session.xsl the place of this file is:
  
   
xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java
  
   Antonio Gallardo
 
 -
 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, 

encoding problem

2002-10-25 Thread Bert Van Kets
Hi all,

I have a mySQL database with varchar fields containing foreign characters 
(ex. ë)  Queries in the mySQL client yield correct results.
When I do a query using the SQLTransfomer or esql the non ASCII characters 
are not presented properly.  The ë is converted to ë

Here's the pipeline:
map:match pattern=members/getmemberdata
  map:generate type=serverpages src=test/test2.xsp/
  map:transform type=sql
map:parameter name=use-connection value=bvar/
  /map:transform
  map:serialize type=xml/
/map:match

All the serializers have the encodingUTF-8/encoding tag.
The XSP file has a ?xml version=1.0 encoding=UTF-8? header.

Isn't UTF-8 the correct encoding for European characters, or is something 
else wrong?

Bert

Using Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 1.3.1_02



This mail is written in 100% recycled electrons.


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



R: encoding problem

2002-10-25 Thread Luca Morandini
Bert,

try iso-8859-1 as the default XML serializer encoding.

Best regards,

P.S.
Search the mailing list's archive for more information on serializers'
encodings.

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Bert Van Kets [mailto:bert;vankets.com]
 Inviato: venerdì 25 ottobre 2002 13.39
 A: [EMAIL PROTECTED]
 Oggetto: encoding problem


 Hi all,

 I have a mySQL database with varchar fields containing foreign characters
 (ex. ë)  Queries in the mySQL client yield correct results.
 When I do a query using the SQLTransfomer or esql the non ASCII
 characters
 are not presented properly.  The ë is converted to ë

 Here's the pipeline:
 map:match pattern=members/getmemberdata
map:generate type=serverpages src=test/test2.xsp/
map:transform type=sql
  map:parameter name=use-connection value=bvar/
/map:transform
map:serialize type=xml/
 /map:match

 All the serializers have the encodingUTF-8/encoding tag.
 The XSP file has a ?xml version=1.0 encoding=UTF-8? header.

 Isn't UTF-8 the correct encoding for European characters, or is something
 else wrong?

 Bert

 Using Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 1.3.1_02



 This mail is written in 100% recycled electrons.


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





 We are protected from the virus by Norton Antivirus Corporate Edition

-
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: Cocoon and EJB

2002-10-25 Thread Michael Homeijer
I think you have some options in Cocoon:

- Use the castortransformer to transform the resulting data from a bean to
XML. (and then process it additionally with XSL).
- Use the velocity generator to get data from a value-object result from an
EJB.
- Write a jxpath transformer (is probably allready available as part of the
xmlforms solution) to get data from a value-object in xml.

In all solutions you probably have to get the result from an EJB in an
action class and put it in the request object. Other possibilities would be
to output your bean data in XSP, that would probably mean writing a lot of
code, or to adapt the xmlforms solution to use EJB's. 

HTH
Michael
-Original Message-
From: Bruno Collet
To: [EMAIL PROTECTED]
Sent: 25-10-2002 12:06 
Subject: Cocoon and EJB

Hi
I'm investigating the possibility to use Cocoon 2 for
a big corporate app.
I have a doubt whether it is possible (and easy :) to
fetch data from EJB (connected to a DB) and produce
HTML pages from both XML/XSL documents and these data.

Does it fit into the Cocoon pipeline architecture
concept?
Would it imply writing my own transformers/generators?
Thx!
Bruno

__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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




Re: Creating PDF with graphics

2002-10-25 Thread michael . fridrich
Many thanks,

this sounds very good, I will try this.

Greetings,
Michael.


[EMAIL PROTECTED] wrote at 
Thu, 24 Oct 2002 23:59:59 +0200:

[EMAIL PROTECTED] wrote:
 
 java.lang.NoClassDefFoundError: 
org/apache/batik/dom/svg/DefaultSVGContext
 
There were Cocoon versions which included a Batik version
incompatible with the distributed FOP version. Get the
most recent FOP release (0.20.4) and replace both the fop.jar
and batik.jar form Cocoon with the jars from the FOP distro.
This may impede your ability to use the svg2png and svg2jpeg
serializers though, so keep a backup of the batik.jar from
Cocoon.



Michael Fridrich


http://michael-fridrich.piranho.com/


-- Info -
Sind Sie bei einer guenstigen Krankenversicherung versichert? 
Hier finden Sie einen Vergleich privater Krankenversicherungen
fuer diverse Berufsgruppen erwartet Sie hier:
http://partners.webmasterplan.com/click.asp?ref=128254site=1387type=texttnb=2


-
*** sent through http://www.everymail.net FREE e-mail 
 

-
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: Handling a form values and updating an XML

2002-10-25 Thread Ivelin Ivanov

Yes,

XMLForm is an alternative .

The webapp/samples/xmlform demo uses a DOM object nested within a JavaBean.
This should be enough to get you started.
You would probably want to use XMLDocumentContainer as a wrapper bean for
your DOM object.

See also the HOWTO:
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
And JXPath's docs:
http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers


Ivelin

- Original Message -
From: Iker Ametzaga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 6:01 AM
Subject: Re: Handling a form values and updating an XML


 Could I use xmlforms, with a bean handling the form values and updating
 the XML document usin jdom? Is it possible? Thanks.

 Bert Van Kets wrote:

  I'm using the FileWritingTransform to do this.  There are lots of
  samples in the portal demo where the user data is written to disk.  It
  supports full XPath in the file, so you can add or replace XML parts.
 
  There is a big BUT though!!!
  There is no file locking in the FWT, so you must make sure only 1
  person at the time does access the file.  AFAIK Apart from this there
  is no standard way of writing to a file in Cocoon.
 
  Bert
 
  At 11:43 25/10/2002 +0200, you wrote:
 
  Hello,
  I have a XML document with some values, that I pass to an html form
  using a XSL. When the form is submitted with the new values, I want
  to update the XML document with these new values. Which is the best
  way of doing this, using all the power of cocoon 2.1. That's all,
  thank you very much.
  Iker Amezaga
 
 
  -
  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]



-
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: mod-db action yields 'CALL IDENTITY()' MySQL syntax error

2002-10-25 Thread Samuel Bruce
Thanks very much. It worked like a charm.

This configuration wasn't apparent to me from reading
the documentation. Thanks for making it clear. 

--- Christian Haul
[EMAIL PROTECTED] wrote:
 On 24.Oct.2002 -- 09:38 PM, Samuel Bruce wrote:
  Hello,
  
  I'm using the latest CVS, TC 4.1.12, JDK 1.4.01.
  
  The mod-db action inserts the first row correctly,
 but
  fails on the second row insert. It seems to also
 fail
  attempting to rollback.
  
  Anything you can do to help is appreciated.
 
  Thread-10/DatabaseAction: Rolling back
 transaction.
  Caused by Syntax error or access violation: You
 have
  an error in your SQL syntax near 'CALL IDENTITY()'
 at
  line 1
  DEBUG   (2002-10-24) 23:56.37:520  
  [sitemap.action.mod-db-add] ()
  Thread-10/DatabaseAction: There was an error
 rolling
  back the transaction
  java.sql.SQLException: General error: Warning: 
 Some
  non-transactional changed tables couldn't be
 rolled
  back
  at
 
 

org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497)
  at
 
 So, you are trying to use the autoincrement module
 for HSQLDB with
 MySQL. That just won't work. Please use the MySQL
 one. For this, you
 need to edit the cocoon.xconf and uncomment the
 correct module and
 comment out the hsqldb one. mod-db uses the one with
 shorthand auto
 unless instructed otherwise.
 
   Chris.
 -- 
 C h r i s t i a n   H a u l
 [EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9
 6856 335A 9E08
 
 

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


__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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




Problem in mod-db again

2002-10-25 Thread Antonio Gallardo Rivera
Hello.

I am trying to insert permission into a table. The descriptor is:

table name=permisos
  keys
key name=usr_id type=long
  mode name=request-attr type=all
parameter=org.apache.cocoon.components.modules.output.OutputModule:usuarios.usr_id[0]/
 
/key
   key name=obj_id type=long set=master
   mode name=request-param parameter=obj_id type=all/
   /key
 /keys
/table

The table-set is:

table-set name=usuario_y_permisos
  table name=usuarios/
  table name=permisos others-mode=request-attr/
/table-set

The error I got is in the sitemap.log:

Thread-4/DatabaseAction: query: INSERT INTO permisos (usr_id, obj_id) VALUES 
(?, ?)
Thread-4/DatabaseAction: Trying to set column permisos.usr_id from 
request-attr using getAttribute method
Thread-4/DatabaseAction: Setting column permisos.usr_id [0] 5
Thread-4/DatabaseAction: Trying to set column permisos.obj_id from 
request-param using getAttributeValues method
Thread-4/DatabaseAction: Setting column permisos.obj_id [0] 3
Thread-4/DatabaseAction: Setting column permisos.obj_id [1] 2
Thread-4/DatabaseAction:  row no. 0
Thread-4/DatabaseAction: Setting column permisos.usr_id[0] to 5
Thread-4/DatabaseAction: Rolling back transaction. Caused by null

What I am doing wrong?

Regards,

Antonio Gallardo

-
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: [PATCH] for xsp-session:getxml

2002-10-25 Thread Antonio Gallardo Rivera
I will prepare a new patch for this. I am currently using it with the lastest 
CVS version of 2.1.

I also made some enhancement. It now returns as=string.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 05:14, Bert Van Kets escribió:
 I tried this already.  This does not work!
 Here's my page:

 ?xml version=1.0 encoding=UTF-8?
 xsp:page language=java xmlns:xsp=http://apache.org/xsp;
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 users
 esql:connection
 esql:poolbvar/esql:pool
 esql:execute-query
 esql:querySELECT * FROM members WHERE
 ID=esql:parameterxsp-session:getxml context=authentication
 path=/authentication/ID as=string//esql:parameter/esql:query
 esql:results
 esql:row-results
 user
 esql:get-columns/
 /user
 /esql:row-results
 /esql:results
 /esql:execute-query
 /esql:connection
 /users
 /xsp:page

 And here's the error :
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 test_xsp:
 Line 371, column 18: illegal start of expression
 Line 0, column 0:
 1 error

 Here's a snip of the content. Line 371 is teh line starting with the +
 sign:

  try {
   
 _esql_query.getPreparedStatement().setString(1,String.valueOf( 


  + ));

  } catch (SQLException _esql_exception_N1001C) {
throw new RuntimeException(Error setting parameter on
 statement:  + _esql_query.getQueryString() + : +_esql_exception_N1001C);
  }


 What else can I try?

 Bert

 At 13:38 25/10/2002 +0300, you wrote:
 Hi Bert,
 
 Try to put esql:parameter around xsp-sessio:getxml in your query.
 
 -Tuomo
 
 On Fri, 25 Oct 2002, Bert Van Kets wrote:
   Hi Antonio,
   I've been trying hard to get this esql sample to work.
   The tag works perfectly.
userxsp-session:getxml context=authentication
   path=/authentication/ID//user
   returns the userID in my xsp page.  So there is nothing wrong with the
   class or the session.xsl file.
  
   However, I need to create a query containing the userID.  I think I
   went through the whole book of exceptions in Cocoon. :-(
   When I try it the way you describe below, I get an error saying method
   parseInt() not found in class java.lang.Integer.  I guess this means
   nothing is returned and the parseInt can't convert.
   I've tried all kind of combinations and always get an error.
   Here's what I've got now (doesn't work of course):
  
  esql:execute-query
esql:querySELECT * FROM members WHERE ID=xsp-session:getxml
   context=authentication path=/authentication/ID
 
  as=string//esql:query
 
esql:results
  esql:row-results
esql:get-columns/
  /esql:row-results
/esql:results
  /esql:execute-query
  
   What am I missing here
  
  
   Bert
  
   P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2
  
   At 05:54 8/10/2002 -0600, you wrote:
   Another usage of this tag is to set the parameters of a query based on
 
  the is
 
   in esql:query see the example:
   
   esql:query
  SELECT usr_name, usr_full_name, usr_password FROM users
  WHERE usr_id =
  esql:parameter type=int
xsp:expr
  Integer.parseInt(
xsp-session:getxml context=authentication
path=/authentication/ID
   as=string/)
/xsp:expr
  /esql:parameter
   /esql:query
   
   Antonio Gallardo
   
   El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera 
escribió:
 Hi, I recently needed to write some app logi usin xsp:logic tags.
 
  Into
 
 tags we need to write some code like:

 String myUserID = xsp-session:getxml context=authentication
 path=/authentication/ID as=string/;

 Then, I updated xsp-session:getxml to serve strings.

 Currently the attribute as of the element can have 3 values:

 1-as=object (default) returns a org.w3c.dom.DocumentFragment
 
  object. More
 
 info at
 
  http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragment
 .h
 
tml

 2-as=xml return the DocumentFragment into xsp-session:xml tags.

 3- return the value of the firstchild of the requested node.
 
  Example: If we
 
 have:

 IDMyID/ID
 roleMyRole/role
 data
 fullnameTheFullName/fullname

 A) Then if we write:
 xsp-session:getxml context=authentication
 path=/authentication/ID as=string/

 will return MyID

 B) xsp-session:getxml context=authentication
 path=/authentication/data/fullname as=string/

 will return: TheFullName

 Attached is the new session.xsl the place of this file is:
 
  xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/jav
 a
 
 Antonio Gallardo
   
   -
   Please check that your question  has 

Re: SVG: NoClassDefFoundError

2002-10-25 Thread Christian Parpart
WARNING: Unsanitized content follows.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 24 October 2002 5:48 pm, Kjetil inspired the electrons to say:
 On Thursday 24 October 2002 13:50, Christian Parpart wrote:
  org.apache.cocoon.ProcessingException: Error compiling sitemap:
  java.lang.NoClassDefFoundError

 Hm, I wonder if it is related to the error I'm seeing. Can I ask which
 SDK you're using, at what platform?

I was first using Sun Java SDK 1.4.1 for Linux (completely gcc3.2 build), 
after getting linkage errors by that binary only version against the old 
libstdc++ (wich, of course, does not exist). 

This error was raised at sitemap compilation at the very beginning

I am really not able to easily downgrade to gcc2.x

I had to switch to blackdown jdk 1.3.1. Here I got the error described.
Blackdown JDK (1.3.1) is binary only distributed, too. but it seems that it's 
not linked against libstdc++.

 I've been using various SDK's from various sources, this one is 1.3.1
 from Blackdown on Debian Woody GNU/Linux 2.4.19. I've seen many
 different errors with different SDK's, this one seems to only come with
 some builds of this version...

 So, I can't be of any help, but if it is correct that there is some
 relationship here, maybe the wizards can get onto something.

Well, I'm using Gentoo Linux with latest kernel, but this is probably not the 
point; but Yeah, where (TF) are the wizards now?

Greets,
Christian Parpart.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9uVUrPpa2GmDVhK0RAi4cAJ4naBx0jJiLjFQ98gSMkq2ZSvYGzgCcCctb
L352u6qZMqKX/zmQAe3F8lI=
=9V8W
-END PGP SIGNATURE-


-
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: [PATCH] for xsp-session:getxml

2002-10-25 Thread Bert Van Kets
Looking forward to it.  Thanks.

I'm using the SQL Transformer as an alternative, but this means some extra 
transformers in my pipeline :-(

Bert

At 08:16 25/10/2002 -0600, you wrote:
I will prepare a new patch for this. I am currently using it with the lastest
CVS version of 2.1.

I also made some enhancement. It now returns as=string.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 05:14, Bert Van Kets escribió:
 I tried this already.  This does not work!
 Here's my page:

 ?xml version=1.0 encoding=UTF-8?
 xsp:page language=java xmlns:xsp=http://apache.org/xsp;
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 users
 esql:connection
 esql:poolbvar/esql:pool
 esql:execute-query
 esql:querySELECT * FROM members WHERE
 ID=esql:parameterxsp-session:getxml context=authentication
 path=/authentication/ID as=string//esql:parameter/esql:query
 esql:results
 esql:row-results
 user
 esql:get-columns/
 /user
 /esql:row-results
 /esql:results
 /esql:execute-query
 /esql:connection
 /users
 /xsp:page

 And here's the error :
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 test_xsp:
 Line 371, column 18: illegal start of expression
 Line 0, column 0:
 1 error

 Here's a snip of the content. Line 371 is teh line starting with the +
 sign:

  try {

 _esql_query.getPreparedStatement().setString(1,String.valueOf( 


  + ));

  } catch (SQLException _esql_exception_N1001C) {
throw new RuntimeException(Error setting parameter on
 statement:  + _esql_query.getQueryString() + : +_esql_exception_N1001C);
  }


 What else can I try?

 Bert

 At 13:38 25/10/2002 +0300, you wrote:
 Hi Bert,
 
 Try to put esql:parameter around xsp-sessio:getxml in your query.
 
 -Tuomo
 
 On Fri, 25 Oct 2002, Bert Van Kets wrote:
   Hi Antonio,
   I've been trying hard to get this esql sample to work.
   The tag works perfectly.
userxsp-session:getxml context=authentication
   path=/authentication/ID//user
   returns the userID in my xsp page.  So there is nothing wrong with the
   class or the session.xsl file.
  
   However, I need to create a query containing the userID.  I think I
   went through the whole book of exceptions in Cocoon. :-(
   When I try it the way you describe below, I get an error saying method
   parseInt() not found in class java.lang.Integer.  I guess this means
   nothing is returned and the parseInt can't convert.
   I've tried all kind of combinations and always get an error.
   Here's what I've got now (doesn't work of course):
  
  esql:execute-query
esql:querySELECT * FROM members WHERE ID=xsp-session:getxml
   context=authentication path=/authentication/ID
 
  as=string//esql:query
 
esql:results
  esql:row-results
esql:get-columns/
  /esql:row-results
/esql:results
  /esql:execute-query
  
   What am I missing here
  
  
   Bert
  
   P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2
  
   At 05:54 8/10/2002 -0600, you wrote:
   Another usage of this tag is to set the parameters of a query based on
 
  the is
 
   in esql:query see the example:
   
   esql:query
  SELECT usr_name, usr_full_name, usr_password FROM users
  WHERE usr_id =
  esql:parameter type=int
xsp:expr
  Integer.parseInt(
xsp-session:getxml context=authentication
path=/authentication/ID
   as=string/)
/xsp:expr
  /esql:parameter
   /esql:query
   
   Antonio Gallardo
   
   El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera
escribió:
 Hi, I recently needed to write some app logi usin xsp:logic tags.
 
  Into
 
 tags we need to write some code like:

 String myUserID = xsp-session:getxml context=authentication
 path=/authentication/ID as=string/;

 Then, I updated xsp-session:getxml to serve strings.

 Currently the attribute as of the element can have 3 values:

 1-as=object (default) returns a org.w3c.dom.DocumentFragment
 
  object. More
 
 info at
 
  http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragment
 .h
 
tml

 2-as=xml return the DocumentFragment into xsp-session:xml tags.

 3- return the value of the firstchild of the requested node.
 
  Example: If we
 
 have:

 IDMyID/ID
 roleMyRole/role
 data
 fullnameTheFullName/fullname

 A) Then if we write:
 xsp-session:getxml context=authentication
 path=/authentication/ID as=string/

 will return MyID

 B) xsp-session:getxml context=authentication
 path=/authentication/data/fullname as=string/

 will return: TheFullName

 Attached is the new session.xsl the place of this file is:
 
  

Re: cocoon-users Digest 25 Oct 2002 14:33:49 -0000 Issue 1662

2002-10-25 Thread Michael Edge

Why would it be a bad design, Chris? My understanding of ESQL is that it exists 
specifically for the purpose of extracting data from a database and formatting it as 
XML. What benefit is there to having a SELECT in an action, besides having people such 
as yourself consider it a good design.

Regards

Michael



- Message from Christian Haul [EMAIL PROTECTED] on Fri, 25 
Oct 2002 13:13:56 +0200 -
  
  To: [EMAIL PROTECTED] 
  
 Subject: Re: Throwing an Exception   
  within ESQL 
  

On 25.Oct.2002 -- 10:42 AM, Michael Edge wrote:

 Hi

 In the XSP snippet below I'd like to throw an exception from within 
esql:no-results. My questions are: how do I do this and will the exception be 
caught by the map:handle-errors section of the sitemap?

If you really want, you could throw an exception as you like. I think
it should be a processing exception.

However, you should really consider to do the select in an action, for
example the existing database or modular database actions.

I would cosider your request as extremely bad design.

 Chris.
--
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08








--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



-
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: Cocoon and EJB

2002-10-25 Thread Martin Schimak
Bruno Collet wrote:
 I have a doubt whether it is possible (and easy :) to
 fetch data from EJB (connected to a DB) and produce
 HTML pages from both XML/XSL documents and these data.

Despite Michael Homeijer interesting answers, there were not
many responses, and it seems to me there are never a lot when
it comes to EJB and Cocoon. As I am also interested, is
really nobody out there who knows much more about it...?

Are there any resources available focusing on EJB and Cocoon?

Many thx in advance,
Martin.



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




R: R: encoding problem

2002-10-25 Thread Luca Morandini
Bert,

I can only say that I had your same problem and solved it by replacing utf-8
with iso-8859-1 in the serializers' encoding; moreover, AFAIK, the default
is utf-8 (as it should be, since XML has utf-8 as default).

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Bert Van Kets [mailto:bert;vankets.com]
 Inviato: venerdì 25 ottobre 2002 16.33
 A: [EMAIL PROTECTED]
 Oggetto: Re: R: encoding problem


 Of course I checked the mail logs before bugging the list.  I could not
 find a solution though.  I did find that I need to use UTF-8 and not
 iso-8859-1 (the Cocoon default)

 Searching through the source I found that a LOT of classes and XSLTs set
 the encoding to iso-8859-1, so I am replacing these to UTF-8 and will
 recompile afterwards.  Lets see what that gives.

 Bert

 At 13:55 25/10/2002 +0200, you wrote:
 Bert,
 
 try iso-8859-1 as the default XML serializer encoding.
 
 Best regards,
 
 P.S.
 Search the mailing list's archive for more information on serializers'
 encodings.
 
 Luca Morandini
 [EMAIL PROTECTED]
 
 


 We are protected from the virus by Norton Antivirus Corporate Edition

-
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: Cocoon and EJB

2002-10-25 Thread Piroumian Konstantin
I have a logicsheet for EJB somewhere, but was developed for Cocoon 1.
If anybody is interested then I can try to find it and send.

--
  Konstantin Piroumian


 -Original Message-
 From: Martin Schimak [mailto:cocoon-users;schimak.at] 
 Sent: Friday, October 25, 2002 6:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon and EJB
 
 
 Bruno Collet wrote:
   I have a doubt whether it is possible (and easy :) to
   fetch data from EJB (connected to a DB) and produce
   HTML pages from both XML/XSL documents and these data.
 
 Despite Michael Homeijer interesting answers, there were not 
 many responses, and it seems to me there are never a lot when 
 it comes to EJB and Cocoon. As I am also interested, is 
 really nobody out there who knows much more about it...?
 
 Are there any resources available focusing on EJB and Cocoon?
 
 Many thx in advance,
 Martin.
 
 
 
 -
 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]




Re: encoding problem

2002-10-25 Thread Boris Althaus



hy Bert,

we had this problem too.
look, if the map:actions section contains 
following:map:action name="set-encoding" 
src="org.apache.cocoon.acting.SetCharacterEncodingAction"/

and at the beginning of a pipelinemap:act 
type="set-encoding"map:parameter name="form-encoding" 
value="UTF-8"//map:act


That should work.

Boris




  - Original Message - 
  From: 
  Bert Van Kets 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, October 25, 2002 1:39 
  PM
  Subject: encoding problem
  Hi all,I have a mySQL database with varchar fields 
  containing foreign characters (ex. ë) Queries in the mySQL client 
  yield correct results.When I do a query using the SQLTransfomer or esql 
  the non ASCII characters are not presented properly. The ë is 
  converted to ëHere's the pipeline:map:match 
  pattern="members/getmemberdata" map:generate 
  type="serverpages" src="test/test2.xsp"/ map:transform 
  type="sql" map:parameter 
  name="use-connection" value="bvar"/ 
  /map:transform map:serialize 
  type="xml"//map:matchAll the serializers have the 
  encodingUTF-8/encoding tag.The XSP file has a ?xml 
  version="1.0" encoding="UTF-8"? header.Isn't UTF-8 the correct 
  encoding for European characters, or is something else 
  wrong?BertUsing Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 
  1.3.1_02This mail is written in 100% recycled 
  electrons.-Please 
  check that your question has not already been answered in theFAQ 
  before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


EXSLT

2002-10-25 Thread Boris Althaus




Hallo,

does anyone know if cocoon2 supports 
exslt-extension-functions and when how to use them?


Boris



Re: Cocoon and EJB

2002-10-25 Thread Emmanuil Batsis (Manos)
Martin Schimak wrote:


Are there any resources available focusing on EJB and Cocoon?


The million dollar question. I'm trying to push Cocoon in the company I 
work for and I keep stumbling upon it.

Manos



-
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: Cocoon and EJB

2002-10-25 Thread Martin Schimak
Piroumian Konstantin wrote:

I have a logicsheet for EJB somewhere, but was developed for Cocoon 1.
If anybody is interested then I can try to find it and send.


If it's not too complicated, yes, please, would be interesting to look into.
Martin.




--
  Konstantin Piroumian




-Original Message-
From: Martin Schimak [mailto:cocoon-users;schimak.at] 
Sent: Friday, October 25, 2002 6:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon and EJB


Bruno Collet wrote:
 I have a doubt whether it is possible (and easy :) to
 fetch data from EJB (connected to a DB) and produce
 HTML pages from both XML/XSL documents and these data.

Despite Michael Homeijer interesting answers, there were not 
many responses, and it seems to me there are never a lot when 
it comes to EJB and Cocoon. As I am also interested, is 
really nobody out there who knows much more about it...?

Are there any resources available focusing on EJB and Cocoon?

Many thx in advance,
Martin.



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




RE: Cocoon and EJB

2002-10-25 Thread Leigh Dodds
I'd originally planned to do some work with Cocoon and EJB, but 
didn't get very far.

I was going to use Cocoon as an alternate presentation layer for 
my J2EE application and was therefore planning to integrate them 
by writing XSP pages (with helper classes and logicsheets for 
each EJB) to talk to the bean, and then use pipelines for all the 
downstream processing.

/ducks head back under workload.

Cheers,

L.



-
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: Cocoon and EJB

2002-10-25 Thread Hunsberger, Peter
  I have a doubt whether it is possible (and easy :) to
  fetch data from EJB (connected to a DB) and produce
  HTML pages from both XML/XSL documents and these data.

 Despite Michael Homeijer interesting answers, there were not
 many responses, and it seems to me there are never a lot when
 it comes to EJB and Cocoon. As I am also interested, is
 really nobody out there who knows much more about it...?
 
 Are there any resources available focusing on EJB and Cocoon?

Don't know about resources, but I also don't really see what the issue is?
In our case we use JBoss with Tomcat and Cocoon.  We define the EJB
resources through JBoss and don't worry about them in Cocoon.  We then
package up the Cocoon WAR with our EJB JAR into a EAR and deploy it under
JBoss.  With the proper JNDI definitions in JBoss all is done; your Cocoon
classes see the EJBs and away you go.  It took me perhaps a week of fiddling
to get this going, but the magic trick is to make sure you've got all the
classes in the proper places for the particular combination of Tomcat,
JBoss, JDK and Cocoon.  

Following is a summary of various messages I've found that I used to create
some basic instructions for our developers on how to get the whole thing up
and running.  Some of this is out of date, since new binaries are now
available that did not exist when I wrote this and life is now a bit
simpler.

How to deploy Cocoon on JBoss and Tomcat


1. Deploy tomcat/jboss. Versions 4.0/2.4.3 are apparently known to work. We
use 4.0.4 and 2.4.4. 
   Note that according to the Cocoon2 homepage certain beta versions of
Tomcat dows not work with Cocoon2.

   To deploy Tomcat 4.0.4 use the integrated 2.4.4/4.0.1 Tomcat/Jboss then
copy a Tomcat 4.0.4 install over the
   catalina directory structure in the Jboss/Tomcat install. If you do
this, I'd rename the base directory to
   help keep things straight as to what is installed.

2. Add environment variable CATALINA_OPTS=-Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7070.
   This is to be able to debug java run in Tomcat. For Netbeans 3.2.1 for
programming/debugging (remember to add port 7070 to debugging environment).

3. Delete in [your path]/JBoss-2.4.3_Tomcat-4.0/jboss/lib following:
  -crimson.jar
  -jaxp.jar
  -xml.jar
  (xml.jar is not present in latest versions of JBoss.)

  If Tomcat 3.x is used the following files must be also be deleted: from
[your path]/JBoss-xxx_Tomcat-3.x/tomcat/lib:
   -parser.jar
   -jaxp.jar


4. new run.bat file in [your path]/JBoss-2.4.3_Tomcat-4.0/jboss/bin to:
   @echo off
   @if not %ECHO% ==  echo %ECHO%
   @if %OS% == Windows_NT setlocal

   set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;run.jar

   REM Add all login modules for JAAS-based security
   REM and all libraries that are used by them here

   REM need one of the two following lines for xerces support
   set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/xerces.jar
   REM set JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xml-apis.jar

   REM Add the XML parser jars and set the JAXP factory names
   REM Crimson parser JAXP setup(default)
   REM set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar
   REM set
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
men tBuilderFactoryImpl
   REM set JAXP=%JAXP%
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactor
yIm pl

   echo JBOSS_CLASSPATH=%JBOSS_CLASSPATH%
   java %JAXP% -classpath %JBOSS_CLASSPATH% org.jboss.Main %1 %2 %3 %4 %5
%6 %7 %8 %9

   pause

5. If you want to be able to debug JBoss/Tomcat/Cocoon2 replace the last
line (before pause) with:

  java -Xint -Xdebug -Xnoagent -classpath %JBOSS_CLASSPATH%
-Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n
org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

   If you use Netbeans 3.2.1 for programming/debugging remember to add port
12999 to debugging environment.

6. copy xerces.jar to [your path]/JBoss-2.4.3_Tomcat-4.0/jboss/lib. We used
versions 1.4.3.
   Download xerces binary and use .jar file in the downloaded xerces_xxx.zip
   The Apache site suggests that you should copy xml-apis.jar from
cocoon/lib/core/ to jboss/lib.
   However, I did not have to do this.  If you think you need xml-apis.jar
you may also want to uncomment the
   line in run.bat that refers to it and comment the line that uses xerces.
Only one of these should be needed...

7. add environment variable TOMCAT_HOME=[your
path]/JBoss-2.4.3_Tomcat-4.0/catalina/
   (if a Tomcat 3.x version is used catalina must be substituted with
tomcat).
   This is for use with Cocoon ant file: build.bat.


8. Test that JBoss/Tomcat starts up and responds on port 8080/jboss
   Contrary to some documentation the test application still works fine.


Cocoon and Java 1.4 configuration
-

Cocoon requires more recent versions of the Xerces and Xalan libraries than
those shipped with 

RE: Cocoon and EJB

2002-10-25 Thread Piroumian Konstantin
Here is the EJB logicsheet for Cocoon 1 and I think that it can be easily
adapted for Cocoon 2.

The author is Yvon Pedron  ([EMAIL PROTECTED]), but he does not
support it any more.

--
  Konstantin Piroumian


 -Original Message-
 From: Martin Schimak [mailto:cocoon-users;schimak.at] 
 Sent: Friday, October 25, 2002 6:54 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon and EJB
 
 
 Piroumian Konstantin wrote:
  I have a logicsheet for EJB somewhere, but was developed 
 for Cocoon 1. 
  If anybody is interested then I can try to find it and send.
 
 If it's not too complicated, yes, please, would be 
 interesting to look into. Martin.
 
 
  
  --
Konstantin Piroumian
  
  
  
 -Original Message-
 From: Martin Schimak [mailto:cocoon-users;schimak.at]
 Sent: Friday, October 25, 2002 6:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon and EJB
 
 
 Bruno Collet wrote:
   I have a doubt whether it is possible (and easy :) to fetch data 
   from EJB (connected to a DB) and produce HTML pages from both 
   XML/XSL documents and these data.
 
 Despite Michael Homeijer interesting answers, there were not
 many responses, and it seems to me there are never a lot when 
 it comes to EJB and Cocoon. As I am also interested, is 
 really nobody out there who knows much more about it...?
 
 Are there any resources available focusing on EJB and Cocoon?
 
 Many thx in advance,
 Martin.
 
 
 
 
 -
 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]
 




ejb-logicsheet.zip
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]


Re: encoding problem

2002-10-25 Thread Bert Van Kets
I'm using a build from 14 May 2002.  This doesn't have this action 
yet.  I'll check a recent build and try that.
Do you mean that I need to add this action at the beginning of EVERY pipeline?

Bert

At 16:55 25/10/2002 +0200, you wrote:
hy Bert,

we had this problem too.
look, if the map:actions section contains following:
map:action name=set-encoding 
src=org.apache.cocoon.acting.SetCharacterEncodingAction/

and at the beginning of a pipeline
map:act type=set-encoding
 map:parameter name=form-encoding value=UTF-8/
/map:act


That should work.

Boris



- Original Message -
From: mailto:bert;vankets.comBert Van Kets
To: mailto:cocoon-users;xml.apache.org[EMAIL PROTECTED]
Sent: Friday, October 25, 2002 1:39 PM
Subject: encoding problem

Hi all,

I have a mySQL database with varchar fields containing foreign characters
(ex. ë)  Queries in the mySQL client yield correct results.
When I do a query using the SQLTransfomer or esql the non ASCII characters
are not presented properly.  The ë is converted to ë

Here's the pipeline:
map:match pattern=members/getmemberdata
   map:generate type=serverpages src=test/test2.xsp/
   map:transform type=sql
 map:parameter name=use-connection value=bvar/
   /map:transform
   map:serialize type=xml/
/map:match

All the serializers have the encodingUTF-8/encoding tag.
The XSP file has a ?xml version=1.0 encoding=UTF-8? header.

Isn't UTF-8 the correct encoding for European characters, or is something
else wrong?

Bert

Using Cocoon 2.1 build 5/14/2002, Tomcat 4.0.1, JDK 1.3.1_02





This mail is written in 100% recycled electrons.



-
Please check that your question  has not already been answered in the
FAQ before 
posting. 
http://xml.apache.org/cocoon/faq/index.htmlhttp://xml.apache.org/cocoon/faq/index.html

To unsubscribe, 
e-mail: 
mailto:cocoon-users-unsubscribe;xml.apache.org[EMAIL PROTECTED] 

For additional commands, 
e-mail: 
mailto:cocoon-users-help;xml.apache.org[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]




cocoon Batik

2002-10-25 Thread marco scotoni



I try to update Batik up version 1.5b4 but i've got 
some problems...

on cocoon 2.0.3 i have batik-all-1.5b2.jar 
file
and on bin of last beta 4 a lot of 
file...

anyone could help me to know how create a 
batik-all-XXX.jar from all little files?

or if there's a different way to do thi 
update?

thx

__Dark 
SchneiderICQ#:13815557

  
  
Current ICQ status:
 
  + More ways to contact me 
__


online?icq=13815557=21
Description: Binary data


RES: Cocoon and EJB

2002-10-25 Thread Gustavo Nalle Fernandes
 In J2EE world, cocoon would play the role of the presentation tier, same as
struts.
In some cases, cocoon would bypass EJBs, to provide read-only data-retrieval
(faster than
instantiate thousands of bean in memory).
What about a ValueObject generator, that by reflection generates sax events
containing a bean
atributes and values, with the option of specifing the depth (number of
levels of child beans) wanted ?


Gustavo


-Mensagem original-
De: Emmanuil Batsis (Manos) [mailto:mbatsis;humanmarkup.org]
Enviada em: sexta-feira, 25 de outubro de 2002 11:59
Para: [EMAIL PROTECTED]
Assunto: Re: Cocoon and EJB


Martin Schimak wrote:

 Are there any resources available focusing on EJB and Cocoon?

The million dollar question. I'm trying to push Cocoon in the company I
work for and I keep stumbling upon it.

Manos



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




RE: Cocoon and EJB

2002-10-25 Thread Piroumian Konstantin
 From: Gustavo Nalle Fernandes [mailto:gustavonf;terra.com.br] 
 
  In J2EE world, cocoon would play the role of the 
 presentation tier, same as struts. In some cases, cocoon 
 would bypass EJBs, to provide read-only data-retrieval 
 (faster than instantiate thousands of bean in memory). What 
 about a ValueObject generator, that by reflection generates 
 sax events containing a bean atributes and values, with the 
 option of specifing the depth (number of levels of child 
 beans) wanted ?

Value objects can be easily XML-ized using Castor transformer. Take a look
at it in Cocoon scratchpad.
Somebody suggested already this solution and also the JXPath-based
generation or XSP logicsheet generator.

--
  Konstantin

 
 
 Gustavo
 
 
 -Mensagem original-
 De: Emmanuil Batsis (Manos) [mailto:mbatsis;humanmarkup.org] 
 Enviada em: sexta-feira, 25 de outubro de 2002 11:59
 Para: [EMAIL PROTECTED]
 Assunto: Re: Cocoon and EJB
 
 
 Martin Schimak wrote:
 
  Are there any resources available focusing on EJB and Cocoon?
 
 The million dollar question. I'm trying to push Cocoon in the 
 company I work for and I keep stumbling upon it.
 
 Manos
 
 
 
 -
 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]




Re: R: R: encoding problem

2002-10-25 Thread Bert Van Kets
Hmm, strange.  I started having the problem when the serializers were set 
to iso-8859-1.
More reading and testing coming up. :(

Bert

At 16:47 25/10/2002 +0200, you wrote:
Bert,

I can only say that I had your same problem and solved it by replacing utf-8
with iso-8859-1 in the serializers' encoding; moreover, AFAIK, the default
is utf-8 (as it should be, since XML has utf-8 as default).

Best regards,

Luca Morandini
[EMAIL PROTECTED]


 -Messaggio originale-
 Da: Bert Van Kets [mailto:bert;vankets.com]
 Inviato: venerdì 25 ottobre 2002 16.33
 A: [EMAIL PROTECTED]
 Oggetto: Re: R: encoding problem


 Of course I checked the mail logs before bugging the list.  I could not
 find a solution though.  I did find that I need to use UTF-8 and not
 iso-8859-1 (the Cocoon default)

 Searching through the source I found that a LOT of classes and XSLTs set
 the encoding to iso-8859-1, so I am replacing these to UTF-8 and will
 recompile afterwards.  Lets see what that gives.

 Bert

 At 13:55 25/10/2002 +0200, you wrote:
 Bert,
 
 try iso-8859-1 as the default XML serializer encoding.
 
 Best regards,
 
 P.S.
 Search the mailing list's archive for more information on serializers'
 encodings.
 
 Luca Morandini
 [EMAIL PROTECTED]
 
 


 We are protected from the virus by Norton Antivirus Corporate Edition

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




Re: encoding problem

2002-10-25 Thread Boris Althaus



I had to insert it to the recent 
cocoon-distribution(2.03). But it worked immeadiatly and i think it will work 
without rebuilt in the dev-built as well.


You can add it to a action-set
map:action-setsmap:action-set 
name="mitarbeiter"map:act 
type="set-encoding"map:parameter 
name="form-encoding" 
value="UTF-8"//map:actmap:act 
type="session-validator"/map:act action="add_mit" 
type="add-mitarbeiter"/map:act action="delete_mit" 
type="del-mitarbeiter"/map:act action="update_mit" 
type="upd-mitarbeiter"//map:action-set/map:action-sets

I don't know if there are other 
possibilities.

Boris

- Original Message - 

  From: 
  Bert Van Kets 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, October 25, 2002 4:58 
  PM
  Subject: Re: encoding problem
  I'm using a build from 14 May 2002. This doesn't have 
  this action yet. I'll check a recent build and try that.Do you 
  mean that I need to add this action at the beginning of EVERY 
  pipeline?BertAt 16:55 25/10/2002 +0200, you wrote:hy 
  Bert,we had this problem too.look, if the map:actions 
  section contains following:map:action name="set-encoding" 
  src="org.apache.cocoon.acting.SetCharacterEncodingAction"/and 
  at the beginning of a pipelinemap:act 
  type="set-encoding" map:parameter name="form-encoding" 
  value="UTF-8"//map:actThat should 
  work.Boris- Original 
  Message -From: mailto:[EMAIL PROTECTED]Bert Van 
  KetsTo: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]Sent: 
  Friday, October 25, 2002 1:39 PMSubject: encoding 
  problemHi all,I have a mySQL database with 
  varchar fields containing foreign characters(ex. ë) Queries in 
  the mySQL client yield correct results.When I do a query using the 
  SQLTransfomer or esql the non ASCII charactersare not presented 
  properly. The ë is converted to ëHere's the 
  pipeline:map:match 
  pattern="members/getmemberdata" map:generate 
  type="serverpages" src="test/test2.xsp"/ 
  map:transform type="sql" 
  map:parameter name="use-connection" 
  value="bvar"/ 
  /map:transform map:serialize 
  type="xml"//map:matchAll the serializers 
  have the encodingUTF-8/encoding tag.The XSP file has a 
  ?xml version="1.0" encoding="UTF-8"? header.Isn't 
  UTF-8 the correct encoding for European characters, or is 
  somethingelse wrong?BertUsing Cocoon 
  2.1 build 5/14/2002, Tomcat 4.0.1, JDK 
  1.3.1_02This mail is written 
  in 100% recycled 
  electrons.-Please 
  check that your question has not already been answered in theFAQ 
  before posting. http://xml.apache.org/cocoon/faq/index.htmlhttp://xml.apache.org/cocoon/faq/index.htmlTo 
  unsubscribe, e-mail: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 
  For additional commands, e-mail: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]-Please 
  check that your question has not already been answered in theFAQ 
  before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


Re: R: encoding problem

2002-10-25 Thread Bruno Dumon
On Fri, 2002-10-25 at 16:33, Bert Van Kets wrote:
 Of course I checked the mail logs before bugging the list.  I could not 
 find a solution though.  I did find that I need to use UTF-8 and not 
 iso-8859-1 (the Cocoon default)
 
 Searching through the source I found that a LOT of classes and XSLTs set 
 the encoding to iso-8859-1, so I am replacing these to UTF-8 and will 
 recompile afterwards.  Lets see what that gives.
 

Bert, 

I cannot imagine that the above would help, nor would changing the
encoding of the serializer. Both UTF-8 and ISO-8859-1 support the
characters you're having problems with.

My guess is that the problem is either with mysql itself or with the
mysql jdbc driver. Maybe your mysql client inserts the data incorrectly
in the database? Try using a Java-based mysql (jdbc) client to insert
the data into the database (or write a small java-prog).

I'm also running mysql over here with cocoon etc (all in linux) and have
no problems with special characters. But of course that doesn't help you
;-)

Regards.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[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: Creating PDF with graphics / Batik / NoClassDefFoundError

2002-10-25 Thread michael . fridrich
Many thanks to all!

I'v downloaded the fop-0.20.4 package and extracted fop and batik to the 
cocoon lib-directory and it works fine.

What's about a official sample for Cocoon that demonstrates the PDF with 
embedded graphics feature (or at least for Cocoon testing)? If I have 
more expierience with Cocoon, I may create such sample - if there is not 
an real expert who wish to do this. Who should be contacted for this idea?

My current configuration:

Tomcat 4.1.8
Cocoon 2.0.3
J2SDK 1.4.0 from Sun
-- replaced in */tomcat4/webapps/cocoon/WEB-INF/lib/
fop-0.20.3.jar by fop-0.20.4.jar
batik-all-1.5b2.jar by batik from the fop-package 0.20.4 as batik.jar
--
Running uppon Linux on a Intel box


Greetings and many thanks again,
Michael.

PS: Is there anyone who knows the Cocoon packager, to ask him to correct 
this problem? I spent nearly 3 days for it and I assume, I'm not the first 
one.



Hi Michael,

J.Pietschmann is right, I also had trouble with the batik and fop jars.
The jar-Files I use now:

fop.jar (V20.4) 1.694.560 Bytes
batik.jar (from fop V20.4) 2.163.538 Bytes





Michael Fridrich


http://michael-fridrich.piranho.com/


-- Info -
Sind Sie bei einer guenstigen Krankenversicherung versichert? 
Hier finden Sie einen Vergleich privater Krankenversicherungen
fuer diverse Berufsgruppen erwartet Sie hier:
http://partners.webmasterplan.com/click.asp?ref=128254site=1387type=texttnb=2


-
*** sent through http://www.everymail.net FREE e-mail 
 

-
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: pipeline problem

2002-10-25 Thread Omar Tazi
If you are interested in XML Pipelines and XML transformation, check 
out: http://www.orbeon.com/oxf/whitepaper.xhtml

Regards,

-ot

Jeremy Quinn wrote:

Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly this.

regards Jeremy

On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:


Hello,
 
Is it possible to call a pipeline, that returns SAX events 
representing an stylesheet, from the src attribute of a 
map:transform element? I'm trying to do it in the following pipeline 
but it doesn't work.

map:match pattern=schematronValidationResponse

map:generate type=stream

map:parameter name=form-name value=document/

/map:generate

map:transform src=cocoon:/schematron2compiledSchematron/

map:serialize type=xml/

/map:match

 

map:match pattern=schematron2compiledSchematron

map:generate src=schemas/berta.xsd/

map:transform src=stylesheets/schematron.xsl/

map:transform src=stylesheets/skeleton1-5.xsl/

/map:match

Oskar



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




Re: Problem in mod-db again

2002-10-25 Thread pwcml
You can get the same effect if you try and use samples/mod-db/user-list. 
If you add a group you get no error, but if you add a person, person-group
you get the following error.

The error reported from the sitemap.log is

org.apache.avalon.framework.component.ComponentException: Could not find
component
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:255)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:236)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:393)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:185)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:236)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:185)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:236)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invokeErrorHandler(PipelineNode.java:198)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:175)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1034)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at

Re: pipeline problem

2002-10-25 Thread Oskar Casquero
Finally I've found the problem in one of my own stylesheets. The protocol
cocoon:/ inside the src attribute of the map:transform elements works
well on cocoon-2.1-dev

Oskar

- Original Message -
From: Omar Tazi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 6:38 PM
Subject: Re: pipeline problem


 If you are interested in XML Pipelines and XML transformation, check
 out: http://www.orbeon.com/oxf/whitepaper.xhtml

 Regards,

 -ot

 Jeremy Quinn wrote:
 
  Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly
this.
 
  regards Jeremy
 
  On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:
 
  Hello,
 
  Is it possible to call a pipeline, that returns SAX events
  representing an stylesheet, from the src attribute of a
  map:transform element? I'm trying to do it in the following pipeline
  but it doesn't work.
 
  map:match pattern=schematronValidationResponse
 
  map:generate type=stream
 
  map:parameter name=form-name value=document/
 
  /map:generate
 
  map:transform src=cocoon:/schematron2compiledSchematron/
 
  map:serialize type=xml/
 
  /map:match
 
 
 
  map:match pattern=schematron2compiledSchematron
 
  map:generate src=schemas/berta.xsd/
 
  map:transform src=stylesheets/schematron.xsl/
 
  map:transform src=stylesheets/skeleton1-5.xsl/
 
  /map:match
 
  Oskar
 
 
 
  -
  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]




Re: [PATCH] for xsp-session:getxml

2002-10-25 Thread Antonio Gallardo Rivera
Sorry, for the too late answer. I was in a meeting. Here is example of how to 
make it work inside a query:

SELECT * FROM usuarios
WHERE usr_id =  esql:parameter 
type=intxsp:exprInteger.parseInt(xsp-session:getxml 
context=authentication path=/authentication/ID 
as=string/)/xsp:expr/esql:parameter

I hope I will help you. Have a nice XSP coding :-D

Antonio Gallardo.

El Viernes, 25 de Octubre de 2002 04:06, Bert Van Kets escribió:
 Hi Antonio,
 I've been trying hard to get this esql sample to work.
 The tag works perfectly.
  userxsp-session:getxml context=authentication
 path=/authentication/ID//user
 returns the userID in my xsp page.  So there is nothing wrong with the
 class or the session.xsl file.

 However, I need to create a query containing the userID.  I think I went
 through the whole book of exceptions in Cocoon. :-(
 When I try it the way you describe below, I get an error saying method
 parseInt() not found in class java.lang.Integer.  I guess this means
 nothing is returned and the parseInt can't convert.
 I've tried all kind of combinations and always get an error.
 Here's what I've got now (doesn't work of course):

esql:execute-query
  esql:querySELECT * FROM members WHERE ID=xsp-session:getxml
 context=authentication path=/authentication/ID
 as=string//esql:query esql:results
esql:row-results
  esql:get-columns/
/esql:row-results
  /esql:results
/esql:execute-query

 What am I missing here


 Bert

 P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK 1.3.1_2

 At 05:54 8/10/2002 -0600, you wrote:
 Another usage of this tag is to set the parameters of a query based on the
  is in esql:query see the example:
 
 esql:query
SELECT usr_name, usr_full_name, usr_password FROM users
WHERE usr_id =
esql:parameter type=int
  xsp:expr
Integer.parseInt(
  xsp-session:getxml context=authentication
  path=/authentication/ID
 as=string/)
  /xsp:expr
/esql:parameter
 /esql:query
 
 Antonio Gallardo
 
 El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera escribió:
   Hi, I recently needed to write some app logi usin xsp:logic tags.
   Into tags we need to write some code like:
  
   String myUserID = xsp-session:getxml context=authentication
   path=/authentication/ID as=string/;
  
   Then, I updated xsp-session:getxml to serve strings.
  
   Currently the attribute as of the element can have 3 values:
  
   1-as=object (default) returns a org.w3c.dom.DocumentFragment object.
   More info at
   http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFragme
  nt.h tml
  
   2-as=xml return the DocumentFragment into xsp-session:xml tags.
  
   3- return the value of the firstchild of the requested node. Example:
   If we have:
  
   IDMyID/ID
   roleMyRole/role
   data
   fullnameTheFullName/fullname
  
   A) Then if we write:
   xsp-session:getxml context=authentication path=/authentication/ID
   as=string/
  
   will return MyID
  
   B) xsp-session:getxml context=authentication
   path=/authentication/data/fullname as=string/
  
   will return: TheFullName
  
   Attached is the new session.xsl the place of this file is:
  
   xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/j
  ava
  
   Antonio Gallardo
 
 -
 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]




Re: [PATCH] for xsp-session:getxml

2002-10-25 Thread Antonio Gallardo Rivera
Its now in the bugzilla:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13070

Download the most recently attachment.

I hope that soon commiters will include it into de 2.1 version. It very stable 
I am using it for more than a month and works fine.

Antonio Gallardo

El Viernes, 25 de Octubre de 2002 08:29, Bert Van Kets escribió:
 Looking forward to it.  Thanks.

 I'm using the SQL Transformer as an alternative, but this means some extra
 transformers in my pipeline :-(

 Bert

 At 08:16 25/10/2002 -0600, you wrote:
 I will prepare a new patch for this. I am currently using it with the
  lastest CVS version of 2.1.
 
 I also made some enhancement. It now returns as=string.
 
 Antonio Gallardo
 
 El Viernes, 25 de Octubre de 2002 05:14, Bert Van Kets escribió:
   I tried this already.  This does not work!
   Here's my page:
  
   ?xml version=1.0 encoding=UTF-8?
   xsp:page language=java xmlns:xsp=http://apache.org/xsp;
   xmlns:esql=http://apache.org/cocoon/SQL/v2;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
   users
   esql:connection
   esql:poolbvar/esql:pool
   esql:execute-query
   esql:querySELECT * FROM members WHERE
   ID=esql:parameterxsp-session:getxml context=authentication
   path=/authentication/ID as=string//esql:parameter/esql:query
   esql:results
   esql:row-results
   user
   esql:get-columns/
   /user
   /esql:row-results
   /esql:results
   /esql:execute-query
   /esql:connection
   /users
   /xsp:page
  
   And here's the error :
   org.apache.cocoon.ProcessingException: Language Exception:
   org.apache.cocoon.components.language.LanguageException: Error
   compiling test_xsp:
   Line 371, column 18: illegal start of expression
   Line 0, column 0:
   1 error
  
   Here's a snip of the content. Line 371 is teh line starting with the +
   sign:
  
try {
  
   _esql_query.getPreparedStatement().setString(1,String.valueOf( 
  
  
+ ));
  
} catch (SQLException _esql_exception_N1001C) {
  throw new RuntimeException(Error setting parameter on
   statement:  + _esql_query.getQueryString() + :
   +_esql_exception_N1001C); }
  
  
   What else can I try?
  
   Bert
  
   At 13:38 25/10/2002 +0300, you wrote:
   Hi Bert,
   
   Try to put esql:parameter around xsp-sessio:getxml in your query.
   
   -Tuomo
   
   On Fri, 25 Oct 2002, Bert Van Kets wrote:
 Hi Antonio,
 I've been trying hard to get this esql sample to work.
 The tag works perfectly.
  userxsp-session:getxml context=authentication
 path=/authentication/ID//user
 returns the userID in my xsp page.  So there is nothing wrong with
 the class or the session.xsl file.

 However, I need to create a query containing the userID.  I think I
 went through the whole book of exceptions in Cocoon. :-(
 When I try it the way you describe below, I get an error saying
 method parseInt() not found in class java.lang.Integer.  I guess
 this means nothing is returned and the parseInt can't convert.
 I've tried all kind of combinations and always get an error.
 Here's what I've got now (doesn't work of course):

esql:execute-query
  esql:querySELECT * FROM members WHERE
 ID=xsp-session:getxml context=authentication
 path=/authentication/ID
   
as=string//esql:query
   
  esql:results
esql:row-results
  esql:get-columns/
/esql:row-results
  /esql:results
/esql:execute-query

 What am I missing here


 Bert

 P.S. Using Cocoon 2.1 build of 14 May 2002, Tomcat 4.0.1, JDK
 1.3.1_2

 At 05:54 8/10/2002 -0600, you wrote:
 Another usage of this tag is to set the parameters of a query
  based on
   
the is
   
 in esql:query see the example:
 
 esql:query
SELECT usr_name, usr_full_name, usr_password FROM users
WHERE usr_id =
esql:parameter type=int
  xsp:expr
Integer.parseInt(
  xsp-session:getxml context=authentication
  path=/authentication/ID
 as=string/)
  /xsp:expr
/esql:parameter
 /esql:query
 
 Antonio Gallardo
 
 El Martes, 08 de Octubre de 2002 05:43, Antonio Gallardo Rivera
 
 escribió:
   Hi, I recently needed to write some app logi usin xsp:logic
   tags.
   
Into
   
   tags we need to write some code like:
  
   String myUserID = xsp-session:getxml context=authentication
   path=/authentication/ID as=string/;
  
   Then, I updated xsp-session:getxml to serve strings.
  
   Currently the attribute as of the element can have 3 values:
  
   1-as=object (default) returns a org.w3c.dom.DocumentFragment
   
object. More
   
   info at
   
http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/DocumentFrag
   ment .h
   
  tml
  
   

Re: Problem in mod-db again

2002-10-25 Thread Antonio Gallardo Rivera
Thanks for your prompt response Chris. I am using CVS 2.1 lastest. builded on 
24-oct-02 at 20:00 UTC. I think this is the lastest. I use CVS to update the 
sources. Also, PostgreSQL 7.2, JSDK 1.4.1

Antonio Gallardo

Here is the exception:

Original exception : java.lang.ClassCastException at 
org.apache.cocoon.util.JDBCTypeConversions.setColumn(JDBCTypeConversions.java:354) 
at 
org.apache.cocoon.acting.modular.DatabaseAction.setColumn(DatabaseAction.java:609) 
at 
org.apache.cocoon.acting.modular.DatabaseAddAction.processRow(DatabaseAddAction.java:96)
 
at 
org.apache.cocoon.acting.modular.DatabaseAction.processTable(DatabaseAction.java:398) 
at 
org.apache.cocoon.acting.modular.DatabaseAction.act(DatabaseAction.java:738) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:146)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
 
at org.apache.cocoon.Cocoon.process(Cocoon.java:595) at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1034) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 

Re: EXSLT

2002-10-25 Thread Mike Haarman

On Fri, 25 Oct 2002, Boris Althaus wrote:

 Hallo,

 does anyone know if cocoon2 supports exslt-extension-functions and when how to use 
them?


It is a matter for the XSL processor.  I am unsure about Xalan off the top
of my head, but Saxon does support this and elsewhere the configuration of
Cocoon to use Saxon is detailed.

In a stylesheet you would like to use the extensions, include the exslt
namespace of the module you want to use and proceed as you would in any
other stylesheet as detailed here:

http://www.exslt.org/howto.html


Mike Haarman
[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]




Cocoon 2.0.3 installation with Tomcat 4.0.1

2002-10-25 Thread Chris Bovasso
I have an install of Tomcat 4.0.1 and I downloaded the .gz file for
cocoon 2.0.3 and I followed the (brief) instructions in the INSTALL
file. I copied the cocoon.war file into my opt/jakarta/webapps/
directory and even copied it into opt/jakarta/webapps/cocoon/ and still
I get nothing. What do I need to do with this cocoon.war file after I
copy it into the webapps directory of tomcat?

Chris


Chris Bovasso
www.edcomm.com
888 4 EDCOMM 


-
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: Cocoon 2.0.3 installation with Tomcat 4.0.1

2002-10-25 Thread Lajos Moczar
Chris -

Tomcat will automatically unpack the war file - you don't need to do so 
yourself. Also, I recommend you use a new version of Tomcat - like 4.0.5 
or 4.1.12. These are preferred over 4.0.1.

Lajos


Chris Bovasso wrote:
I have an install of Tomcat 4.0.1 and I downloaded the .gz file for
cocoon 2.0.3 and I followed the (brief) instructions in the INSTALL
file. I copied the cocoon.war file into my opt/jakarta/webapps/
directory and even copied it into opt/jakarta/webapps/cocoon/ and still
I get nothing. What do I need to do with this cocoon.war file after I
copy it into the webapps directory of tomcat?

Chris


Chris Bovasso
www.edcomm.com
888 4 EDCOMM 


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




--
galatea.com
Cocoon training, consulting  support



-
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: London Cocoon users

2002-10-25 Thread Peter Hargreaves
Hi folks,

Are there any London based Cocoon users on this list who want to meet other 
Cocoon users - perhaps for a pub meeting?
We could perhaps piggy back on the recently started London Content 
Management pub meeting.

(That is London, United Kingdom, not London, Canada)

Alex McLintock

Great idea. Please count me in also.

Pete Hargreaves.



-
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: EXSLT

2002-10-25 Thread Joerg Heinicke
Boris Althaus wrote:

Hallo,
 
does anyone know if cocoon2 supports exslt-extension-functions and when 
how to use them?
 
 
Boris

Cocoon 2 uses Xalan 2 by default, which supports EXSLT since version 
2.3.2 (http://xml.apache.org/xalan-j/extensionslib.html#exslt). I think 
you have to replace the version used in Cocoon with a newer one.

Regards,

Joerg


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



DO NOT REPLY [PATCH QUEUE] Summary October 26 2002

2002-10-25 Thread nicolaken
---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  18 
***


---
9075:[PATCH] Contribution of SAP R/3(r) connectivity components
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9075

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
10208:[PATCH]/[RT] Aggregation and Error Conditions (file not foun
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10208

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11518:[PATCH] Can't use input-module sitemap param with other para
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11518

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11533:[PATCH] Replacement for AvalonToCocoonSource
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11549:[PATCH] Replace LogKitManageable through LoggerManageable
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12115:[PATCH]NPE in AbstractCachingProcessingPipeline.java
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12115

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12235:[PATCH] XPathTransformer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12673:[PATCH] Crawler fix: interpret  as index.html
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12673

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12975:[PATCH] POI block
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12975

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13070:[PATCH] Add a new tag xsp-session:getxml to XSP
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13070

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13220:[PATCH] build dist-bin broken in HEAD
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13220

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13247:[PATCH] PNG output of SVGSerializer broken in HEAD
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13643:[PATCH] Finer granularity for RequestFactory impl choice
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13643

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13648:[PATCH] Makes file upload behaviour configurable
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13648

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW