Re: Portal - Coplets / Sunlet

2003-01-23 Thread Richard Reyes



 
Hi Guys,
 
Can I also use a separate cocoon application for my 
coplet where all its transformation is in a separate sitemap?
 
For example...
 
I have cocoon\myportal as my portal application and 
i would use a independent cocoon application like
 cocoon\webapp1 as one of my 
coplet?
 
Is this possible...please help.
Thanks

   
  
- Original Message - 
From: 
Richard Reyes 
To: cocoon-users 
Sent: Friday, January 24, 2003 2:39 
PM
Subject: Portal - Coplets / 
Sunlet

Hi Guys,
 
Will it be possible for a coplet to contain an 
external resource (for example is http://www.google.com )?
And this resource that will need no more 
transformations and can be very independent like its in a another 
frame?
 
Thanks in advance
Richard


RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Carsten Ziegeler
If you have the OutOfMemory Exception during build,
than have a look in the developer list mailing archive.
You have to set the maximum memory for the build task
to 256m.

HTH
Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


> -Original Message-
> From: Alex Romayev [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 24, 2003 5:58 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Portal bug? - Using SessionTransformer inside coplets
> 
> 
> I tried today's snapshot and got a
> java.lang.OutOfMemory exception.  I believe someone
> else got it as well.  I'll try again in a couple of
> days.
> 
> Cheers,
> -Alex
> 
> --- Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
> > Alex Romayev wrote:
> > > 
> > > I'm using a version from a couple of months ago. 
> > I'll
> > > get the latest and try it again and let you know.
> > > 
> > Ok!
> > 
> > > While I have your attention, I've asked another
> > > question a couple of days ago about getting
> > parameter
> > > values from the request.  Could you take a look at
> > it,
> > > I'm pasting it below:
> > > 
> > Clever! :)
> > 
> > > 
> > > Hi,
> > > 
> > > I'm looking for help in how to extract parameter
> > > values using SessionTransformer.
> > > 
> > > My uri looks like this:
> > > 
> > > myaction?item=1&item=2&item=3
> > > 
> > > The SessionTransformer generates the following
> > path:
> > > 
> > > 
> > >   cinclude:parameters>
> > > 
> > >   item
> > >   1
> > > 
> > >   
> > > 
> > > 
> > > My goal is to turn this into the following xml:
> > > 
> > > 
> > >  1
> > >  2
> > >  3
> > > 
> > > 
> > > 
> > > Two questions:
> > > 
> > > 1. SessionTransformer javadoc says: This output
> > has
> > > the namespace of the CIncludeTransformer to use it
> > as
> > > input for a  command.  I
> > don't
> > > quite understand how I would make use of CIclude
> > > transformer.
> > This is only handy *if* you need the cinclude
> > transformer
> > to include additional content. So it's not of use
> > for you (in this context).
> > 
> > > 
> > > 2. I've tried doing the following:
> > > 
> > >  > >  
> > xmlns:session="http://cocoon.apache.org/session/1.0";
> > > 
> > >  
> > >
> >
> xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
> > > 
> > >> >
> >
> xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> > > context="request" 
> > >   
> > >
> >
> path="/parametervalues/cinclude:parameters/cinclude:parameter[cinc
> > > lude:name='item']/cinclude:value"/>
> > > 
> > > 
> > > So that I could later transform it to the xml I
> > need,
> > > but I get the following error:
> > > 
> > >  "Prefix must resolve to a namespace: cinclude"
> > > 
> > You can make a  > path="/"/>
> > and you will see all the xml outputted by the
> > request context.
> > 
> > You can use  > path="/parametervalues"/>
> > and you get the parameters as described above. All
> > your items
> > will then have the cinclude namespace, you have to
> > filter
> > them in a stylesheet or custom component.
> > 
> > HTH
> > Carsten
> > 
> >
> -
> > Please check that your question  has not already
> > been answered in the
> > FAQ before posting.
> > 
> > 
> > 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. 
> 
> 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. 

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




RE: Cocoon Portal Framework for production use?

2003-01-23 Thread Carsten Ziegeler
Martin Schimak wrote:
> 
> I have a new Intranet project (In July 2003, a very first release 
> should be ready) and
> would like to use Cocoon 2.1 with Portal Framework to implement 
> it. I would like to know
> your personal opinions: Is it safe now to use 2.1 for production? 

Personally, I see no problems in using 2.1 in production environment,
we are using it and many others here on the list are using 2.1
in production environments for many months.
But, as 2.1 is currently alpha, you might have to deal with
incompatible changes which might occur in the next weeks until
a beta is available.

> I understand that End
> of February 2003 2.1 Beta 1 is available. Does exist a possible 
> release day for 2.1-final?
> 
No, there are no real dates - the date for the beta 1 is currently
only a wish - we will see by then if we can make it. But I think
the beta will come in the next two or three months (but don't
quote me on this).

HTH
Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




HttpRequest

2003-01-23 Thread Kavita Bansal
Title:  HttpRequest 





Hi


I want to access the  HttpRequest .getInputStream() method in my custom-made
generator class which extends Composer Generator.


For this i do the following in my code:


Since in the generator we have objectModel available, i get the request obejct from it


org.apache.cocoon.environment.Request request = ObjectModelHelper.getRequest(objectModel);


When i typecast the request object to org.apache.cocoon.environment.http.HttpRequest it gives me an error :
java.lang.ClassCastException: org.apache.cocoon.environment.wrapper.RequestWrapper


The org.apache.cocoon.environment.Request does not provide a getInputSteam() method, hence i was type casting it to HttpRequest methid to get the input stream.

Is there any otherway of doing it. ???



Help 
Kavita







    INTIQUA International    
    Intelligent Solutions, Quality Execution

 
Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.





Using docbook chunk.xsl with cocoon

2003-01-23 Thread Jerome Paul
Hi,
  I'm trying to convert xml documents using
docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows
2000.  Anyway the conversion takes a while (it's converting a decent sized
xml document) when the conversion stops Internet explorer displays nothing
when using the standard html\docbook.xsl it work fine.  I'm pretty sure that
the error is with the chunk.xsl because it's been hardcoded to write to the
hdd and the way it actually creates many web pages instead of a single page.
Has anyone else had this problem? what's the solution that other people have
used?

any help would be greatly appreciated 
Jerome

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Portal - Coplets / Sunlet

2003-01-23 Thread Richard Reyes



Hi Guys,
 
Will it be possible for a coplet to contain an 
external resource (for example is http://www.google.com )?
And this resource that will need no more 
transformations and can be very independent like its in a another 
frame?
 
Thanks in advance
Richard


RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Alex Romayev
I tried today's snapshot and got a
java.lang.OutOfMemory exception.  I believe someone
else got it as well.  I'll try again in a couple of
days.

Cheers,
-Alex

--- Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
> Alex Romayev wrote:
> > 
> > I'm using a version from a couple of months ago. 
> I'll
> > get the latest and try it again and let you know.
> > 
> Ok!
> 
> > While I have your attention, I've asked another
> > question a couple of days ago about getting
> parameter
> > values from the request.  Could you take a look at
> it,
> > I'm pasting it below:
> > 
> Clever! :)
> 
> > 
> > Hi,
> > 
> > I'm looking for help in how to extract parameter
> > values using SessionTransformer.
> > 
> > My uri looks like this:
> > 
> > myaction?item=1&item=2&item=3
> > 
> > The SessionTransformer generates the following
> path:
> > 
> > 
> >   cinclude:parameters>
> > 
> >   item
> >   1
> > 
> >   
> > 
> > 
> > My goal is to turn this into the following xml:
> > 
> > 
> >  1
> >  2
> >  3
> > 
> > 
> > 
> > Two questions:
> > 
> > 1. SessionTransformer javadoc says: This output
> has
> > the namespace of the CIncludeTransformer to use it
> as
> > input for a  command.  I
> don't
> > quite understand how I would make use of CIclude
> > transformer.
> This is only handy *if* you need the cinclude
> transformer
> to include additional content. So it's not of use
> for you (in this context).
> 
> > 
> > 2. I've tried doing the following:
> > 
> >  >  
> xmlns:session="http://cocoon.apache.org/session/1.0";
> > 
> >  
> >
>
xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
> > 
> >>
>
xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> > context="request" 
> >   
> >
>
path="/parametervalues/cinclude:parameters/cinclude:parameter[cinc
> > lude:name='item']/cinclude:value"/>
> > 
> > 
> > So that I could later transform it to the xml I
> need,
> > but I get the following error:
> > 
> >  "Prefix must resolve to a namespace: cinclude"
> > 
> You can make a  path="/"/>
> and you will see all the xml outputted by the
> request context.
> 
> You can use  path="/parametervalues"/>
> and you get the parameters as described above. All
> your items
> will then have the cinclude namespace, you have to
> filter
> them in a stylesheet or custom component.
> 
> HTH
> Carsten
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> 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. 

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




Re: HEAD problems

2003-01-23 Thread Marc Driftmeyer
I have duplicated this via 1-23-2003 HEAD CVS Fetch as well.

-Marc


--- Leszek Gawron <[EMAIL PROTECTED]> wrote:
> 1. The current HEAD is not compiling as scratchpadwar
> validate-config:
>  [echo] Conducting validation of core configuration files.
>  [echo] (You can turn validation off if you must, using
> ./properties.xml)
>  [echo] Validating all cocoon.roles instances ...
> 
> BUILD FAILED
> file:C:/Dev/CvsProjects/xml-cocoon2/build.xml:2423: There must be a
> file attribute or a fileset child element
> 
> 2. Current HEAD after compiling with "webapp" target and running
> shows this
> error:
> 
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> org.apache.cocoon.CascadingIOException: 
> org.apache.xml.utils.WrappedRuntimeException: The output format must
> have a '{http://xml.apache.org/xslt}content-handler' property!: 
> org.apache.xml.utils.WrappedRuntimeException: The output format must
> have a '{http://xml.apache.org/xslt}content-handler' property!
> 
> While trying I had also "Failed to generate program code" (with the
> same "must have content-handler" remark)
> 
> How can I fix it ? 
> -- 
> __
>  | /  \ |Leszek Gawron//  \\
> \_\\  //_/  [EMAIL PROTECTED]  _\\()//_
>  .'/()\'. Phone: +48(600)341118 / //  \\ \
>   \\  //  recursive: adj; see recursive  | \__/ |
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon Presentation in Austin

2003-01-23 Thread Ivelin Ivanov

Cocoon will set foot on the stage in Austin at the monthly gathering of the
XML Users Group.

http://www.xmlaustin.org/_html_out/main/index.html


-=Ivelin=-



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Logicsheet problems - global XSLT variables

2003-01-23 Thread Antonio Gallardo
Mark H dijo:
> Thanks Antonio, I'll try it out. How does the reload-method="synchron"
> improve things?

It will check if there are some changes before serving the request. For
development environment it is fine since we are always changing the
sources.

Antonio Gallardo.
>
> -Original Message-
> From: Antonio Gallardo [mailto:[EMAIL PROTECTED]]
> Sent: 20 January 2003 06:34
> To: [EMAIL PROTECTED]
> Subject: Re: Logicsheet problems - global XSLT variables
>
>
>> Also, do others find working with Cocoon very frustrating? When you
>> make a change it takes forever for the web-app to reload and
>> re-compile the java class, espcially when it takes up so much memory.
>
> You need to add in your cocoon.xconf file:
>
>  config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-
> builtins.xml"
> file="context://sitemap.xmap" logger="sitemap"/>
>
> Search for the  tag and add the attributes:
>
> reload-method="synchron"
> check-reload="yes"
>
> Antonio Gallardo
>
>>
>> Thx in advance,
>> Mark
>>
>>
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> 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. 
>
> 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. 
>
> 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. 

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Geoff Howard dijo:
>
> Antonio, you've hit on an interesting issue.  I am still using a 1.4.0x
> version of java.  I have 1.4.1 downloaded but haven't even bothered to
> extract it yet.  I wonder if there's something there?
>
> Geoff

I think yes, there must be "something" bacause if you check the released
notes there are many bugs patched since the first version of 1.4. I can
said that it looks stable now thanks to the lastest Carsten patch to the
cache in Cocoon 2.1 dev (mid of January 2003). Now, I can run Apache
Tomcat 4.1.18 all the day without restarting every midnight.

I encorage you to upgrade to Java 1.4.1_01 if you are experience some
unexplained errors. I am using it since it was posted on sun web site.

Best Regards,

Antonio Gallardo





-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Geoff Howard
Just to clarify, 228 megs is not a magic number - it's just approximately
the amount of free memory on my system when most things are shut down.  If
you have more, you may want to use more and if you have less you can
probably get away with less.

The war is big, but that now by default I think includes all blocks, and all
of scratchpad (I think).  That's good for keeping the large amount of
possibilities in front of people, but most deployed systems won't need a
great deal of that.

Antonio, you've hit on an interesting issue.  I am still using a 1.4.0x
version of java.  I have 1.4.1 downloaded but haven't even bothered to
extract it yet.  I wonder if there's something there?

Geoff

> -Original Message-
> From: e nio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 8:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of
> memory error
>
>
>Thanks for the responses.  My compile was getting stuck near
> the very end, creating the war file.  Anyhow, after setting the
> env varexport ANT_OPTS="-Xms100m -Xmx228m"   and rerunning
> same build command i had earlier, worked.  Fyi, the war file
> created is now25245720 Jan 23 17:25 cocoon.war.. this is
> huge, 25meg.  Not all samples work still, and like the slide
> show which was working for me not too long ago. Oh well.
>
> Regards,
> enio
> --- Antonio Gallardo <[EMAIL PROTECTED]> wrote:
> > Just for the register:
> >
> >
> > I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need
> > to use:
> >
> > ANT_OPTS=-Xms100m -Xmx228m
> >
> > Antonio Gallardo
> >
> >
> > Geoff Howard dijo:
> > > There are some changes happening in the build (blocks,
> > validation, etc)
> > > that are taking more memory these days.  You should search
> > the archives
> > > (dev archive will have more I think) for recent postings on
> > the subject.
> > >  For instance, see
> > > http://marc.theaimsgroup.com/?t=10432127333&r=1&w=2.
> > The brief
> > > summary of suggestions is :
> > >
> > > 1) Increase the amount of memory available to the build jvm
> > by setting
> > > the ANT_OPTS environment variable to as large as you can.
> > >  ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
> > > 2) Reduce the amount of things the build has to do at once.
> > For
> > > instance, use webapp-local to skip building the war.
> > Disable javadocs.
> > > Disable validation.  Options for the build can be set by
> > modifying
> > > properties.xml, or by using a .ant.properties file to
> > override the
> > > defaults.  You can add skipped steps back in later after the
> > compiling
> > > is already done.
> > >
> > > I only needed step one, but depending on your systems memory
> > you'll have
> > > options.  There is also a very recent (within the last 12
> > hours) patch
> > > that may make these steps less necessary, though I haven't
> > tried it yet.
> > >
> > > Geoff Howard
> > >
> > >> -Original Message-
> > >> From: e nio [mailto:[EMAIL PROTECTED]]
> > >> Sent: Thursday, January 23, 2003 6:19 PM
> > >> To: [EMAIL PROTECTED]
> > >> Subject: cvs2.1 snapshot download date jan 22 2003 - gives
> > me out of
> > >> memory error
> > >>
> > >>
> > >>   Anyone else experiencing this OutOfMemory when compiling
> > the
> > >> development snapshot dated Jan 22 2003 -
> > >> xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
> > >>
> > >> ./build.sh  -Dinclude.webapp.libs=yes
> > >> -Dinclude.installscratchpadwar.libs=yes webapp
> > >>
> > >> Didnt have this problem on a download 1st week of Jan 2003.
> > >> Something significant that requires more memory this time?
> > >>
> > >> enio
> > >>
> > >> __
> > >> Do you Yahoo!?
> > >> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > >> http://mailplus.yahoo.com
> > >>
> > >>
> >
> -
> > >> Please check that your question  has not already been
> > answered in the
> > >> FAQ before posting.
> > 
> > >>
> > >> 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.
> > 
> > >
> > > 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.
> > 
> >
> > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> >
>
>
> ___

RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Are you done a:

./build.sh clean

before you started? I ask because some sources was changed of place.

Antonio Gallardo

e nio dijo:
>Thanks for the responses.  My compile was getting stuck near
> the very end, creating the war file.  Anyhow, after setting the
> env varexport ANT_OPTS="-Xms100m -Xmx228m"   and rerunning
> same build command i had earlier, worked.  Fyi, the war file
> created is now25245720 Jan 23 17:25 cocoon.war.. this is
> huge, 25meg.  Not all samples work still, and like the slide
> show which was working for me not too long ago. Oh well.
>
> Regards,
> enio
> --- Antonio Gallardo <[EMAIL PROTECTED]> wrote:
>> Just for the register:
>>
>>
>> I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need
>> to use:
>>
>> ANT_OPTS=-Xms100m -Xmx228m
>>
>> Antonio Gallardo
>>
>>
>> Geoff Howard dijo:
>> > There are some changes happening in the build (blocks,
>> validation, etc)
>> > that are taking more memory these days.  You should search
>> the archives
>> > (dev archive will have more I think) for recent postings on
>> the subject.
>> >  For instance, see
>> > http://marc.theaimsgroup.com/?t=10432127333&r=1&w=2.
>> The brief
>> > summary of suggestions is :
>> >
>> > 1) Increase the amount of memory available to the build jvm
>> by setting
>> > the ANT_OPTS environment variable to as large as you can.
>> >  ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
>> > 2) Reduce the amount of things the build has to do at once.
>> For
>> > instance, use webapp-local to skip building the war.
>> Disable javadocs.
>> > Disable validation.  Options for the build can be set by
>> modifying
>> > properties.xml, or by using a .ant.properties file to
>> override the
>> > defaults.  You can add skipped steps back in later after the
>> compiling
>> > is already done.
>> >
>> > I only needed step one, but depending on your systems memory
>> you'll have
>> > options.  There is also a very recent (within the last 12
>> hours) patch
>> > that may make these steps less necessary, though I haven't
>> tried it yet.
>> >
>> > Geoff Howard
>> >
>> >> -Original Message-
>> >> From: e nio [mailto:[EMAIL PROTECTED]]
>> >> Sent: Thursday, January 23, 2003 6:19 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: cvs2.1 snapshot download date jan 22 2003 - gives
>> me out of
>> >> memory error
>> >>
>> >>
>> >>   Anyone else experiencing this OutOfMemory when compiling
>> the
>> >> development snapshot dated Jan 22 2003 -
>> >> xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
>> >>
>> >> ./build.sh  -Dinclude.webapp.libs=yes
>> >> -Dinclude.installscratchpadwar.libs=yes webapp
>> >>
>> >> Didnt have this problem on a download 1st week of Jan 2003.
>> >> Something significant that requires more memory this time?
>> >>
>> >> enio
>> >>
>> >> __
>> >> Do you Yahoo!?
>> >> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>> >> http://mailplus.yahoo.com
>> >>
>> >>
>>
> -
>> >> Please check that your question  has not already been
>> answered in the
>> >> FAQ before posting.
>> 
>> >>
>> >> 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.
>> 
>> >
>> > 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.
>> 
>>
>> To unsubscribe, e-mail:
>> <[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <[EMAIL PROTECTED]>
>>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread e nio
   Thanks for the responses.  My compile was getting stuck near
the very end, creating the war file.  Anyhow, after setting the
env varexport ANT_OPTS="-Xms100m -Xmx228m"   and rerunning
same build command i had earlier, worked.  Fyi, the war file
created is now25245720 Jan 23 17:25 cocoon.war.. this is
huge, 25meg.  Not all samples work still, and like the slide
show which was working for me not too long ago. Oh well.

Regards,
enio
--- Antonio Gallardo <[EMAIL PROTECTED]> wrote:
> Just for the register:
> 
> 
> I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need
> to use:
> 
> ANT_OPTS=-Xms100m -Xmx228m
> 
> Antonio Gallardo
> 
> 
> Geoff Howard dijo:
> > There are some changes happening in the build (blocks,
> validation, etc)
> > that are taking more memory these days.  You should search
> the archives
> > (dev archive will have more I think) for recent postings on
> the subject.
> >  For instance, see
> > http://marc.theaimsgroup.com/?t=10432127333&r=1&w=2. 
> The brief
> > summary of suggestions is :
> >
> > 1) Increase the amount of memory available to the build jvm
> by setting
> > the ANT_OPTS environment variable to as large as you can.
> >  ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
> > 2) Reduce the amount of things the build has to do at once. 
> For
> > instance, use webapp-local to skip building the war. 
> Disable javadocs.
> > Disable validation.  Options for the build can be set by
> modifying
> > properties.xml, or by using a .ant.properties file to
> override the
> > defaults.  You can add skipped steps back in later after the
> compiling
> > is already done.
> >
> > I only needed step one, but depending on your systems memory
> you'll have
> > options.  There is also a very recent (within the last 12
> hours) patch
> > that may make these steps less necessary, though I haven't
> tried it yet.
> >
> > Geoff Howard
> >
> >> -Original Message-
> >> From: e nio [mailto:[EMAIL PROTECTED]]
> >> Sent: Thursday, January 23, 2003 6:19 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: cvs2.1 snapshot download date jan 22 2003 - gives
> me out of
> >> memory error
> >>
> >>
> >>   Anyone else experiencing this OutOfMemory when compiling
> the
> >> development snapshot dated Jan 22 2003 -
> >> xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
> >>
> >> ./build.sh  -Dinclude.webapp.libs=yes
> >> -Dinclude.installscratchpadwar.libs=yes webapp
> >>
> >> Didnt have this problem on a download 1st week of Jan 2003.
> >> Something significant that requires more memory this time?
> >>
> >> enio
> >>
> >> __
> >> Do you Yahoo!?
> >> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> >> http://mailplus.yahoo.com
> >>
> >>
>
-
> >> Please check that your question  has not already been
> answered in the
> >> FAQ before posting.
> 
> >>
> >> 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.
> 
> >
> > 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.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Antonio Gallardo
Hi, I think that Xforms will be mainy used for web DB app.

I am using this opensource tool that can be extended to build other
formats from an database design. His name is Druid you can find it at:

http://sourceforge.net/projects/druid

I  can said that I already build my postgresql database using this
excelent tool.


Best Regards,

Antonio Gallardo.

Josema Alonso dijo:
>> Excelent document.
> Thank you.
>
>> I would like to suggest a slight improvement.
>> The Model part can be improved quite a bit if you use a DOM object
> directly
>> instead of a JavaBean wrapper.
>> more specificly:
>> ...
> Wow. It sounds very very good. I really need to learn much more about
> JXPath.
> I'll try to code it this weekend or early next week and update the Wiki
> accordingly.
>
> I'll post my results and/or doubts here, too.
>
> Thanks a lot for your help.
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: HEAD problems

2003-01-23 Thread Joerg Heinicke
Hello Leszek,

it seems that the Xalan/Xerces version has changed since your last 
checkout (or you never had one with Java 1.4.x?). So you must update 
your Tomcat/common/endorsed directory with the currently in Cocoon used 
xalan-xx.jar, xercesImpl-xx.jar, xml-apis.jar and maybe xsltc.jar.

Regards,

Joerg

2. Current HEAD after compiling with "webapp" target and running shows this
error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.CascadingIOException: 
org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property!: 
org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xslt}content-handler' property!

While trying I had also "Failed to generate program code" (with the same "must have content-handler" remark)

How can I fix it ? 


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Josema Alonso
> Excelent document.
Thank you.

> I would like to suggest a slight improvement.
> The Model part can be improved quite a bit if you use a DOM object
directly
> instead of a JavaBean wrapper.
> more specificly:
> ...
Wow. It sounds very very good. I really need to learn much more about
JXPath.
I'll try to code it this weekend or early next week and update the Wiki
accordingly.

I'll post my results and/or doubts here, too.

Thanks a lot for your help.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: embedded dtd

2003-01-23 Thread Joerg Heinicke
Hello Eduardo,

Eduardo Zurita wrote:

Hello,
 
The XML file I am retrieving from server has a embedded dtd.
 
I would like to know if cocoon can support embedded dtd.

yes, of course. It's the task of the parser, by default in Cocoon it's 
Xerces.

The problem is:
 
When I try to use " " in my XSL file, cocoon generates a 
exception with the message "The entity "nbsp" was referenced, but not 
declared".

The problem is, that the XSL is another XML file, that is parsed, and so 
it must also include the DTD.

In the source XML file the entity "nbsp" is defined in a embedded dtd.
 
Can anybody help me, please?

Or you simply use  .


Thanks in advance.
 
Eduardo.

Regards,

Joerg


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Antonio Gallardo
Just for the register:


I am using Red Hat Linux 8.0 and Java 1.4.1_01 and dont need to use:

ANT_OPTS=-Xms100m -Xmx228m

Antonio Gallardo


Geoff Howard dijo:
> There are some changes happening in the build (blocks, validation, etc)
> that are taking more memory these days.  You should search the archives
> (dev archive will have more I think) for recent postings on the subject.
>  For instance, see
> http://marc.theaimsgroup.com/?t=10432127333&r=1&w=2.  The brief
> summary of suggestions is :
>
> 1) Increase the amount of memory available to the build jvm by setting
> the ANT_OPTS environment variable to as large as you can.
>  ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
> 2) Reduce the amount of things the build has to do at once.  For
> instance, use webapp-local to skip building the war.  Disable javadocs.
> Disable validation.  Options for the build can be set by modifying
> properties.xml, or by using a .ant.properties file to override the
> defaults.  You can add skipped steps back in later after the compiling
> is already done.
>
> I only needed step one, but depending on your systems memory you'll have
> options.  There is also a very recent (within the last 12 hours) patch
> that may make these steps less necessary, though I haven't tried it yet.
>
> Geoff Howard
>
>> -Original Message-
>> From: e nio [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, January 23, 2003 6:19 PM
>> To: [EMAIL PROTECTED]
>> Subject: cvs2.1 snapshot download date jan 22 2003 - gives me out of
>> memory error
>>
>>
>>   Anyone else experiencing this OutOfMemory when compiling the
>> development snapshot dated Jan 22 2003 -
>> xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
>>
>> ./build.sh  -Dinclude.webapp.libs=yes
>> -Dinclude.installscratchpadwar.libs=yes webapp
>>
>> Didnt have this problem on a download 1st week of Jan 2003.
>> Something significant that requires more memory this time?
>>
>> enio
>>
>> __
>> Do you Yahoo!?
>> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>> http://mailplus.yahoo.com
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> 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. 
>
> 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. 

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




RE: cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread Geoff Howard
There are some changes happening in the build (blocks, validation, etc) that
are taking more memory these days.  You should search the archives (dev
archive will have more I think) for recent postings on the subject.  For
instance, see http://marc.theaimsgroup.com/?t=10432127333&r=1&w=2.  The
brief summary of suggestions is :

1) Increase the amount of memory available to the build jvm by setting the
ANT_OPTS environment variable to as large as you can.
 ANT_OPTS=-Xms100m -Xmx228m is what I'm currently using.
2) Reduce the amount of things the build has to do at once.  For instance,
use webapp-local to skip building the war.  Disable javadocs.  Disable
validation.  Options for the build can be set by modifying properties.xml,
or by using a .ant.properties file to override the defaults.  You can add
skipped steps back in later after the compiling is already done.

I only needed step one, but depending on your systems memory you'll have
options.  There is also a very recent (within the last 12 hours) patch that
may make these steps less necessary, though I haven't tried it yet.

Geoff Howard

> -Original Message-
> From: e nio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 6:19 PM
> To: [EMAIL PROTECTED]
> Subject: cvs2.1 snapshot download date jan 22 2003 - gives me out of
> memory error
>
>
>   Anyone else experiencing this OutOfMemory when compiling the
> development snapshot dated Jan 22 2003 -
> xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:
>
> ./build.sh  -Dinclude.webapp.libs=yes
> -Dinclude.installscratchpadwar.libs=yes webapp
>
> Didnt have this problem on a download 1st week of Jan 2003.
> Something significant that requires more memory this time?
>
> enio
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




HEAD problems

2003-01-23 Thread Leszek Gawron
1. The current HEAD is not compiling as scratchpadwar
validate-config:
 [echo] Conducting validation of core configuration files.
 [echo] (You can turn validation off if you must, using ./properties.xml)
 [echo] Validating all cocoon.roles instances ...

BUILD FAILED
file:C:/Dev/CvsProjects/xml-cocoon2/build.xml:2423: There must be a file attribute or 
a fileset child element

2. Current HEAD after compiling with "webapp" target and running shows this
error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.cocoon.CascadingIOException: 
org.apache.xml.utils.WrappedRuntimeException: The output format must have a 
'{http://xml.apache.org/xslt}content-handler' property!: 
org.apache.xml.utils.WrappedRuntimeException: The output format must have a 
'{http://xml.apache.org/xslt}content-handler' property!

While trying I had also "Failed to generate program code" (with the same "must have 
content-handler" remark)

How can I fix it ? 
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XSP All Nodes Even

2003-01-23 Thread J.Pietschmann
Jacob Arnold wrote:

Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even.


This is a FAQ. Most probably you are counting whitespace nodes.

Either avoid selecting text nodes, for example by explicitely
specifying the element you want to match:
 
or strip the whitespace nodes by adding
 
to the stlye sheet.

Depending on your specific problem you might need to
refine either approach.

For more details consult the XSLT spec
 http://www.w3.org/TR/xslt
the XSL FAQ reachable from here
 http://www.mulberrytech.com/xsl/xsl-list/
or ask on the XSL list.

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XSP All Nodes Even

2003-01-23 Thread Jacob Arnold
Yep, that works. Thanks for your help.

Best Regards,
J


-Original Message-
From: Scott Warren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP All Nodes Even


No not a second stylesheet,  Change your stylesheet to be like this



 
  
   
  
  
   
  
 


Where table is assumed to be the parent node of all the tr nodes. 

Does this help ?

Scott Warren

Jacob Arnold wrote:

If my query returns 56 records (1 per row) then I get 2, 4, 6, 8, 10...
through 114. Are you suggesting adding a second stylesheet?

Thanks,
J


-Original Message-
From: Scott Warren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP All Nodes Even


What is the value that position() is returning? Can you move the 
template into a another template that has a  I 
think you may get different results then.

Hope this helps

Scott Warren

Jacob Arnold wrote:

  
Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even. For example, I'm trying to make every even table row a
different color:


 
   
 
 
   
 


But every table row is getting the evenrow class applied. When I display

the
  
position, every row (and every  for that matter) is even-numbered. Does
anyone know what might be causing this?

Here's a sitemap fragment:


 
   
   
   
 
 
 
 



 
   
   
 
 
 


I'm using Cocoon 2.0.4 on Tomcat 4.1.12.

Thanks,
J

  

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XSP All Nodes Even

2003-01-23 Thread Scott Warren




No not a second stylesheet,  Change your stylesheet to be like this


 
  
   
  
  
   
  
 


Where table is assumed to be the parent node of all the tr nodes. 

Does this help ?

Scott Warren

Jacob Arnold wrote:

  If my query returns 56 records (1 per row) then I get 2, 4, 6, 8, 10...
through 114. Are you suggesting adding a second stylesheet?

Thanks,
J


-Original Message-
From: Scott Warren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP All Nodes Even


What is the value that position() is returning? Can you move the 
template into a another template that has a  I 
think you may get different results then.

Hope this helps

Scott Warren

Jacob Arnold wrote:

  
  
Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even. For example, I'm trying to make every even table row a
different color:


 
   
 
 
   
 


But every table row is getting the evenrow class applied. When I display

  
  the
  
  
position, every row (and every  for that matter) is even-numbered. Does
anyone know what might be causing this?

Here's a sitemap fragment:


 
   
   
   
 
 
 
 



 
   
   
 
 
 


I'm using Cocoon 2.0.4 on Tomcat 4.1.12.

Thanks,
J

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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. 

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



  






RE: XSP All Nodes Even

2003-01-23 Thread Jacob Arnold
If my query returns 56 records (1 per row) then I get 2, 4, 6, 8, 10...
through 114. Are you suggesting adding a second stylesheet?

Thanks,
J


-Original Message-
From: Scott Warren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP All Nodes Even


What is the value that position() is returning? Can you move the 
template into a another template that has a  I 
think you may get different results then.

Hope this helps

Scott Warren

Jacob Arnold wrote:

>Whenever I test for even nodes using XSLT on my serialized XSP, all the
>nodes are even. For example, I'm trying to make every even table row a
>different color:
>
>
>  
>
>  
>  
>
>  
>
>
>But every table row is getting the evenrow class applied. When I display
the
>position, every row (and every  for that matter) is even-numbered. Does
>anyone know what might be causing this?
>
>Here's a sitemap fragment:
>
>
>  
>
>
>
>  
>  
>  
>  
>
>
>
>  
>
>
>  
>  
>  
>
>
>I'm using Cocoon 2.0.4 on Tomcat 4.1.12.
>
>Thanks,
>J
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>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. 

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. 

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




Re: XSP All Nodes Even

2003-01-23 Thread Scott Warren
What is the value that position() is returning? Can you move the 
template into a another template that has a  I 
think you may get different results then.

Hope this helps

Scott Warren

Jacob Arnold wrote:

Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even. For example, I'm trying to make every even table row a
different color:


 
   
 
 
   
 


But every table row is getting the evenrow class applied. When I display the
position, every row (and every  for that matter) is even-numbered. Does
anyone know what might be causing this?

Here's a sitemap fragment:


 
   
   
   
 
 
 
 



 
   
   
 
 
 


I'm using Cocoon 2.0.4 on Tomcat 4.1.12.

Thanks,
J

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: XSP All Nodes Even

2003-01-23 Thread Scott Warren
What is the value that position() is returning? Can you move the 
template into a another template that has a  I 
think you may get different results then.

Hope this helps

Scott Warren

Jacob Arnold wrote:

Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even. For example, I'm trying to make every even table row a
different color:


 
   
 
 
   
 


But every table row is getting the evenrow class applied. When I display the
position, every row (and every  for that matter) is even-numbered. Does
anyone know what might be causing this?

Here's a sitemap fragment:


 
   
   
   
 
 
 
 



 
   
   
 
 
 


I'm using Cocoon 2.0.4 on Tomcat 4.1.12.

Thanks,
J

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




XSP All Nodes Even

2003-01-23 Thread Jacob Arnold
Whenever I test for even nodes using XSLT on my serialized XSP, all the
nodes are even. For example, I'm trying to make every even table row a
different color:


  

  
  

  


But every table row is getting the evenrow class applied. When I display the
position, every row (and every  for that matter) is even-numbered. Does
anyone know what might be causing this?

Here's a sitemap fragment:


  



  
  
  
  



  


  
  
  


I'm using Cocoon 2.0.4 on Tomcat 4.1.12.

Thanks,
J

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




cvs2.1 snapshot download date jan 22 2003 - gives me out of memory error

2003-01-23 Thread e nio
  Anyone else experiencing this OutOfMemory when compiling the
development snapshot dated Jan 22 2003 -   
xml-cocoon2_2003012305238_tar.gz ? I compiled it as such:

./build.sh  -Dinclude.webapp.libs=yes
-Dinclude.installscratchpadwar.libs=yes webapp 

Didnt have this problem on a download 1st week of Jan 2003.
Something significant that requires more memory this time?

enio

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:

My XSP, that should choose which XSL to use.:


Another possibility is to use *one* style sheet containing
all the templates and match on the document element to choose
the processing path.
For example, you want to use 2 style sheets:
1.xsl

  
   ...

2.xsl

  
   ...


First, add a mode to all templates to avoid name clashes, and
perhaps prefixes to global variables and parameters:
1.xsl

  
   ...


Make a stylesheet including all of the above and a document
element matching template to choose the further processing
path:
all.xsl:

  
  
  

  
  

  


Your XSP has simply to provide the appropriate document element.
I have absolutely no experience with XSP so I have to guess...

  
  

 int whichXSL;
...
// Now I want to choose the suitable XSL
if( whichXSL == 1)

  
   
  logic to put data here
   
  

else if( whichXSL == 2)

  
   
  logic to put data here
   
  

  ...

You'll have to rearrange your data generation a bit, of course.
If you don't want to do this, use a "marker element"

  
   
  

 int whichXSL;
...
// Now I want to choose the suitable XSL
if( whichXSL == 1)

  

else if( whichXSL == 2)

  


and in the XSL
  

  
  

  
  

  

The "marker element" must be the first child ot the results
element. There are ways to get around this, for example using
namespaces and matching
   

HTH
J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: java.lang.IllegalStateException: can't reset buffer after writing to client

2003-01-23 Thread Geoff Howard
Actually, believe it or not I had a similar error but not in the exact
circumstance, fixed in the same way.  Since I didn't know what fixed it
either, I wasn't sure it would help you.  Sorry, should have spoken up.

Geoff Howard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: java.lang.IllegalStateException: can't reset buffer after
> writing to client
>
>
>
> Well,
>   To answer my own question, I removed Tomcat 3.3.1 Final and
> installed
> Tomcat 4.1.18, and set everything up in that, and my error went away. Not
> sure why, but it is gone now. Just in case anyone wonders, later on down
> the road. Yeah.
>
> Dan Feather
> dfeather.at.oreillyauto.com
>
>
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: Different stylesheets called on runtime?

2003-01-23 Thread Geoff Howard
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Different stylesheets called on runtime?
>
> Hi Geff,
>
> thanks for your help. Ok.

Sure.  Ok,

>
> Example:
> _
> My XSP, that should choose which XSL to use.:

As an xsp is usually used to create a generator, you don't want to use it to
select anything about pipeline behavior.  You can write actions in xsp, but
for now that will probably confuse things.  So, you'll take the logic from
the xsp you had, and reuse it in an action.

Before getting into that, though look at the sitemap.  I think Christian
already gave you your answer there but again, you'll want to do something
like this:

>
> Part of sitemap:
> ...
> 

>
 
> 
>  ...
> 


> 
> 
>
> So how and where should I place my action (and how should it look like)?
If you mean the compiled action, it goes in WEB-INF/classes or inside a jar
in
WEB-INF/lib

> How should my xsl look like then?
this shouldn't have to change.

Now the java action.  this is more complicated than I originally indicated
because of the database access, but it's still not that bad.  I simplified a
few things, but resisted the urge to dumb it down.  For instance, you could
hard code the datasource name and get rid of configure().  You could skip
dispose() but I think that would lead to memory problems.  (avalon gurus -
is that right?) I have combined this quickly from a DB Action super class I
have and one subclass.

When this is compiled, it gets defined in the map:components section of the
sitemap:
 
 



package you.yourcompany.acting;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.avalon.framework.component.ComponentSelector;
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.activity.Disposable;

import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.acting.ConfigurableComposerAction;

import org.apache.avalon.excalibur.datasource.DataSourceComponent;

public class YourAction extends ConfigurableComposerAction implements
Disposable {

protected ComponentSelector dbselector;
DataSourceComponent datasource;

  public Map act(Redirector redirector, SourceResolver resolver, Map
objectModel,
String source, Parameters parameters) throws Exception {
  HashMap results = new HashMap();
  Request request = ObjectModelHelper.getRequest(objectModel);

>   
>  int whichXSL;
>
>   String report_id = request.getParameter("report_id");
>   String service_id = request.getParameter("service_id");
>   String nbt_pattern_id = request.getParameter("nbt_pattern_id");
>   String search_txt = request.getParameter("search_txt");
>   ...
>
>  // Check against a database, bla, bla
>  ...
>
>
> // Now I want to choose the suitable XSL
> if( whichXSL == 1)
>   // Choose number1.xsl
results.put("number1");
>else if( whichXSL == 2)
>   // Choose number2.xsl
results.put("number2");
>   else if( whichXSL == 3)
>   // Choose number3.xsl
results.put("number3");
else {
results.put("default");
// not strictly necessary
// could also return null to signal sitemap to execute fallback.  up to
you.
}
>...

  return results;
  } // end of act()

// Now, you glossed over the database stuff but there's a few methods you'll
need to
// handle that.  They will be called by cocoon during the normal component
lifecycle
// and are designed to give us a chance to get at the resources and
information we need.

/**
 * Compose the Actions so that we can select our databases.
 */
public void compose(ComponentManager manager) throws ComponentException
{
this.dbselector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + "Selector");
super.compose(manager);
}

/**
 * Configure lets you specify which datasource to use in the sitemap
component
 * definition rather than hardcoded in the compiled source
   *
 */
public void configure(Configuration conf) throws ConfigurationException
{
  super.configure(conf);
  datasource = null;
  String dataSourceConfig = (String)set

Re: java.lang.IllegalStateException: can't reset buffer after writing toclient

2003-01-23 Thread dfeather

Well,
  To answer my own question, I removed Tomcat 3.3.1 Final and installed
Tomcat 4.1.18, and set everything up in that, and my error went away. Not
sure why, but it is gone now. Just in case anyone wonders, later on down
the road. Yeah.

Dan Feather
dfeather.at.oreillyauto.com






-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




embedded dtd

2003-01-23 Thread Eduardo Zurita



Hello,
 
    The XML file I am retrieving 
from server has a embedded dtd.
 
    I would like to know if cocoon 
can support embedded dtd.
    
    The problem is:
 
    When I try to use " " in 
my XSL file, cocoon generates a exception with the message "The entity "nbsp" 
was referenced, but not declared".
 
    In the source XML file the 
entity "nbsp" is defined in a embedded dtd.
 
    Can anybody help me, 
please?
 
    Thanks in advance.
 
    
Eduardo.


RE: Different stylesheets called on runtime?

2003-01-23 Thread Geoff Howard
yes, absolutely - an action can do that.  The easiest way (IMO) is to just
code the java, although they apparently can be written in xsp.  I'd get the
concept first in java, though and then try doing it in xsp if you want.

I'll mark up your original email with some examples of how it would be done.
Sorry I dropped out there for a while - i'm working from home on one phone
line and have been expecting some important calls so trying to stay offline
when not necessary.

Geoff

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Different stylesheets called on runtime?
>
>
>
> OK, now I have to think of an other way, how to choose my XSLs.
>
> or
>
> The different XSLs are "choosen" from request parameters and an resulting
> database query. Is there a way to do that in an action or somewhere else?
>
> Cheers
> Jonny
>
> --
> --
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
> |-+-->
> | |   Christian Haul |
> | |   <[EMAIL PROTECTED]|
> | |   rmstadt.de>|
> | |  |
> | |   01/23/03 06:51 PM  |
> | |   Please respond to  |
> | |   cocoon-users   |
> | |  |
> |-+-->
>
> >-
> -|
>   |
>|
>   |   To:   [EMAIL PROTECTED]
>|
>   |   cc:
>|
>   |   Subject:  Re: Different stylesheets called on runtime?
>|
>
> >-
> -|
>
>
>
>
> On 23.Jan.2003 -- 06:35 PM, [EMAIL PROTECTED] wrote:
> >
> > >> Unfortunately, you've skipped the crucial part i.e. how the xsl is
> > chosen :-|
> >
> > I think I don't understand you right., but this should be just
> an "dummy"
> > example.
> > So if(whichXSL == 1) then the number1.xsl should be choosen for output,
> > else if(whichXSL == 2) then the number2.xsl should be choosen
> for output,
> > bla, bla. I hope this is clearer.
>
> You cannot change the transformation with data from the XSP. Period.
> Before you reach that part of the XSP, the pipeline has been setup and
> the transformation has already begun.
>
> If you told us how the style is chosen, we might have been able to
> point you to some existing components to use instead.
>
> > >>  around one transform and use a returned value as file name, e.g.
> > >>
> > >>   
> > >>  
> > >>   
> >
> > Ok. But I don't get the part (in combination with the xsp) how, if for
> > example number2.xsl is choosen, to choose it.
> > How do I "produce" the return value in the xsp?
>
> You don't. It's impossible. (sort of)
>
>  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. 
>
> 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. 
>
> 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. 

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Cyril Vidal
It's working much better!
Thanks Christian for your attention!!

Cyril.
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 8:03 PM
Subject: Re: error:use Xalan in incremental processing mode


> On 23.Jan.2003 -- 07:08 PM, Cyril Vidal wrote:
> > In the console, I've got the following:
> > Errors in XSLT Transformation:
> > Warning: File
> >
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c
> > ocoon/components/language/markup/sitemap/java/sitemap.xsl;
> > Line1817; Column34; Sitemap pipeline must have at least one of:
> > map:generate, map: aggregate, map:read, map:mount, map:redirect-to,
map:call
>
> Yep. I thought it was wrong copy&past. You write  but you
need to
> write  See, you have omitted crucial information like the
message
> above ;-)
>
> HTH
> 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. 
>
> 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. 

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 07:08 PM, Cyril Vidal wrote:
> In the console, I've got the following:
> Errors in XSLT Transformation:
> Warning: File
> jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c
> ocoon/components/language/markup/sitemap/java/sitemap.xsl;
> Line1817; Column34; Sitemap pipeline must have at least one of:
> map:generate, map: aggregate, map:read, map:mount, map:redirect-to, map:call

Yep. I thought it was wrong copy&past. You write  but you need to
write  See, you have omitted crucial information like the message
above ;-)

HTH
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. 

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




Re: cli interface Thank you!

2003-01-23 Thread jim

- Original Message -
From: "Geoff Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 9:10 AM
Subject: RE: cli interface


> then why does run.* go to the trouble of setting up a classpath?
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 11:50 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: cli interface
> >
> >
> > Geoff,
> >I looked through the Main source and it is building the classpath
from
> > the context directory
> > by looking in the WEB-INF/lib and WEB-INF/classes directories to build
the
> > classpath.
> > So I don't think that is it.
> > James
> > - Original Message -
> > From: "Geoff Howard" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 23, 2003 8:56 AM
> > Subject: RE: cli interface
> >
> >
> > > you don't have any classpath set up.  isn't there is a run.bat
> > and run.sh
> > in
> > > the main directory used for running from the command line - that would
> > > handle the classpath for you.
> > >
> > > Geoff Howard
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, January 23, 2003 11:23 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: cli interface
> > > >
> > > >
> > > > This is my first attempt at using Cocoon and I am trying to run
> > > > it using the
> > > > command line interface. I am using the command from my
> > > > WEB-INF/lib directory
> > > > with tomcat 4.0 running:
> > > >
> > > > java -jar cocoon-2.0.4.jar org.apache.cocoon.Main -c
> > > > c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon -u DEBUG -C
> > > >
c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon\WEB-INF\cocoon.xconf
> > > >
> > > > and I get the exception:
> > > >
> > > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > > org/apache/avalon/framework/CascadingException
> > > >
> > > > Thank you for you help,
> > > > James
> > > >
> > > >
> > > >
> > >
> -
> > > > Please check that your question  has not already been answered in
the
> > > > FAQ before posting.

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

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Cyril Vidal
For simplicity, I'm using Cocoon's mount directory.
I've created inside directory tuto with the sitemap.xmap I've sent to you,
particpants.xml and participants.xsl
and I call http://localhost:8080/cocoon/mount/tuto/
(so Tomcat/webapps/cocoon/mount/tuto with inside sitemap.xmap,
participants.xml and participants.xsl)
For me, it should be OK.

In the console, I've got the following:
Errors in XSLT Transformation:
Warning: File
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c
ocoon/components/language/markup/sitemap/java/sitemap.xsl;
Line1817; Column34; Sitemap pipeline must have at least one of:
map:generate, map: aggregate, map:read, map:mount, map:redirect-to, map:call
Fatal: Achèvement dirigé de la feuille de style

Maybe it can help,
Thanks for your help,
Cyril.

- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 6:45 PM
Subject: Re: error:use Xalan in incremental processing mode


> On 23.Jan.2003 -- 06:38 PM, Cyril Vidal wrote:
> > Hi Chrisitian
> >
> > Thanks for your answer.
> >
> > My default generator was the 'file' one.
>
> that does not make sense (at least to me):
>
> > 
>
> but
>
> > org.apache.cocoon.ProcessingException: Failed to generate program code
(this
>=
> >
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
>   
>
> You are *sure*? Have you tried to restart your container? Are you sure
> that it is definately *your* sitemap?
>
> 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. 
>
> 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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Johannes . Becker

OK, now I have to think of an other way, how to choose my XSLs.

or

The different XSLs are "choosen" from request parameters and an resulting
database query. Is there a way to do that in an action or somewhere else?

Cheers
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+-->
| |   Christian Haul |
| |   <[EMAIL PROTECTED]|
| |   rmstadt.de>|
| |  |
| |   01/23/03 06:51 PM  |
| |   Please respond to  |
| |   cocoon-users   |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]
  |
  |   cc:  
  |
  |   Subject:  Re: Different stylesheets called on runtime?   
  |
  
>--|




On 23.Jan.2003 -- 06:35 PM, [EMAIL PROTECTED] wrote:
>
> >> Unfortunately, you've skipped the crucial part i.e. how the xsl is
> chosen :-|
>
> I think I don't understand you right., but this should be just an "dummy"
> example.
> So if(whichXSL == 1) then the number1.xsl should be choosen for output,
> else if(whichXSL == 2) then the number2.xsl should be choosen for output,
> bla, bla. I hope this is clearer.

You cannot change the transformation with data from the XSP. Period.
Before you reach that part of the XSP, the pipeline has been setup and
the transformation has already begun.

If you told us how the style is chosen, we might have been able to
point you to some existing components to use instead.

> >>  around one transform and use a returned value as file name, e.g.
> >>
> >>   
> >>  
> >>   
>
> Ok. But I don't get the part (in combination with the xsp) how, if for
> example number2.xsl is choosen, to choose it.
> How do I "produce" the return value in the xsp?

You don't. It's impossible. (sort of)

 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. 

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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:35 PM, [EMAIL PROTECTED] wrote:
> 
> >> Unfortunately, you've skipped the crucial part i.e. how the xsl is
> chosen :-|
> 
> I think I don't understand you right., but this should be just an "dummy"
> example.
> So if(whichXSL == 1) then the number1.xsl should be choosen for output,
> else if(whichXSL == 2) then the number2.xsl should be choosen for output,
> bla, bla. I hope this is clearer.

You cannot change the transformation with data from the XSP. Period.
Before you reach that part of the XSP, the pipeline has been setup and
the transformation has already begun.

If you told us how the style is chosen, we might have been able to
point you to some existing components to use instead.

> >>  around one transform and use a returned value as file name, e.g.
> >>
> >>   
> >>  
> >>   
> 
> Ok. But I don't get the part (in combination with the xsp) how, if for
> example number2.xsl is choosen, to choose it.
> How do I "produce" the return value in the xsp?

You don't. It's impossible. (sort of)

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. 

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:38 PM, Cyril Vidal wrote:
> Hi Chrisitian
> 
> Thanks for your answer.
> 
> My default generator was the 'file' one.

that does not make sense (at least to me):

> 

but

> org.apache.cocoon.ProcessingException: Failed to generate program code (this
   =
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
  

You are *sure*? Have you tried to restart your container? Are you sure
that it is definately *your* sitemap?

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. 

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Cyril Vidal
Hi Chrisitian

Thanks for your answer.

My default generator was the 'file' one.





http://apache.org/cocoon/sitemap/1.0";>















































and the complete error message (no more informations in log) is the
following:
stack-trace

org.apache.cocoon.ProcessingException: Failed to generate program code (this
may happen if you use Xalan in incremental processing mode). Please check
log file and/or console for errors.
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:395)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)and my stylesheet is as below
(nothing special except perhaps use of xsl:key?):http://www.w3.org/1999/XSL/Transform";>PARTICIPANTSTrier par : titrenomprénomorganismepaysNomPrénom
OrganismeAdresseTél/fax/emailPaysTél : Fax :
c:/images/.gifEmail : mailto:
Cyril.- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 6:17 PM
Subject: Re: error:use Xalan in incremental processing mode


> On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote:
> > Hi,
> >
> > I'm sorry if this question has already been asked before. I've checked
out
> > in the archives, but these seem to be  available for the moment...
> > I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4
> > I just would like to perform an XSLT transformation. In this aim, I use
the
> > very simple sitemap.xmap (snippet):
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> >
> > But, infortunately, I receive the following error message:
> > message Failed to generate program code (this may happen if you use
Xalan in
> > incremental processing mode). Please check log file and/or console for
> > errors.
> >
> > description org.apache.cocoon.ProcessingException: Failed to generate
> > program code (this may happen if you use Xalan in incremental processing
> > mode). Please check log file and/or console for errors
>
> not enough information. include a larger portion of the logs.
>
> perhaps you have the serverpages generator as default? Try
>   
>
> 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. 
>
> 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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Johannes . Becker

>> Unfortunately, you've skipped the crucial part i.e. how the xsl is
chosen :-|

I think I don't understand you right., but this should be just an "dummy"
example.
So if(whichXSL == 1) then the number1.xsl should be choosen for output,
else if(whichXSL == 2) then the number2.xsl should be choosen for output,
bla, bla. I hope this is clearer.


>>  around one transform and use a returned value as file name, e.g.
>>
>>   
>>  
>>   

Ok. But I don't get the part (in combination with the xsp) how, if for
example number2.xsl is choosen, to choose it.
How do I "produce" the return value in the xsp?


 How should my xsl look like then?
>>no change.

Copy&paste mistake.

Thanks
Jonny







This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+-->
| |   Christian Haul |
| |   <[EMAIL PROTECTED]|
| |   rmstadt.de>|
| |  |
| |   01/23/03 06:14 PM  |
| |   Please respond to  |
| |   cocoon-users   |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]
  |
  |   cc:  
  |
  |   Subject:  Re: Different stylesheets called on runtime?   
  |
  
>--|




On 23.Jan.2003 -- 05:42 PM, [EMAIL PROTECTED] wrote:
>  int whichXSL;
>
>   String report_id = request.getParameter("report_id");
>   String service_id = request.getParameter("service_id");
>   String nbt_pattern_id = request.getParameter("nbt_pattern_id");
>   String search_txt = request.getParameter("search_txt");
>   ...
>
>  // Check against a database, bla, bla
>  ...
>
>
> // Now I want to choose the suitable XSL
> if( whichXSL == 1)

Unfortunately, you've skipped the crucial part i.e. how the xsl is
chosen :-|

> ...
> 
> 
> 
> 
>  
> 
> 
> 
>  ...
> 
> 
> 
>
> So how and where should I place my action (and how should it look like)?

around one transform and use a returned value as file name, e.g.

   
  
   

> How should my xsp look like then?

rip out everything related to the XSL

> How should my xsl look like then?

no change.

 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. 

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. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Vadim Gritsenko
Luca Morandini wrote:


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:05 PM
To: [EMAIL PROTECTED]
Subject: Re: .Net port of Cocoon
   


 

Granted, there is no debugger in Cocoon,

 

... and shoud not be: all IDEs as well as JDK has debuggers. Use them
remotely or start your servlet engine from under it - in either case you
can put breakpoints and debug your Java.

/me goes back to lurking
Vadim
   


Vadim,

let's get this straight: since Cocoon is composed of many technologies, a Java debugger alone cannot do the work.
 


Of course not, all other (listed here and not) ways to debug pipelines 
are useful and needed too (and IIRC 2.1 has some improvements there). 
Just reminding that good 'ol java debuggers are still applicable when 
you want to debug java ;)

Vadim


I'd like to debug my XSLT, see the parameters' values as they flow from the sitemap to the XSLT, check every stage's XML output, set
breakpoints in Actions... and more: this is what an ideal Cocoon debugger should do.

AFAIK, there is no single debugger like this, only a patchwork of debuggers, one for XSLT, one for Java...


Regards,

-
  Luca Morandini
  GIS Consultant
 [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-
 




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote:
> Hi,
> 
> I'm sorry if this question has already been asked before. I've checked out
> in the archives, but these seem to be  available for the moment...
> I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4
> I just would like to perform an XSLT transformation. In this aim, I use the
> very simple sitemap.xmap (snippet):
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> But, infortunately, I receive the following error message:
> message Failed to generate program code (this may happen if you use Xalan in
> incremental processing mode). Please check log file and/or console for
> errors.
> 
> description org.apache.cocoon.ProcessingException: Failed to generate
> program code (this may happen if you use Xalan in incremental processing
> mode). Please check log file and/or console for errors

not enough information. include a larger portion of the logs.

perhaps you have the serverpages generator as default? Try 
  

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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 05:42 PM, [EMAIL PROTECTED] wrote:
>  int whichXSL;
> 
>   String report_id = request.getParameter("report_id");
>   String service_id = request.getParameter("service_id");
>   String nbt_pattern_id = request.getParameter("nbt_pattern_id");
>   String search_txt = request.getParameter("search_txt");
>   ...
> 
>  // Check against a database, bla, bla
>  ...
> 
> 
> // Now I want to choose the suitable XSL
> if( whichXSL == 1)

Unfortunately, you've skipped the crucial part i.e. how the xsl is
chosen :-|

> ...
> 
> 
> 
> 
>  
> 
> 
> 
>  ...
> 
> 
> 
> 
> So how and where should I place my action (and how should it look like)?

around one transform and use a returned value as file name, e.g.

   
  
   

> How should my xsp look like then?

rip out everything related to the XSL

> How should my xsl look like then?

no change.

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. 

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




RE: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 5:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: .Net port of Cocoon

> >
> >Granted, there is no debugger in Cocoon,
> >
>
> ... and shoud not be: all IDEs as well as JDK has debuggers. Use them
> remotely or start your servlet engine from under it - in either case you
> can put breakpoints and debug your Java.
>
> /me goes back to lurking
> Vadim

Vadim,

let's get this straight: since Cocoon is composed of many technologies, a Java 
debugger alone cannot do the work.

I'd like to debug my XSLT, see the parameters' values as they flow from the sitemap to 
the XSLT, check every stage's XML output, set
breakpoints in Actions... and more: this is what an ideal Cocoon debugger should do.

AFAIK, there is no single debugger like this, only a patchwork of debuggers, one for 
XSLT, one for Java...


Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Xindice1.1b and Pseudo-Protocol: HELP NEEDED

2003-01-23 Thread Julian Klein
HI,

I am trying to implement the psuedo-protocol for
xindice 1.1 beta in cocoon cvs version.  My previous
code however no longer works to access the database. 
I used to use xindice 1.0 as a standalone, but now I
have it mounted in Tomcat as a webapp running on port
8080.  I am running on red hat 8.0, tomcat 4.1.12,
cocoon cvs version, and java 1.4.  My code is as
below...thanks in advance,

Julian














   
 



 
   


STACK TRACE THROWN WHEN ACCESSING THIS URL
ATTACHED***

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily"
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily"
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Could not read resource xmldb:xindice://localhost:8080/db/

More precisely:

org.apache.cocoon.ProcessingException: Could not read resource 
xmldb:xindice://localhost:8080/db/: org.xmldb.api.base.XMLDBException: A connection to 
the Database instance 'db' could not be created. Error: Server returned HTTP response 
code: 500 for URL: http://localhost:8080/db_bootstrap.ior 



Original exception : org.xmldb.api.base.XMLDBException: A connection to the Database 
instance 'db' could not be created. Error: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/db_bootstrap.ior
at org.apache.xindice.client.xmldb.DatabaseImpl.init(DatabaseImpl.java:386)
at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:205)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at 
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.java:265)
at org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:214)
at 
org.apache.cocoon.components.source.impl.CocoonToAvalonSource.toSAX(CocoonToAvalonSource.java:149)
at 
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:532)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:513)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
or

error:use Xalan in incremental processing mode

2003-01-23 Thread Cyril Vidal
Hi,

I'm sorry if this question has already been asked before. I've checked out
in the archives, but these seem to be  available for the moment...
I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4
I just would like to perform an XSLT transformation. In this aim, I use the
very simple sitemap.xmap (snippet):












But, infortunately, I receive the following error message:
message Failed to generate program code (this may happen if you use Xalan in
incremental processing mode). Please check log file and/or console for
errors.

description org.apache.cocoon.ProcessingException: Failed to generate
program code (this may happen if you use Xalan in incremental processing
mode). Please check log file and/or console for errors



1))I' ve checked the log file and this gives exactly the same informations
as above.

2°)I've ran this transformation via command line,
(java.org.apache.xalan.xslt.Process -IN participants.xml -XSL
particpants.xsl -OUT participants.html) and it was successfull.



So, what I have to do to fix he problem, if possible?



Thanks in advance for your responses,

Cyril.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: cli interface

2003-01-23 Thread Geoff Howard
then why does run.* go to the trouble of setting up a classpath?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: cli interface
>
>
> Geoff,
>I looked through the Main source and it is building the classpath from
> the context directory
> by looking in the WEB-INF/lib and WEB-INF/classes directories to build the
> classpath.
> So I don't think that is it.
> James
> - Original Message -
> From: "Geoff Howard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 8:56 AM
> Subject: RE: cli interface
>
>
> > you don't have any classpath set up.  isn't there is a run.bat
> and run.sh
> in
> > the main directory used for running from the command line - that would
> > handle the classpath for you.
> >
> > Geoff Howard
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 23, 2003 11:23 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: cli interface
> > >
> > >
> > > This is my first attempt at using Cocoon and I am trying to run
> > > it using the
> > > command line interface. I am using the command from my
> > > WEB-INF/lib directory
> > > with tomcat 4.0 running:
> > >
> > > java -jar cocoon-2.0.4.jar org.apache.cocoon.Main -c
> > > c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon -u DEBUG -C
> > > c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon\WEB-INF\cocoon.xconf
> > >
> > > and I get the exception:
> > >
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/apache/avalon/framework/CascadingException
> > >
> > > Thank you for you help,
> > > James
> > >
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > 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. 
> >
> > 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. 
>
> 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. 

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




Re: Administrator in need of help on new install

2003-01-23 Thread Jim McCullough
Perhaps I also should have asked it you are able
to access Cocoon by specifying the Tomcat port:

http://mymachine.com:8080/cocoon

or whatever port Tomcat is listening on, usually 8080.

If the cocoon welcom page is displaying properly when
accessing Tomcat directly - then there is really only
one line out of the httpd.conf file that matters:

JkMount /cocoon/* ajp13

you can also setup an alias to cocoon

Alias /cocoon "[path-to-cocoon]"

These are the only lines in the httpd.conf file that
refer to cocoon and should get cocoon showing up
when using http://mymachine.com/cocoon

Obviously the above lines would need to be included
under the specific virtual host in your httpd.conf file if you
are using virtual hosts, or under the default host.


Jim


Jim McCullough
Risk Analytics Inc. - Las Vegas
Software Engineering
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(702) 407-1814 (voice)
(702) 407-1824 (fax)



- Original Message -
From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 8:41 AM
Subject: Re: Administrator in need of help on new install


> Hy,
>
> can you send your tomcat/apache/cocoon config files ?
> That should be a solvable problem ...
>
> If the mailing list agent refuses your email (due to size
> limitations) you can send it directly to my personal
> email adress if you like...
>
> regards, hussayn
>
> Jim McCullough wrote:
> > Have you setup a JkMount in your httpd.conf file
> > for cocoon?
> >
> > JkMount /cocoon/* ajp13
> >
> >
> > Jim McCullough
> > Risk Analytics Inc. - Las Vegas
> > Software Engineering
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > (702) 407-1814 (voice)
> > (702) 407-1824 (fax)
> >
> >
> >
> > - Original Message -
> > From: "Gerstel, Rachel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 23, 2003 8:25 AM
> > Subject: Administrator in need of help on new install
> >
> >
> >
> >>Hello All,
> >>
> >>Apologies if this has already been covered, but I have not been able to
> >
> > find
> >
> >>a similar problem in the archives.
> >>
> >>I have no experience with xml whatsoever and have a brand-new developer
> >
> > with
> >
> >>no experience whatsoever wanting to start playing around with cocoon.
> >>
> >>I have installed: Tomcat 4.0.4, Apache 1.3.26 and Cocoon 2.0.4 (also
> >>uninstalled and tried 2.0.3, but got the same results). I have a feeling
I
> >>am missing some really basic item, but haven't been able to figure it
out
> >>and am getting a headache so I hope someone can please help. :--)
> >>
> >>My tomcat and apache are configured with mod_jk to talk to each other
(via
> >>auto config in tomcat ../conf/auto/mod_jk.conf) with apache serving
static
> >>pages and tomcat serving servlet, java stuff. That works fine. I put the
> >>cocoon.war into webapps and it auto-deploys, no error messages
anywhere!!!
> >>But when I click on http://mymachin/cocoon the only thing I see is the
> >>directory index. No welcome page that I keep hearing so much about.
> >>
> >>Can someone smack me over the head and tell me what vital thing I have
> >>missed?
> >>
> >>Thanks,
> >>Rachel
> >>
> >>
> >>-
> >>Please check that your question  has not already been answered in the
> >>FAQ before posting. 
> >>
> >>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. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
> --
> Dr. Hussayn Dabbous
> SAXESS Software Design GmbH
> Neuenhöfer Allee 125
> 50935 Köln
> Telefon: +49-221-56011-0
> Fax: +49-221-56011-20
> E-Mail:  [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: cli interface

2003-01-23 Thread jim
Geoff,
   I looked through the Main source and it is building the classpath from
the context directory
by looking in the WEB-INF/lib and WEB-INF/classes directories to build the
classpath.
So I don't think that is it.
James
- Original Message -
From: "Geoff Howard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 8:56 AM
Subject: RE: cli interface


> you don't have any classpath set up.  isn't there is a run.bat and run.sh
in
> the main directory used for running from the command line - that would
> handle the classpath for you.
>
> Geoff Howard
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 11:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: cli interface
> >
> >
> > This is my first attempt at using Cocoon and I am trying to run
> > it using the
> > command line interface. I am using the command from my
> > WEB-INF/lib directory
> > with tomcat 4.0 running:
> >
> > java -jar cocoon-2.0.4.jar org.apache.cocoon.Main -c
> > c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon -u DEBUG -C
> > c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon\WEB-INF\cocoon.xconf
> >
> > and I get the exception:
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/avalon/framework/CascadingException
> >
> > Thank you for you help,
> > James
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

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




RE: cli interface

2003-01-23 Thread Geoff Howard
you don't have any classpath set up.  isn't there is a run.bat and run.sh in
the main directory used for running from the command line - that would
handle the classpath for you.

Geoff Howard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 11:23 AM
> To: [EMAIL PROTECTED]
> Subject: cli interface
>
>
> This is my first attempt at using Cocoon and I am trying to run
> it using the
> command line interface. I am using the command from my
> WEB-INF/lib directory
> with tomcat 4.0 running:
>
> java -jar cocoon-2.0.4.jar org.apache.cocoon.Main -c
> c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon -u DEBUG -C
> c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon\WEB-INF\cocoon.xconf
>
> and I get the exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/avalon/framework/CascadingException
>
> Thank you for you help,
> James
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: Different stylesheets called on runtime?

2003-01-23 Thread Johannes . Becker

Hi Geff,

thanks for your help. Ok.

Example:
_
My XSP, that should choose which XSL to use.:


http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";>

  
  java.sql.*^


  
  
  

 int whichXSL;

  String report_id = request.getParameter("report_id");
  String service_id = request.getParameter("service_id");
  String nbt_pattern_id = request.getParameter("nbt_pattern_id");
  String search_txt = request.getParameter("search_txt");
  ...

 // Check against a database, bla, bla
 ...


// Now I want to choose the suitable XSL
if( whichXSL == 1)
  // Choose number1.xsl
   else if( whichXSL == 2)
  // Choose number2.xsl
  else if( whichXSL == 3)
  // Choose number3.xsl
   ...

  // data data
  ...
  ...


Part of sitemap:
...




 



 ...




So how and where should I place my action (and how should it look like)?
How should my xsp look like then?
How should my xsl look like then?

Cheers
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+>
| |   "Geoff Howard"   |
| | |
| ||
| |   01/23/03 04:27 PM|
| |   Please respond to|
| |   cocoon-users |
| ||
|-+>
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>  
  |
  |   cc:  
  |
  |   Subject:  RE: Different stylesheets called on runtime?   
  |
  
>--|




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Different stylesheets called on runtime?
>
>
>
> Thanks for the quick and helpfull response.
>
> Thats the answer I kind of expected and feared most. That means for me:
> Getting comfortable with actions.

Well, the good news is that in my opinion (and experience) actions are
about
as easy as it gets when extending cocoon.  There's only one method to
implement,
and the only contract you need to code for is to return null if the action
fails
and return a Map of the key-value pairs you need to reference in the
sitemap
if
the action is successful. (or any empty map if you don't need to reference
values
in the sitemap).

Ask some specific questions here about what problems you have getting
started.

Geoff Howard

>
> Cheers
> Jonny



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: Administrator in need of help on new install

2003-01-23 Thread SAXESS - Hussayn Dabbous
Hy,

can you send your tomcat/apache/cocoon config files ?
That should be a solvable problem ...

If the mailing list agent refuses your email (due to size
limitations) you can send it directly to my personal
email adress if you like...

regards, hussayn

Jim McCullough wrote:

Have you setup a JkMount in your httpd.conf file
for cocoon?

JkMount /cocoon/* ajp13


Jim McCullough
Risk Analytics Inc. - Las Vegas
Software Engineering
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(702) 407-1814 (voice)
(702) 407-1824 (fax)



- Original Message -
From: "Gerstel, Rachel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 8:25 AM
Subject: Administrator in need of help on new install




Hello All,

Apologies if this has already been covered, but I have not been able to


find


a similar problem in the archives.

I have no experience with xml whatsoever and have a brand-new developer


with


no experience whatsoever wanting to start playing around with cocoon.

I have installed: Tomcat 4.0.4, Apache 1.3.26 and Cocoon 2.0.4 (also
uninstalled and tried 2.0.3, but got the same results). I have a feeling I
am missing some really basic item, but haven't been able to figure it out
and am getting a headache so I hope someone can please help. :--)

My tomcat and apache are configured with mod_jk to talk to each other (via
auto config in tomcat ../conf/auto/mod_jk.conf) with apache serving static
pages and tomcat serving servlet, java stuff. That works fine. I put the
cocoon.war into webapps and it auto-deploys, no error messages anywhere!!!
But when I click on http://mymachin/cocoon the only thing I see is the
directory index. No welcome page that I keep hearing so much about.

Can someone smack me over the head and tell me what vital thing I have
missed?

Thanks,
Rachel


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Vadim Gritsenko
[EMAIL PROTECTED] wrote:


Hi Vadim,

 

... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
remotely or start your servlet engine from under it - in either case you 
can put breakpoints and debug your Java.
   


Do you include Eclipse?



I'm using IDEA, and have not worked with Eclipse yet, so I'm not sure 
what do you mean here.


Vadim



Sylvain


-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: jeudi, 23. janvier 2003 17:05
À: [EMAIL PROTECTED]
Objet: Re: .Net port of Cocoon


Luca Morandini wrote:

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 3:55 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: .Net port of Cocoon
  

 



   

Hi Luca,

  

 

Hmm I never restart the Servlet container (not the VM) for debugging.


   

Could you explain how you debug your Cocoon app?
  

 

By looking at the log files (you can easily configure them via logkit.xconf) and by using views (meaning: looking at the output of
intermediate steps in the pipeline).

Granted, there is no debugger in Cocoon,

   


... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
remotely or start your servlet engine from under it - in either case you 
can put breakpoints and debug your Java.

/me goes back to lurking
Vadim


 

but no need to re-start the container either.

Regards,

-
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


   




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Joerg Heinicke
Very cool, Konstantin. I added the information to
http://wiki.cocoondev.org/Wiki.jsp?page=HotDeploy. Hey, my first Wiki 
page ;-) Did I forget anything?

Regards,

Joerg

Konstantin Piroumian wrote:
From: "Andreas Bednarz" <[EMAIL PROTECTED]>


Hi Derek,






no VM restarting for debugging etc



My advice won't help you much if you decided not to use Cocoon, but I hope
it would be helpful for other users. (Would be also fine if somebody could
write an this on Wiki).

To avoid restarting the VM (the servlet container) you should do the
following:
- use a container that supports hot deploy or so (I've used Tomcat 4.0.4
and 4.1). You can use it for development only and then deploy some other
server.
- configure your servlet container to load application located in
/build/cocoon/webapp. In case of Tomcat you should a context in
/conf/server.xml pointing to that location, e.g.:

  


- and at last build Cocoon using
build.[bat|sh]-Dinclude.webapp.libs=true webapp-local. This will build
Cocoon and will place all classes in WEB-INF/classes so Tomcat could track
changes.

Now you can compile your classes and Tomcat will reload the application as
soon as modifications are detected (it requires about a 1min).

--
  Konstantin



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Administrator in need of help on new install

2003-01-23 Thread Jim McCullough
Have you setup a JkMount in your httpd.conf file
for cocoon?

JkMount /cocoon/* ajp13


Jim McCullough
Risk Analytics Inc. - Las Vegas
Software Engineering
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(702) 407-1814 (voice)
(702) 407-1824 (fax)



- Original Message -
From: "Gerstel, Rachel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 8:25 AM
Subject: Administrator in need of help on new install


> Hello All,
>
> Apologies if this has already been covered, but I have not been able to
find
> a similar problem in the archives.
>
> I have no experience with xml whatsoever and have a brand-new developer
with
> no experience whatsoever wanting to start playing around with cocoon.
>
> I have installed: Tomcat 4.0.4, Apache 1.3.26 and Cocoon 2.0.4 (also
> uninstalled and tried 2.0.3, but got the same results). I have a feeling I
> am missing some really basic item, but haven't been able to figure it out
> and am getting a headache so I hope someone can please help. :--)
>
> My tomcat and apache are configured with mod_jk to talk to each other (via
> auto config in tomcat ../conf/auto/mod_jk.conf) with apache serving static
> pages and tomcat serving servlet, java stuff. That works fine. I put the
> cocoon.war into webapps and it auto-deploys, no error messages anywhere!!!
> But when I click on http://mymachin/cocoon the only thing I see is the
> directory index. No welcome page that I keep hearing so much about.
>
> Can someone smack me over the head and tell me what vital thing I have
> missed?
>
> Thanks,
> Rachel
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Administrator in need of help on new install

2003-01-23 Thread Gerstel, Rachel
Hello All,

Apologies if this has already been covered, but I have not been able to find
a similar problem in the archives.

I have no experience with xml whatsoever and have a brand-new developer with
no experience whatsoever wanting to start playing around with cocoon. 

I have installed: Tomcat 4.0.4, Apache 1.3.26 and Cocoon 2.0.4 (also
uninstalled and tried 2.0.3, but got the same results). I have a feeling I
am missing some really basic item, but haven't been able to figure it out
and am getting a headache so I hope someone can please help. :--)

My tomcat and apache are configured with mod_jk to talk to each other (via
auto config in tomcat ../conf/auto/mod_jk.conf) with apache serving static
pages and tomcat serving servlet, java stuff. That works fine. I put the
cocoon.war into webapps and it auto-deploys, no error messages anywhere!!!
But when I click on http://mymachin/cocoon the only thing I see is the
directory index. No welcome page that I keep hearing so much about.

Can someone smack me over the head and tell me what vital thing I have
missed?

Thanks,
Rachel


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




cli interface

2003-01-23 Thread jim
This is my first attempt at using Cocoon and I am trying to run it using the
command line interface. I am using the command from my WEB-INF/lib directory
with tomcat 4.0 running:

java -jar cocoon-2.0.4.jar org.apache.cocoon.Main -c
c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon -u DEBUG -C
c:\JBuilder7\jakarta-tomcat-4.0.3\webapps\cocoon\WEB-INF\cocoon.xconf

and I get the exception:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/framework/CascadingException

Thank you for you help,
James



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




wiki update mails

2003-01-23 Thread Steven Noels
(already announced on cocoon-dev/-docs)

The Cocoon Wiki: http://wiki.cocoondev.org/

Hourly Cocoon wiki diff mails are being sent now to the cocoon-docs 
mailing lists, so people who have a particular interest in Wiki updates 
should subscribe to that list ([EMAIL PROTECTED]). Of 
course, if no pages are touched or created, no mail gets sent. The 
cocoon-docs lists is pretty low volume - don't be afraid to be subscribe.

Here's an archived mail: 
http://marc.theaimsgroup.com/?l=xml-cocoon-docs&m=104333407905612&w=2

I'm posting this explicitly here since many wiki contributors appear to 
be users - something very much appreciated!


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



RE: .Net port of Cocoon

2003-01-23 Thread Sylvain.Thevoz
Hi Vadim,

>... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
>remotely or start your servlet engine from under it - in either case you 
>can put breakpoints and debug your Java.

Do you include Eclipse?

Sylvain


-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: jeudi, 23. janvier 2003 17:05
À: [EMAIL PROTECTED]
Objet: Re: .Net port of Cocoon


Luca Morandini wrote:

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, January 23, 2003 3:55 PM
>>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>>Subject: RE: .Net port of Cocoon
>>
>>
>
>  
>
>>Hi Luca,
>>
>>
>>
>>>Hmm I never restart the Servlet container (not the VM) for debugging.
>>>  
>>>
>>Could you explain how you debug your Cocoon app?
>>
>>
>
>By looking at the log files (you can easily configure them via logkit.xconf) and by 
>using views (meaning: looking at the output of
>intermediate steps in the pipeline).
>
>Granted, there is no debugger in Cocoon,
>

... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
remotely or start your servlet engine from under it - in either case you 
can put breakpoints and debug your Java.

/me goes back to lurking
Vadim


> but no need to re-start the container either.
>
>Regards,
>
>-
>   Luca Morandini
>   GIS Consultant
>  [EMAIL PROTECTED]
>http://utenti.tripod.it/lmorandini/index.html
>-
>  
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Vadim Gritsenko
Luca Morandini wrote:


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 3:55 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: .Net port of Cocoon
   


 

Hi Luca,

   

Hmm I never restart the Servlet container (not the VM) for debugging.
 

Could you explain how you debug your Cocoon app?
   


By looking at the log files (you can easily configure them via logkit.xconf) and by using views (meaning: looking at the output of
intermediate steps in the pipeline).

Granted, there is no debugger in Cocoon,



... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
remotely or start your servlet engine from under it - in either case you 
can put breakpoints and debug your Java.

/me goes back to lurking
Vadim


but no need to re-start the container either.

Regards,

-
  Luca Morandini
  GIS Consultant
 [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-
 




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon Portal Framework for production use?

2003-01-23 Thread Martin Schimak
I have a new Intranet project (In July 2003, a very first release should be ready) and
would like to use Cocoon 2.1 with Portal Framework to implement it. I would like to know
your personal opinions: Is it safe now to use 2.1 for production? I understand that End
of February 2003 2.1 Beta 1 is available. Does exist a possible release day for 2.1-final?

Sorry if this is a regular question, I didn't find anything on the Timeframe-Webpage
regarding 2.1-Final and haven't been around the cocoon-users list for a while now...

Thxalot,
Martin.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




change output header in view or reader

2003-01-23 Thread Juraj Misovych
I have app like e-mails ,
have stored message attachments as files with name from md5()

when user want to tore attachment , need to set original name of file
can i set values in response headers in view or reader ???

thanks


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Different stylesheets called on runtime?

2003-01-23 Thread Geoff Howard
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Different stylesheets called on runtime?
>
>
>
> Thanks for the quick and helpfull response.
>
> Thats the answer I kind of expected and feared most. That means for me:
> Getting comfortable with actions.

Well, the good news is that in my opinion (and experience) actions are about
as easy as it gets when extending cocoon.  There's only one method to
implement,
and the only contract you need to code for is to return null if the action
fails
and return a Map of the key-value pairs you need to reference in the sitemap
if
the action is successful. (or any empty map if you don't need to reference
values
in the sitemap).

Ask some specific questions here about what problems you have getting
started.

Geoff Howard

>
> Cheers
> Jonny



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Xindice in Cocoon

2003-01-23 Thread Perry Molendijk
It appears to me that what you are trying to do is transform an XML file to
HTML and use information in 'gs.xml' to apply display rules. Currently you
use the document() function to import gs.xml, to replace this you could do
this in the sitemap


 
  
  
 
 
 


this would result in something like this


  
xml from gs.xml
  
  
xml from otherFile.xml
  


to which you can than apply any XSL. In your case you would need to import
gs.xsl into html.xsl.


Perry

- Original Message -
From: "leona s" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 10:03 AM
Subject: Xindice in Cocoon


> Hi All,
>
> I have a Cocoon application using several XML files that
> I would like to put into Xindice. I asked on the XSL list about
> calling Xindice directly from XSL statements, but that doesn't
> appear to be possible.
>
> I know that people have made Cocoon and Xindice work
> together, but all the examples I have seen (cocooncenter,org,
> cocoonwiki) may be using older versions of Cocoon, because the
> changes to the sitemap don't reflect the version of the sitemap I have.
> I am using C 2.0.4/Tomcat 4.1.12/JDK 1.3.1/WinXP Pro.
>
> As a simple example, I have:
>
>   
> 
> 
> 
> 
>   
>
> gs.xml contains some basic application XML, such as "page"s and "menu"s.
> gs.xsl contains the "business rules" of the application, that cause
> different
>data to be displayed, depending on the current user, current page, etc.
> There
>   also may be other transforms following this one.
> html.xsl transforms the XML data into HTML for output.
>
> Currently, I read in my XML data in gs.xsl using the XSL document()
> function, and
> would like to be reading from Xindice instead.
> Can anyone tell me how to call Xindice from this pipeline? I would like to
> do something
> like get "/db/project/project1001" and set it to a parameter to be passed
> into gs.xsl.
>
> Thanks very much for any help.
> Leona Slepetis
>
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Carsten Ziegeler
Alex Romayev wrote:
> 
> I'm using a version from a couple of months ago.  I'll
> get the latest and try it again and let you know.
> 
Ok!

> While I have your attention, I've asked another
> question a couple of days ago about getting parameter
> values from the request.  Could you take a look at it,
> I'm pasting it below:
> 
Clever! :)

> 
> Hi,
> 
> I'm looking for help in how to extract parameter
> values using SessionTransformer.
> 
> My uri looks like this:
> 
> myaction?item=1&item=2&item=3
> 
> The SessionTransformer generates the following path:
> 
> 
>   cinclude:parameters>
> 
>   item
>   1
> 
>   
> 
> 
> My goal is to turn this into the following xml:
> 
> 
>  1
>  2
>  3
> 
> 
> 
> Two questions:
> 
> 1. SessionTransformer javadoc says: This output has
> the namespace of the CIncludeTransformer to use it as
> input for a  command.  I don't
> quite understand how I would make use of CIclude
> transformer.
This is only handy *if* you need the cinclude transformer
to include additional content. So it's not of use
for you (in this context).

> 
> 2. I've tried doing the following:
> 
>xmlns:session="http://cocoon.apache.org/session/1.0";
> 
>  
> xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
> 
>xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> context="request" 
>   
> path="/parametervalues/cinclude:parameters/cinclude:parameter[cinc
> lude:name='item']/cinclude:value"/>
> 
> 
> So that I could later transform it to the xml I need,
> but I get the following error:
> 
>  "Prefix must resolve to a namespace: cinclude"
> 
You can make a 
and you will see all the xml outputted by the request context.

You can use 
and you get the parameters as described above. All your items
will then have the cinclude namespace, you have to filter
them in a stylesheet or custom component.

HTH
Carsten

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 3:55 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: .Net port of Cocoon

> Hi Luca,
>
> >Hmm I never restart the Servlet container (not the VM) for debugging.
> Could you explain how you debug your Cocoon app?

By looking at the log files (you can easily configure them via logkit.xconf) and by 
using views (meaning: looking at the output of
intermediate steps in the pipeline).

Granted, there is no debugger in Cocoon, but no need to re-start the container either.

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 05:57 PM, Konstantin Piroumian wrote:
> From: "Christian Haul" <[EMAIL PROTECTED]>
> > On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote:
> 
> input module.
> 
> Chris, how could you forget about it? ;)

Dear me! But it looks like I successfully missionated so far ;-)

Cheers.

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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Konstantin Piroumian
From: "Christian Haul" <[EMAIL PROTECTED]>
> On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I have  for example an XSP and various XSLs for the output (of the data
> > from that XSP).
> > In the -part it should/is deceided on runtime, which one of
the
> > XSLs to use for the output.
> >
> > Where do I have to manage that? I mean, how/where do I tell cocoon which
> > XSL to use(In the sitemap?Can the xsp handle that?)?
>
> Yes, the sitemap is the place. No, XSP cannot handle that. You need to
> use one of the sitemap components for that: a matcher, a selector, or
> an action.

and an input module.

>
> If the stylesheet depends on the request this is pretty easy. If it
> depends on calculations or data retrieved inside the XSP, you may need
> to write your own action, selector, matcher.

input module.

Chris, how could you forget about it? ;)

--
  Konstantin

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

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




RE: .Net port of Cocoon

2003-01-23 Thread Sylvain.Thevoz
Hi Luca,

>Hmm I never restart the Servlet container (not the VM) for debugging.
Could you explain how you debug your Cocoon app?


Regards
Sylvain


-Message d'origine-
De: Luca Morandini [mailto:[EMAIL PROTECTED]]
Date: jeudi, 23. janvier 2003 15:41
À: [EMAIL PROTECTED]
Objet: RE: .Net port of Cocoon


Andreas,

wait a second:

> I mean no memory leaks in the VM

Memory leaks ? I've got applications in operation for months without having a single 
hiccup... aren't you confusing the Servlet
container (say, a buggy verisone of Tomcat) with Cocoon ?


> no complicated superlong configration files

That's the con side of flexibility: I hate those GUI-based administration tools that 
don't allow you to do much.


> no VM restarting for debugging

Hmm I never restart the Servlet container (not the VM) for debugging: could you 
please explain ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Andreas Bednarz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: .Net port of Cocoon
>
>
> Hi Derek,
>
> thank you very much for your comment. Yes, it is all true and I am not a
> friend of MS closed sources in any way. We know Java very well but you
> hardly get peoply who can do the real thinks with Cocoon and can develop
> a real application ... not just some test cases and handler forms. In
> thins case a .NET application would not be easier to handle too, but
> maybe there is some company who can provide a Cocoon Clone which is as
> easy to use as PHP. I mean no memory leaks in the VM, no complicated
> superlong configration files, no VM restarting for debugging etc
>
> Andreas Bednarz, Germany
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Konstantin Piroumian
From: "Andreas Bednarz" <[EMAIL PROTECTED]>

> Hi Derek,
>


> no VM restarting for debugging etc

My advice won't help you much if you decided not to use Cocoon, but I hope
it would be helpful for other users. (Would be also fine if somebody could
write an this on Wiki).

To avoid restarting the VM (the servlet container) you should do the
following:
- use a container that supports hot deploy or so (I've used Tomcat 4.0.4
and 4.1). You can use it for development only and then deploy some other
server.
- configure your servlet container to load application located in
/build/cocoon/webapp. In case of Tomcat you should a context in
/conf/server.xml pointing to that location, e.g.:

  


- and at last build Cocoon using
build.[bat|sh]-Dinclude.webapp.libs=true webapp-local. This will build
Cocoon and will place all classes in WEB-INF/classes so Tomcat could track
changes.

Now you can compile your classes and Tomcat will reload the application as
soon as modifications are detected (it requires about a 1min).

--
  Konstantin

>
> Andreas Bednarz, Germany
>
>
> Am Don, 2003-01-23 um 14.30 schrieb Derek Hohls:
> > An interesting concept that, "too open-source"...?
> > Is this perhaps the opposite of Microsoft't "too closed-source"??
> >
> > And, all due respect here, Andreas, but what you are saying is that
> > your programming team (a) does not know Java and (b) does not want
> > to learn it - which is fine, of course, but lets not pretend t!hat the
> > alternative choices are significantly easier or better.  It's simple
> > not
> > true - but let's not debate that here.  What is true is that Cocoon as
> > a platform builds and, yes, relies on the strength of a number of
> > components (but its modular design means that it is not, of course,
> > dependant on them).  Some may see this as a weakness.  I, and
> > I am sure others, see this as a strength.  If you want to put all your
> > eggs in one basket good luck
> >
> > PS and in the software world there are no guarantees. period.
> > >>> [EMAIL PROTECTED] 23/01/2003 02:43:46 >>>
> > Hi There,
> >
> > I would completely enjoy using a port of cocoon for .NET. Following
> > the
> > newsgroup since 6 month there are many topics inside cocoon that could
> > be mastered by .NET easilly without the overhead you have in java.
> > Hope
> > that somebody will start such a project and gives us a framework
> > consisting of an XMl/XSL/Filter mechanisms with a smaller footprint.
> > We
> > also decided not to use cocoon. It is simply to complicated to fit a
> > new
> > team prgrammer and the whole thing is too "open source". Nobody is
> > really responsible, nobody can guarantee that next releases will give
> > exactly the same API ... Of course this is one weakness of Microsoft
> > too, but an independant programmer team could make a strong competitor
> > to cocoon :-)
> >
> > Andreas Bednarz
> > education-one GmbH
> >
> > Am Mit, 2003-01-22 um 21.45 schrieb arjen stolk:
> > > I have heard some rumours about a .Net port of Cocoon. What about
> > it?
> > >
> > > One of the reasons that our company has decided not to use Cocoon is
> > the
> > > fact that we have an existing webapplication with MS COM+ components
> > running
> > > on IIS.  We didn't see any possibility to incorporate a java
> > application
> > > server (although maybe Atlanta ServletExec might do the job) and
> > integrate
> > > the COM components as well. Since the application makes extensive
> > use of xml
> > > and xsl Cocoon would have given us the possibility to throw out a
> > lot of
> > > code and make the whole application more configurable, as to adapt
> > to
> > > customers desires.
> > >
> > > But alas.
> > >
> > > Having a .Net version of Cocoon would make a difference.
> > >
> > >
> > > Sincerily, Arjen Stolk
> > >
> > >
> > >
> > >
> > >
> > -
> > > Please check that your question  has not already been answered in
> > the
> > > FAQ before posting.
> > 
> > >
> > > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> > --
> > Andreas Bednarz <[EMAIL PROTECTED]>
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> > --
> > This message has been scanned for viruses and dangerous content by
> > MailScanner, and is believed to be clean.
> >
> > "The CSIR exercises no editorial control over E-mail messages and/or
> > attachments thereto/links referred to therein originating in the
> > organisation and the views in this message/attachments thereto are
> > therefore not necessarily those of the C

Re: Different stylesheets called on runtime?

2003-01-23 Thread Johannes . Becker

Thanks for the quick and helpfull response.

Thats the answer I kind of expected and feared most. That means for me:
Getting comfortable with actions.

Cheers
Jonny




This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+-->
| |   Christian Haul |
| |   <[EMAIL PROTECTED]|
| |   rmstadt.de>|
| |  |
| |   01/23/03 03:27 PM  |
| |   Please respond to  |
| |   cocoon-users   |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]
  |
  |   cc:  
  |
  |   Subject:  Re: Different stylesheets called on runtime?   
  |
  
>--|




On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have  for example an XSP and various XSLs for the output (of the data
> from that XSP).
> In the -part it should/is deceided on runtime, which one of
the
> XSLs to use for the output.
>
> Where do I have to manage that? I mean, how/where do I tell cocoon which
> XSL to use(In the sitemap?Can the xsp handle that?)?

Yes, the sitemap is the place. No, XSP cannot handle that. You need to
use one of the sitemap components for that: a matcher, a selector, or
an action.

If the stylesheet depends on the request this is pretty easy. If it
depends on calculations or data retrieved inside the XSP, you may need
to write your own action, selector, matcher.

 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. 

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. 

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




Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Ivelin Ivanov
Excelent document.

I would like to suggest a slight improvement.
The Model part can be improved quite a bit if you use a DOM object directly
instead of a JavaBean wrapper.

more specificly:

1) You can remove ArtistBean altogether
2) Store the empty id structure in a static file or local constant
3) Override the getForm() method in the action
4) Use the JXPath DOMContainer to load the xml file(constant)
5) Use the DOMContainer object as the Form model
6) When you need to reference a node in the model, instead of using the DOM
API, you can directly use XPath,
like this: getForm().getValue("/@id")


If you follow these steps and I am not totally wrong, you should be able to
cut about 50 lines from the sample.


-=Ivelin=-

- Original Message -
From: "Josema Alonso" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 2:42 AM
Subject: RE: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]


> Ouch...I forgot to include the URL. I'm sorry.
>
> http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice
>
> Thanks :)
>
> -Mensaje original-
> De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves, 23 de enero de 2003 4:24
> Para: [EMAIL PROTECTED]
> Asunto: Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]
>
>
>
> What is the URL?
>
> -=Ivelin=-
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: .Net port of Cocoon

2003-01-23 Thread Luca Morandini
Andreas,

wait a second:

> I mean no memory leaks in the VM

Memory leaks ? I've got applications in operation for months without having a single 
hiccup... aren't you confusing the Servlet
container (say, a buggy verisone of Tomcat) with Cocoon ?


> no complicated superlong configration files

That's the con side of flexibility: I hate those GUI-based administration tools that 
don't allow you to do much.


> no VM restarting for debugging

Hmm I never restart the Servlet container (not the VM) for debugging: could you 
please explain ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Andreas Bednarz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: .Net port of Cocoon
>
>
> Hi Derek,
>
> thank you very much for your comment. Yes, it is all true and I am not a
> friend of MS closed sources in any way. We know Java very well but you
> hardly get peoply who can do the real thinks with Cocoon and can develop
> a real application ... not just some test cases and handler forms. In
> thins case a .NET application would not be easier to handle too, but
> maybe there is some company who can provide a Cocoon Clone which is as
> easy to use as PHP. I mean no memory leaks in the VM, no complicated
> superlong configration files, no VM restarting for debugging etc
>
> Andreas Bednarz, Germany
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Steven Noels
Andreas Bednarz wrote:


thank you very much for your comment. Yes, it is all true and I am not a
friend of MS closed sources in any way. We know Java very well but you
hardly get peoply who can do the real thinks with Cocoon and can develop
a real application ... not just some test cases and handler forms. In
thins case a .NET application would not be easier to handle too, but
maybe there is some company who can provide a Cocoon Clone which is as
easy to use as PHP. I mean no memory leaks in the VM, no complicated
superlong configration files, no VM restarting for debugging etc


please keep in mind that the name 'Apache Cocoon' is protected, and that 
it will be up to the discretion of the Apache Cocoon PMC or the ASF 
board to let 'other projects' use it.

This doesn't say you are not allowed to port, it just says that you 
would not be able to use the name 'Apache Cocoon' without prior 
permission. Getting that permission could be tricky, or even more 
wicked, creating a subproject _inside_ Apache Cocoon to do a .Net port, 
could be a challenge, largely dependent on the community one could 
create around such an effort.


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Alex Romayev
Hi Carsten,

I'm using a version from a couple of months ago.  I'll
get the latest and try it again and let you know.

While I have your attention, I've asked another
question a couple of days ago about getting parameter
values from the request.  Could you take a look at it,
I'm pasting it below:


Hi,

I'm looking for help in how to extract parameter
values using SessionTransformer.

My uri looks like this:

myaction?item=1&item=2&item=3

The SessionTransformer generates the following path:


  cinclude:parameters>

  item
  1

  


My goal is to turn this into the following xml:


 1
 2
 3



Two questions:

1. SessionTransformer javadoc says: This output has
the namespace of the CIncludeTransformer to use it as
input for a  command.  I don't
quite understand how I would make use of CIclude
transformer.

2. I've tried doing the following:

http://cocoon.apache.org/session/1.0";

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

  http://apache.org/cocoon/include/1.0";
context="request" 
  
path="/parametervalues/cinclude:parameters/cinclude:parameter[cinclude:name='item']/cinclude:value"/>


So that I could later transform it to the xml I need,
but I get the following error:

 "Prefix must resolve to a namespace: cinclude"

Thanks,
-Alex

P.S. And the stack:

org.apache.cocoon.ProcessingException:
TransformerException:
javax.xml.transform.TransformerException: Prefix must
resolve to a namespace: cinclude:
javax.xml.transform.TransformerException: Prefix must
resolve to a namespace: cinclude
at
org.apache.cocoon.webapps.session.context.RequestSessionContext.streamXML(RequestSessionContext.java:635)
at
org.apache.cocoon.webapps.session.components.SessionManager.streamContextFragment(SessionManager.java:559)
at
org.apache.cocoon.webapps.session.transformation.SessionPreTransformer.startTransformingElement(SessionPreTransformer.java:191)
at
org.apache.cocoon.webapps.session.transformation.SessionPostTransformer.startTransformingElement(SessionPostTransformer.java:230)
at
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:333)
at
org.apache.cocoon.webapps.session.transformation.SessionPreTransformer.startElement(SessionPreTransformer.java:162)
at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:454)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:217)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:873)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:590)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:777)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:264)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:215)
at
org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:44)
at
org.apache.excalibur.xmlizer.impl.AbstractXMLizer.toSAX(AbstractXMLizer.java:102)
at
org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:94)
at
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:537)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:273)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
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.

calculate freememory and heapsize for given value of -Xmx

2003-01-23 Thread Peter Smink
Hello,
what is the best formula to use
for calculating the value of freememory and heapsize in cocoon.xconf
for a given value of -Xmx in order to achieve the best performance?

Peter Smink

[EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Andreas Bednarz
Hi Derek,

thank you very much for your comment. Yes, it is all true and I am not a
friend of MS closed sources in any way. We know Java very well but you
hardly get peoply who can do the real thinks with Cocoon and can develop
a real application ... not just some test cases and handler forms. In
thins case a .NET application would not be easier to handle too, but
maybe there is some company who can provide a Cocoon Clone which is as
easy to use as PHP. I mean no memory leaks in the VM, no complicated
superlong configration files, no VM restarting for debugging etc

Andreas Bednarz, Germany


Am Don, 2003-01-23 um 14.30 schrieb Derek Hohls:
> An interesting concept that, "too open-source"...?
> Is this perhaps the opposite of Microsoft't "too closed-source"??
> 
> And, all due respect here, Andreas, but what you are saying is that
> your programming team (a) does not know Java and (b) does not want
> to learn it - which is fine, of course, but lets not pretend t!hat the
> alternative choices are significantly easier or better.  It's simple
> not
> true - but let's not debate that here.  What is true is that Cocoon as
> a platform builds and, yes, relies on the strength of a number of
> components (but its modular design means that it is not, of course, 
> dependant on them).  Some may see this as a weakness.  I, and 
> I am sure others, see this as a strength.  If you want to put all your
> eggs in one basket good luck
>  
> PS and in the software world there are no guarantees. period.
> >>> [EMAIL PROTECTED] 23/01/2003 02:43:46 >>>
> Hi There,
> 
> I would completely enjoy using a port of cocoon for .NET. Following
> the
> newsgroup since 6 month there are many topics inside cocoon that could
> be mastered by .NET easilly without the overhead you have in java.
> Hope
> that somebody will start such a project and gives us a framework
> consisting of an XMl/XSL/Filter mechanisms with a smaller footprint.
> We
> also decided not to use cocoon. It is simply to complicated to fit a
> new
> team prgrammer and the whole thing is too "open source". Nobody is
> really responsible, nobody can guarantee that next releases will give
> exactly the same API ... Of course this is one weakness of Microsoft
> too, but an independant programmer team could make a strong competitor
> to cocoon :-)
> 
> Andreas Bednarz
> education-one GmbH
> 
> Am Mit, 2003-01-22 um 21.45 schrieb arjen stolk:
> > I have heard some rumours about a .Net port of Cocoon. What about
> it?
> > 
> > One of the reasons that our company has decided not to use Cocoon is
> the
> > fact that we have an existing webapplication with MS COM+ components
> running
> > on IIS.  We didn't see any possibility to incorporate a java
> application
> > server (although maybe Atlanta ServletExec might do the job) and
> integrate
> > the COM components as well. Since the application makes extensive
> use of xml
> > and xsl Cocoon would have given us the possibility to throw out a
> lot of
> > code and make the whole application more configurable, as to adapt
> to
> > customers desires.
> > 
> > But alas.
> > 
> > Having a .Net version of Cocoon would make a difference.
> > 
> > 
> > Sincerily, Arjen Stolk
> > 
> > 
> > 
> > 
> >
> -
> > Please check that your question  has not already been answered in
> the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
> -- 
> Andreas Bednarz <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> -- 
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean. 
> 
> "The CSIR exercises no editorial control over E-mail messages and/or 
> attachments thereto/links referred to therein originating in the 
> organisation and the views in this message/attachments thereto are 
> therefore not necessarily those of the CSIR and/or its employees. 
> The sender of this e-mail is, moreover, in terms of the CSIR's
> Conditions 
> of Service, subject to compliance with the CSIR's internal E-mail and 
> Internet Policy."
-- 
Andreas Bednarz <[EMAIL PROTECTED]>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Ivelin Ivanov


> Hi!
>
> I strongly believe in XForms, but the sample you pointed show that the use
> with Java Beans for DB connectivity and data validation is currently too
> complex.

I would argue that it is no more complex than doing the same with Struts.
Let alone plain JSP and classic controller Servlets.

> I am thinking in what will happen if every form will be code like
> the example in a huge application? What about changes in the large DB
> application?

I guess the sample is supposed to focus on showing how to use XMLForm with
Xindice.
If it is not making it clear that this is the one message it sends, then the
text should be revised.

>
> Can a generator build the Java Beans automatically what about the Action
> automatically generated? Maybe we can find the answer in this area.

Let's try to find it.
Josema proposed an answer in the XML db area.
We need another brave soul (maybe Antonio :) to show relational db usage.


Ivelin

>
> Please dont take this email in the wrong sense. I know this is a very new
> technology and you are doing your best effort to get it run under Cocoon.
>
> But maybe we can find another way to make it easier.
>
> If this is the currently way to work with the XForms with Db connectivity.
> I think many people will stay at the current model:
>
> XML Form + stylesheet + validation form + DB modular actions.
>
> Maybe we can find something similar.
>
> Best Regards,
>
> Antonio Gallardo.
>
> P.D: I know this is a cruel critic to the current work developed in this
> area. But I think it must to be told. Please dont take me bad. I strongly
> believe in Cocoon.
>
>
> Sorry
>
> Josema Alonso dijo:
> > Ouch...I forgot to include the URL. I'm sorry.
> >
> > http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice
> >
> > Thanks :)
> >
> > -Mensaje original-
> > De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> > Enviado el: jueves, 23 de enero de 2003 4:24
> > Para: [EMAIL PROTECTED]
> > Asunto: Re: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]
> >
> >
> >
> > What is the URL?
> >
> > -=Ivelin=-
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

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




Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I have  for example an XSP and various XSLs for the output (of the data
> from that XSP).
> In the -part it should/is deceided on runtime, which one of the
> XSLs to use for the output.
> 
> Where do I have to manage that? I mean, how/where do I tell cocoon which
> XSL to use(In the sitemap?Can the xsp handle that?)?

Yes, the sitemap is the place. No, XSP cannot handle that. You need to
use one of the sitemap components for that: a matcher, a selector, or
an action.

If the stylesheet depends on the request this is pretty easy. If it
depends on calculations or data retrieved inside the XSP, you may need
to write your own action, selector, matcher.

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. 

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




RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Carsten Ziegeler
Hi,

did you test the latest cvs version, because line 380 in
my source code cannot cause your problem?

Carsten

> -Original Message-
> From: Alex Romayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:38 AM
> To: [EMAIL PROTECTED]
> Subject: Portal bug? - Using SessionTransformer inside coplets
> 
> 
> I've run into a strange problem.  It seems like using
> SessionTransormer inside a coplet results in
> java.lang.NullPointerException.
> 
> Here is what I found:
> 1. If I run my coplet by invoking the coplet's uri
> directly everything works as expected.
> 2. If I invoke the coplet as part of a portal page
> using portal fw, it generates the exception.
> 3. I'm using session:getxml statements to get
> information from "request" context.  If I replace
> these statements with "dummy" data and _not_ have any
> of the session statements (I still have
> SessionTransformer in my pipeline, even though it
> doesn't actually do anything), everything works fine.
> 
> So it seems that for some reason using sesion:getxml
> from request context (or possibly other contexts -- I
> haven't tried) causes the excetion.
> 
> Please help, as this is a critical piece of my work!
> 
> Thanks,
> -Alex
> 
> Here is the stack trace:
> ERROR   (2003-01-22) 16:21.37:297  
> [core.portal-manager]
> (/cocoon/romayev/admin/write-result)
> Thread-8/CopletThread: Exception during processing of
> coplet: write-result
> org.apache.cocoon.ProcessingException: Failed to
> execute pipeline.: java.lang.NullPointerException
>   at
> org.apache.cocoon.components.source.impl.SitemapSource.toSAX(Sitem
> apSource.java:380)
>   at
> org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEn
> vironment.java:532)
>   at
> org.apache.cocoon.webapps.portal.components.CopletThread.run(Cople
> tThread.java:218)
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Different stylesheets called on runtime?

2003-01-23 Thread Johannes . Becker
Hi,

I have  for example an XSP and various XSLs for the output (of the data
from that XSP).
In the -part it should/is deceided on runtime, which one of the
XSLs to use for the output.

Where do I have to manage that? I mean, how/where do I tell cocoon which
XSL to use(In the sitemap?Can the xsp handle that?)?

Cheers
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Derek Hohls



An interesting concept that, "too open-source"...?
Is this perhaps the opposite of Microsoft't "too closed-source"??
And, all due respect here, Andreas, but what you are saying is that
your programming team (a) does not know Java and (b) does not want
to learn it - which is fine, of course, but lets not pretend t!hat the 

alternative choices are significantly easier or better.  It's simple 
not
true - but let's not debate that here.  What is true is that Cocoon 
as
a platform builds and, yes, relies on the strength of a number of
components (but its modular design means that it is not, of course, 
dependant on them).  Some may see this as a weakness.  I, 
and 
I am sure others, see this as a strength.  If you want to put all your 

eggs in one basket good luck
 
PS and in the software world there are no guarantees. period.
>>> [EMAIL PROTECTED] 23/01/2003 02:43:46 
>>>Hi There,I would completely enjoy using a port of cocoon 
for .NET. Following thenewsgroup since 6 month there are many topics inside 
cocoon that couldbe mastered by .NET easilly without the overhead you have 
in java. Hopethat somebody will start such a project and gives us a 
frameworkconsisting of an XMl/XSL/Filter mechanisms with a smaller 
footprint. Wealso decided not to use cocoon. It is simply to complicated to 
fit a newteam prgrammer and the whole thing is too "open source". Nobody 
isreally responsible, nobody can guarantee that next releases will 
giveexactly the same API ... Of course this is one weakness of 
Microsofttoo, but an independant programmer team could make a strong 
competitorto cocoon :-)Andreas Bednarzeducation-one 
GmbHAm Mit, 2003-01-22 um 21.45 schrieb arjen stolk:> I have 
heard some rumours about a .Net port of Cocoon. What about it?> > 
One of the reasons that our company has decided not to use Cocoon is the> 
fact that we have an existing webapplication with MS COM+ components 
running> on IIS.  We didn't see any possibility to incorporate a 
java application> server (although maybe Atlanta ServletExec might do the 
job) and integrate> the COM components as well. Since the application 
makes extensive use of xml> and xsl Cocoon would have given us the 
possibility to throw out a lot of> code and make the whole application 
more configurable, as to adapt to> customers desires.> > 
But alas.> > Having a .Net version of Cocoon would make a 
difference.> > > Sincerily, Arjen Stolk> > 
> > > 
-> 
Please check that your question  has not already been answered in 
the> FAQ before posting. > 
> To unsubscribe, e-mail: 
<[EMAIL PROTECTED]>> For additional commands, 
e-mail:   <[EMAIL PROTECTED]>-- Andreas 
Bednarz 
<[EMAIL PROTECTED]>-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



RE: Xindice in Cocoon

2003-01-23 Thread Josema Alonso
I'd say current docs on eXist are better than the ones on Xindice.
Anyway, I'd also say Xindice is much more powerful. For example, I think
eXist does not have XUpdate support yet.

In case you want to use Xindice in XSPs, I adapted the logicsheet so you can
use it with Xindice. you can find a HowTo at Cocoon Wiki.

Best.


-Mensaje original-
De: Boris Althaus [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 23 de enero de 2003 10:46
Para: [EMAIL PROTECTED]
Asunto: Re: Xindice in Cocoon


Hallo Leona,

you could try to use eXist, which is based on Xindice and has a logicsheet
für inserting and retrieving xml-documents and there is a quit good
documentation, how to integrate into cocoon.

Boris
- Original Message -
From: leona s
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 3:03 AM
Subject: Xindice in Cocoon


Hi All,

I have a Cocoon application using several XML files that
I would like to put into Xindice. I asked on the XSL list about
calling Xindice directly from XSL statements, but that doesn't
appear to be possible.

I know that people have made Cocoon and Xindice work
together, but all the examples I have seen (cocooncenter,org,
cocoonwiki) may be using older versions of Cocoon, because the
changes to the sitemap don't reflect the version of the sitemap I have.
I am using C 2.0.4/Tomcat 4.1.12/JDK 1.3.1/WinXP Pro.

As a simple example, I have:

  




  

gs.xml contains some basic application XML, such as "page"s and "menu"s.
gs.xsl contains the "business rules" of the application, that cause
different
   data to be displayed, depending on the current user, current page, etc.
There
  also may be other transforms following this one.
html.xsl transforms the XML data into HTML for output.

Currently, I read in my XML data in gs.xsl using the XSL document()
function, and
would like to be reading from Xindice instead.
Can anyone tell me how to call Xindice from this pipeline? I would like to
do something
like get "/db/project/project1001" and set it to a parameter to be passed
into gs.xsl.

Thanks very much for any help.
Leona Slepetis





-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




RE: Portal bug? - Using SessionTransformer inside coplets

2003-01-23 Thread Alex Romayev
Hi Matthew,

I'm using cocoon:/ protocol.

-Alex

--- Matthew Langham <[EMAIL PROTECTED]> wrote:
> Which protocol are you using to call the coplets?
> 
> a) cocoon:/
> 
> b) cocoon:raw:/
> 
> If you want to pass request parameters on to the
> coplet then you need to
> make sure you are using a). See also:
>
http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=cocoon%3Araw&q=b
> 
> Matthew
> 
> --
> Open Source Group   Cocoon { Consulting,
> Training, Projects }
>
=
> Matthew Langham, S&N AG, Klingenderstrasse 5,
> D-33100 Paderborn
> Tel:+49-5251-1581-30  [EMAIL PROTECTED] -
> http://www.s-und-n.de
>
-
> Cocoon book:
>  
>
http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
> Weblogs:
>   http://radio.weblogs.com/0103021/
>   http://www.oreillynet.com/weblogs/author/1014
>
=
> 
> 
> -Original Message-
> From: Alex Romayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:38 AM
> To: [EMAIL PROTECTED]
> Subject: Portal bug? - Using SessionTransformer
> inside coplets
> 
> 
> I've run into a strange problem.  It seems like
> using
> SessionTransormer inside a coplet results in
> java.lang.NullPointerException.
> 
> Here is what I found:
> 1. If I run my coplet by invoking the coplet's uri
> directly everything works as expected.
> 2. If I invoke the coplet as part of a portal page
> using portal fw, it generates the exception.
> 3. I'm using session:getxml statements to get
> information from "request" context.  If I replace
> these statements with "dummy" data and _not_ have
> any
> of the session statements (I still have
> SessionTransformer in my pipeline, even though it
> doesn't actually do anything), everything works
> fine.
> 
> So it seems that for some reason using sesion:getxml
> from request context (or possibly other contexts --
> I
> haven't tried) causes the excetion.
> 
> Please help, as this is a critical piece of my work!
> 
> Thanks,
> -Alex
> 
> Here is the stack trace:
> ERROR   (2003-01-22) 16:21.37:297
> [core.portal-manager]
> (/cocoon/romayev/admin/write-result)
> Thread-8/CopletThread: Exception during processing
> of
> coplet: write-result
> org.apache.cocoon.ProcessingException: Failed to
> execute pipeline.: java.lang.NullPointerException
>   at
>
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.j
> ava:380)
>   at
>
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.
> java:532)
>   at
>
org.apache.cocoon.webapps.portal.components.CopletThread.run(CopletThread.ja
> va:218)
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> 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.
> 
> 
> 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. 

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




Is FileGenerator doing URL encoding?

2003-01-23 Thread Rui Leal
Hello !!

I'm using cocoon 2.0.4 to develop a prototype of a small webapp which has
Tamino XML Server as data repository.

Tamino allows me to pass a HTTP xquery (using x-machine) to the database..
like this

http://databasehost/tamino/databasename/col?_xquery=input()/*

So .. with cocoon i'm doing a pipeline which passes a xquery to tamino ...
like this ..

http://localhost:8080/cocoon/db_xquery=col/input()/*

and the pipeline is ..


  http://databasehost/tamino/databasename/{2}?_{1}={3}"/>
  
  


So until now everything is fine ... BUT imagine i want a query like this ..

http://localhost:8080/cocoon/db_xquery=col/input()/root[@id = 'something']

(NOTICE THE WHITESPACE between @id and = and 'something' ... i don´t really
need the whitespace but imagine i DO need it ..)

Cocoon does not encode the URL on the FileGenerator ... so it passes an
not-encoded URL String to tamino, which tamino refuses because it isn't
encoded (it has whitespaces and not %20's)

Or is the problem with the Matcher not encoding the parameter ??

Is this reported somehere ?
Any help please ?

Thanks !

[--] Rui Pedro Leal
[--] [EMAIL PROTECTED]
[--] [EMAIL PROTECTED]
[--] ICQ: 318173


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: .Net port of Cocoon

2003-01-23 Thread Andreas Bednarz
Hi There,

I would completely enjoy using a port of cocoon for .NET. Following the
newsgroup since 6 month there are many topics inside cocoon that could
be mastered by .NET easilly without the overhead you have in java. Hope
that somebody will start such a project and gives us a framework
consisting of an XMl/XSL/Filter mechanisms with a smaller footprint. We
also decided not to use cocoon. It is simply to complicated to fit a new
team prgrammer and the whole thing is too "open source". Nobody is
really responsible, nobody can guarantee that next releases will give
exactly the same API ... Of course this is one weakness of Microsoft
too, but an independant programmer team could make a strong competitor
to cocoon :-)

Andreas Bednarz
education-one GmbH

Am Mit, 2003-01-22 um 21.45 schrieb arjen stolk:
> I have heard some rumours about a .Net port of Cocoon. What about it?
> 
> One of the reasons that our company has decided not to use Cocoon is the
> fact that we have an existing webapplication with MS COM+ components running
> on IIS.  We didn't see any possibility to incorporate a java application
> server (although maybe Atlanta ServletExec might do the job) and integrate
> the COM components as well. Since the application makes extensive use of xml
> and xsl Cocoon would have given us the possibility to throw out a lot of
> code and make the whole application more configurable, as to adapt to
> customers desires.
> 
> But alas.
> 
> Having a .Net version of Cocoon would make a difference.
> 
> 
> Sincerily, Arjen Stolk
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
-- 
Andreas Bednarz <[EMAIL PROTECTED]>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLForm Xindice Howto added to Wiki [please, att. Ivelin]

2003-01-23 Thread Josema Alonso
Hello.

First of all, thanks for commenting on this.
Comments inline...


>I strongly believe in XForms, but the sample you pointed show that the use
>with Java Beans for DB connectivity and data validation is currently too
>complex. I am thinking in what will happen if every form will be code like
>the example in a huge application? What about changes in the large DB
>application?
I know. I'm with you. It is a pain to code everything like this, but I
really prefer to code logic in Java and not in XML. After all you finally
build a MVC miniapp this way.

>Can a generator build the Java Beans automatically what about the Action
>automatically generated? Maybe we can find the answer in this area.
I think that's the way to go. There was some talk on this list a while ago
but we need more work on this.

>Please dont take this email in the wrong sense. I know this is a very new
>technology and you are doing your best effort to get it run under Cocoon.
Of course, I do not :-)
It's very instructive.

>But maybe we can find another way to make it easier.
I hope so.

>I think many people will stay at the current model:
>XML Form + stylesheet + validation form + DB modular actions.
I proposed different approaches in my conclusions. Another one would be to
have modular DB actions for Xindice-like databases. But that would not solve
the problem.
Maybe a totally different approach would be needed.

I do not like my solution that much, but this is the simple one I've found
by now. I think we need to start working on it putting things out of the
Action and maybe later out of the model.
I've been thinking about some XML descriptors that could build the Action
and Bean autmatically and/or maybe a transformation phase after that for the
DB actions...I'm not sure...I should learn more to accomplish something like
that...

Again, thanks for your comments. I really appreciate them.

Best.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




.Net port of Cocoon

2003-01-23 Thread arjen stolk
I have heard some rumours about a .Net port of Cocoon. What about it?

One of the reasons that our company has decided not to use Cocoon is the
fact that we have an existing webapplication with MS COM+ components running
on IIS.  We didn't see any possibility to incorporate a java application
server (although maybe Atlanta ServletExec might do the job) and integrate
the COM components as well. Since the application makes extensive use of xml
and xsl Cocoon would have given us the possibility to throw out a lot of
code and make the whole application more configurable, as to adapt to
customers desires.

But alas.

Having a .Net version of Cocoon would make a difference.


Sincerily, Arjen Stolk




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Sharing components between Cocoon and servlets

2003-01-23 Thread Jeremy Aston
Hi,

I am looking to get some more documentation together on integrating servlets
and Cocoon and would like to know if anyone has got any production
experience of sharing contexts and thus components.  I want to have a
servlet running in the same web app context as Cocoon and have access to the
same resources (e.g. db connection pool) as Cocoon.  I have considered a
couple fo ways of implementing thus such as creating a new set of objects
that reference the same component xconf or using a parent component manager.
I have also noted a couple of threads on the lists that talk about using
request actions to pass session data to servlets.  The only thing about this
is that it means the servlet is called via the sitemap and I am not
concerned about this happening.

If anyone has any views or experience on how they think this is best done
then let me know and in return for saving me some investigation time I will
add details to the docs.

Thanks very much

Jeremy

<>-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


RE: Castor Transformer

2003-01-23 Thread Michael Homeijer
Hi Harald,

Have a look at: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993 
it contains a pretty nasty workaround for the problem and works with
castor-0.9.4. If you find a better solution please let us know.

Right now I am working on a new version of the transformer that can use
input and outputmodules to store and retrieve to objects to marshall or the
unmarshalled objects.

HTH,
Michael

-Original Message-
From: Harald Wehr
To: [EMAIL PROTECTED]
Sent: 23-1-2003 12:18 
Subject: Castor Transformer

I am using a Cocoon-Developer-Snapshot from October this year.
The Castor Transformer i fetched from CVS. Unfortunately this class uses

a lot of deprecated stuff. Additionally i have to serialize a 
java-object stored in my xmlform.

So i tried to write my own transformer.  The code is attached here. The 
Castor Marshaller needs a Sax-ContentHandler that I get by calling the 
variable "contentHandler", available in the transformer.

Following Exception do I get. Do I have to set the Sax-Parser in the 
Properties? When I set the Sax-Parser from cocoon.xconf additionally in 
the properties i get a ClassNotFoundException.

When i replace the deprecated Classes from the CVS-transformer same 
things happen.

Any help is appreciated.

Harald



Exception
org.xml.sax.SAXException: System property org.xml.sax.parser not
specified
at org.xml.sax.helpers.ParserAdapter.(ParserAdapter.java:104)
at org.exolab.castor.xml.Marshaller.(Unknown Source)
at 
de.mobiharz.cocoon.transformation.MobiHarzXMLFormTransformer.startElemen
t(MobiHarzXMLFormTransformer.java:45)
at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(Abs
tractSAXTransformer.java:340)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPars
er.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abstrac
tXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespac
eBinder.java:874)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinde
r.java:591)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDocumentFragmentScannerImpl.java:747)
...


--Transformer-
package de.mobiharz.cocoon.transformation;

import org.apache.cocoon.components.xmlform.Form;
import org.apache.cocoon.transformation.XMLFormTransformer;
import org.apache.commons.jxpath.JXPathContext;
import org.exolab.castor.xml.Marshaller;
import org.xml.sax.AttributeList;
import org.xml.sax.Attributes;
import org.xml.sax.HandlerBase;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;

import de.mobiharz.model.buchungen.Unterkunft;


public class MobiHarzXMLFormTransformer extends XMLFormTransformer {

public void startElement(
String namespaceURI,
String localName,
String qName,
Attributes attributes)
throws SAXException {
if (namespaceURI.equals("") &&
localName.equals("xmlformergebnis")) {

try {
String formName = attributes.getValue("xmlform-id");
String objectPath = attributes.getValue("xpath");
Form form = Form.lookup(objectModel, formName);

JXPathContext context =
JXPathContext.newContext(form.getModel());

Object o = context.getValue(objectPath);
//  System.out.println(o);
super.startElement(
"",
"xmlformergebnis",
"xmlformergebnis",
attributes);

Marshaller marshaller = new Marshaller(contentHandler);
Unterkunft u = (Unterkunft)o;

marshaller.marshal(o);

} catch (Exception e) {
e.printStackTrace();
super.startElement(
"",
"xmlformergebnis",
"xmlformergebnis",
attributes);
}
} else
super.startElement(namespaceURI, localName, qName,
attributes);
}

public void endElement(String namespaceURI, String localName, String
qName)
throws SAXException {

if ((namespaceURI != null)) {

if (namespaceURI.equals("") &&
localName.equals("xmlformergebnis"))
super.endElement("", "xmlformergebnis",
"xmlformergebnis");
else
super.endElement(namespaceURI,
localName, qName);
}
}

}



-
Please check that your question  has not already been answered in the
FAQ before posting. 

Castor Transformer

2003-01-23 Thread Harald Wehr
I am using a Cocoon-Developer-Snapshot from October this year.
The Castor Transformer i fetched from CVS. Unfortunately this class uses 
a lot of deprecated stuff. Additionally i have to serialize a 
java-object stored in my xmlform.

So i tried to write my own transformer.  The code is attached here. The 
Castor Marshaller needs a Sax-ContentHandler that I get by calling the 
variable "contentHandler", available in the transformer.

Following Exception do I get. Do I have to set the Sax-Parser in the 
Properties? When I set the Sax-Parser from cocoon.xconf additionally in 
the properties i get a ClassNotFoundException.

When i replace the deprecated Classes from the CVS-transformer same 
things happen.

Any help is appreciated.

Harald



Exception
org.xml.sax.SAXException: System property org.xml.sax.parser not specified
at org.xml.sax.helpers.ParserAdapter.(ParserAdapter.java:104)
at org.exolab.castor.xml.Marshaller.(Unknown Source)
at 
de.mobiharz.cocoon.transformation.MobiHarzXMLFormTransformer.startElement(MobiHarzXMLFormTransformer.java:45)
at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:340)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
...


--Transformer-
package de.mobiharz.cocoon.transformation;

import org.apache.cocoon.components.xmlform.Form;
import org.apache.cocoon.transformation.XMLFormTransformer;
import org.apache.commons.jxpath.JXPathContext;
import org.exolab.castor.xml.Marshaller;
import org.xml.sax.AttributeList;
import org.xml.sax.Attributes;
import org.xml.sax.HandlerBase;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;

import de.mobiharz.model.buchungen.Unterkunft;


public class MobiHarzXMLFormTransformer extends XMLFormTransformer {

	public void startElement(
		String namespaceURI,
		String localName,
		String qName,
		Attributes attributes)
		throws SAXException {
		if (namespaceURI.equals("") && localName.equals("xmlformergebnis")) {

	try {
		String formName = attributes.getValue("xmlform-id");
		String objectPath = attributes.getValue("xpath");
		Form form = Form.lookup(objectModel, formName);

		JXPathContext context =
			JXPathContext.newContext(form.getModel());

		Object o = context.getValue(objectPath);
//System.out.println(o);
		super.startElement(
			"",
			"xmlformergebnis",
			"xmlformergebnis",
			attributes);

		Marshaller marshaller = new Marshaller(contentHandler);
		Unterkunft u = (Unterkunft)o;

		marshaller.marshal(o);

	} catch (Exception e) {
		e.printStackTrace();
		super.startElement(
			"",
			"xmlformergebnis",
			"xmlformergebnis",
attributes);
		}
	} else
		super.startElement(namespaceURI, localName, qName, attributes);
}

public void endElement(String namespaceURI, String localName, String qName)
	throws SAXException {

	if ((namespaceURI != null)) {

		if (namespaceURI.equals("") && localName.equals("xmlformergebnis"))
		super.endElement("", "xmlformergebnis", "xmlformergebnis");
			else
super.endElement(namespaceURI, localName, qName);
		}
	}

}



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



xindice XMLObject and cocoon

2003-01-23 Thread Yury Mikhienko
Hi all!

How I can use the xindice XMLObject in cocoon2.0.4  XMLDBSource reader (may be via 
#query)?

Thanx for advise.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Problem with an xsp->java transformation

2003-01-23 Thread Ducrocq, Henri
Hi,

I'm currently trying to run Cocoon 2.0.3 under Weblogic 6.0sp1, with Xalan
2.3.1 and Xerces 2.0, and I have the exception shown below when I try to
display any XSP page.

The problem apparently occurs when trying to transform the .xsp file using
the transformation defined in the following xsl file:
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/com
ponents/language/markup/xsp/java/xsp.xsl?rev=1.9.2.1&content-type=text/vnd.v
iewcvs-markup

The problem seems related only to the non-xsp tags, somewhere in that
section:
http://apache.org/xsp')]">

Can anyone help?

Thanks
Henri

+++ Start
javax.xml.transform.TransformerException: java.lang.NullPointerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1234)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3235)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.NullPointerException
at
org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:313)
at
org.apache.xalan.templates.XUnresolvedVariable.execute(XUnresolvedVariable.j
ava:166)
at
org.apache.xpath.VariableStack.getGlobalVariable(VariableStack.java:420)
at org.apache.xpath.operations.Variable.execute(Variable.java:170)
at
org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:177)
at
org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:311)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:177)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:422)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:422)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:422)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:27
9)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:422)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
710)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2251)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2077)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1179)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3235)
at java.lang.Thread.run(Thread.java:484)
+++ End

This electronic message contains information from Halifax Cetelem Credit Ltd
which may be privileged or confidential. The information is intended to be
for the use of the individual(s) or entity named above. If you are not the
intended recipient be aware that any disclosure, copying, distribution or
use of the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone or email (to
the numbers or address above) immediately.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Xindice or eXist

2003-01-23 Thread conrad
Hi

As in topic which of this two do you recommend to use with Cocoon
I'm interested in stability and performance
The plans are to use a lot of rather docs about 20-50 kb each
and about 50 concurent users.

--
Best Regards
Conrad

[EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Xindice in Cocoon

2003-01-23 Thread Boris Althaus



Hallo Leona,
 
you could try to use eXist, which is based on 
Xindice and has a logicsheet für inserting and retrieving xml-documents and 
there is a quit good documentation, how to integrate into cocoon.
 
Boris

  - Original Message - 
  From: 
  leona s 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 23, 2003 3:03 
  AM
  Subject: Xindice in Cocoon
  Hi All,I have a Cocoon application using several XML 
  files thatI would like to put into Xindice. I asked on the XSL list 
  aboutcalling Xindice directly from XSL statements, but that 
  doesn'tappear to be possible.I know that people have made Cocoon 
  and Xindice worktogether, but all the examples I have seen 
  (cocooncenter,org,cocoonwiki) may be using older versions of Cocoon, 
  because thechanges to the sitemap don't reflect the version of the sitemap 
  I have.I am using C 2.0.4/Tomcat 4.1.12/JDK 1.3.1/WinXP Pro.As a 
  simple example, I have:      
      
      
      
    
  gs.xml contains some basic application XML, such as 
  "page"s and "menu"s.gs.xsl contains the "business rules" of the 
  application, that causedifferent   data to be displayed, 
  depending on the current user, current page, etc.There  also may 
  be other transforms following this one.html.xsl transforms the XML data 
  into HTML for output.Currently, I read in my XML data in gs.xsl using 
  the XSL document()function, andwould like to be reading from Xindice 
  instead.Can anyone tell me how to call Xindice from this pipeline? I would 
  like todo somethinglike get "/db/project/project1001" and set it to a 
  parameter to be passedinto gs.xsl.Thanks very much for any 
  help.Leona 
  Slepetis-Please 
  check that your question  has not already been answered in theFAQ 
  before posting. To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail:   <[EMAIL PROTECTED]>


Re: Antwort: i18n more!!!!!!!!! :(

2003-01-23 Thread Konstantin Piroumian
RE: Antwort: i18n more! :(Take a look at the i18n samples XSP page
(/samples/i18n/simple.xsp) source. There is a form field where you can enter
text in any (supported by Java/Xalan) encoding and then get it back on the
same page (see Hello Tomcat! message).

I've checked that for all the present in the sample locales, including
Chinese, Japanese and Armenian (which are quite good at finding out any
Unicode issues).

--
  Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 07:18
Subject: RE: Antwort: i18n more! :(


Thanks a lot, i applied it with encoding=utf-8 but it just can display some
international character!!! some cant!!
so .. do you know why and how to fix it??
i changed the encoding to ISO-8859-1 but i can not display any thing!!! does
cocoon 2.0.4 not support for this encoding???
Thanks a lot for help!!
Gia Dinh


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 18:02
To: [EMAIL PROTECTED]
Subject: Antwort: i18n more! :(




Hello!
Do you use this Action in your pipeline?


  

If not, try to insert it before(!!!) your matchers, where the requests come
in. (inside the pipeline!!!)
cheers
manfred




[EMAIL PROTECTED] am 22.01.2003 11:59:04
Bitte antworten an [EMAIL PROTECTED]@inet
An:  [EMAIL PROTECTED]
Kopie:
Thema:   i18n more! :(




Hi all
I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the
ressponse always displays error characters and all CR are deleted!! ???
i dont know how to fix it as wella s sometimes it keeps  on confuses
between {../../locale} and {../../../locale}when upgrading cocoon
version??? why? i am nearly dont know how and why those bug, althpough
i read all cocoon examples carefully??
cant you all tell me how to fix those bugs???
All your information are very appreciated!!
thanks a lot much!
GD









-
Please check that your question  has not already been answered in the
FAQ before posting. 
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. 

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




  1   2   >