Re: How can i access one child sitemap from another child sitemap.

2002-03-19 Thread Manish

Yes it works..
Thanks Vadim...

Regards,
Manish
- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 6:52 PM
Subject: RE: How can i access one child sitemap from another child sitemap.


> > From: Manish [mailto:[EMAIL PROTECTED]]
> > 
> > Hello Vadim,
> > 
> > Thanks for your reply...
> > 
> > Let me put the problem in different way. The project I am working on,
> has
> > different modules, I have two concern...
> > 
> > 1) I want to decide the next page (navigation of the site) from site
> map
> > only
> > (Not even from action class, as it will require change in class to
> change
> > the navigation).
> > 
> > 2) As the project has lots of screen, I want separate sitemap for each
> > module. Thus I am required 
> > to move from one site map to other site map frequently.
> > 
> > please see the sitmaps below, how can I get redirected to dssdetail
> match of
> > dss sitemap???
> > 
> > your guidance will be highly appreciable as i am in trouble in
> managing the
> > sitemap.
> > 
> > Note: Please refer attached query.txt file if you find difficulty in
> format
> > of mail.
> > 
> > Regards,
> > Manish Jain
> > 
> > 
> > my Main site map contains these two pipeline to mount child sitmap,
> apart
> > from other common
> > 
> > pipeline
> > 
> > --
> > main site map
> > --
> > 
> >  
> >   
> >  
> > 
> > 
> >  
> >> check-reload="yes"/>
> >  
> > 
> > 
> > 
> > ---
> > Transaction sitemap
> > ---
> > 
> >
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> >From what I see that will be simple:
> 
> 
> 
> And, to be honest, question has nothing to do with Cocoon, but with HTML
> and how links works.
> 
> Regards,
> Vadim
> 
> > 
> ...
> > 
> > 
> > 
> ...
> > 
> > 
> > 
> > ---
> > dss sitemap
> > ---
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> -
> 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: Problem in

2002-03-19 Thread Nicola Ken Barozzi

From: "Bartomeu Adrover" <[EMAIL PROTECTED]>

> Hello, I use cocoon 2.01 with apache tomcat 4.01 in windows nt. I
> construct an page with varius xml source with  tag:
> 
> 
>  
>  
>  
> 
> 
>  
>   
>   
>  
> 
> 
>
> The problem is the  part . This
> part get the informatio from other server and sometimes this service is
> unaviable. If I consult the url direcly "http://www.uib.es."; when is
> unavible all the pipeline return an error.
> I thing a solution: use an pipeline that request this url and if an
> error happens then process the xml error code and return an usefull xml
> for my first pipeline:
> 
>
>
src="http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCI&p_ub
i_codalf=SCIIncidencies"/>
>
>  
>
>
>
> 
> 
>
>   
> When I request the second pipeline I recive the correct xml, but in the
> first pipeline continue return an error (url unaviable).
> Have one any idea?.

Sorry for the very simple question, but are you sure that all the other
files in the first pipeline are really available?
Without  in the first pipeline do
you still get an error?
Are you sure you're not getting cached stuff?

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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: Pipeline Matching Problems

2002-03-19 Thread Derek Hohls

Vadim

The pipeline is invoked via a 'normal' type of call, e.g.
docs/samples/forms/form_chemicals?id=123

(similar to the forms/employee sample)

The actions are the same as those in the existing (sample) sitemap:
  
   
   
   
  

and actionset

 
  
   
   
   
  
 

As you can see, I have not written any new code here... how/
where do I put the debug code in or check the result of the action
as nothing seems to be happening?

Sorry for seeming obtuseness... this looks like it should be a 
simple task to carry out but I still confused as to why the basics
are not working.

Thansk for the patience

Derek


>>> [EMAIL PROTECTED] 19/03/2002 10:31:32 >>>
I don't know how you are invoking this pipeline (what URL looks like),
and what actions are in the set, but is should choose an action based
on
the (IIRC, never used this ;) cocoon-action request parameter - its
value should match action name. Then chosen action is being executed.
Put some debug output into your action to see that it is being
executed.
Check the result of the action also - it should not be null.

Vadim

> -Original Message-
> From: Derek Hohls [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 1:54 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: Pipeline Matching Problems
> 
> Vadim
> 
> I apreciate the reply. Now I can see that at least my grammar is OK.
:-)
> 
> However, I am no nearer to finding out *why* the code does not work
at
> all i.e. why the XSP page is not even compiled?
> 
> I *have* tried to model my code on the forms/employee sample; apart
from
> some differences in the display (eg. no JavaScript) they are very
> similar.  How do I go about finding why no action can be / is
processed?
> 
> Thanks
> Derek
> 
> D Hohls
> CSIR Environmentek
> PO Box 17001
> Kwa-Zulu Natal
> South Africa
> 4013
> 
> 
> >>> [EMAIL PROTECTED] 03/19/02 16:53 PM >>>
> Your action set do not succeed, so pipeline is not being executed.
> 
> IIRC, action set will succeed when it is possible to choose at least
one
> action from the set and that action returns not null Map (it could
be
> empty, but not null).
> 
> See also forms/employee in the sample sitemap.
> 
> Vadim
> 
> > From: Derek Hohls [mailto:[EMAIL PROTECTED]] 
> >
> > Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat
> >
> > I am trying to get a small database working.  After failing to
> > get it working in a submap, I have tried moving all the relevant
> > files over to the Cocoon samples directory.
> >
> > When I have:
> >
> >
> > > src="docs/samples/forms/form_chemicals.xsp"/>
> >
> >
> >
> >
> > all is well, and the output from the database output displays as
> > expected.
> >
> > But when I try and use actions:
> >
> >
> >  
> > > value="context://docs/samples/forms/desc_chemicals.xml" />
> > > src="docs/samples/forms/form_chemicals.xsp"/>
> >
> >
> >  
> >
> >
> > I get the error message in the root log:
> >
> > WARN(2002-03-19) 15:03.20:994   [root]
> > (/cocoon/docs/samples/forms/form_chemicals)
> >  HttpProcessor[8080][4]/CocoonServlet: The resource was not found
> > org.apache.cocoon.ResourceNotFoundException:
> > No pipeline matched request: /docs/samples/forms/form_chemicals
> >
> > The action set and descriptor all exist in the relevant
directories,
> > and the action set is also
> > defined in the relevant sitemap entry.  The Tomcat work directory
was
> > clean.
> >
> > Any clues as to why pattern is not matched?
> >
> > Thanks
> > Derek
> >
> > PS I have tried changing:
> > http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> 
> 
> 
>
-
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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]>




Problem in

2002-03-19 Thread Bartomeu Adrover

Hello, I use cocoon 2.01 with apache tomcat 4.01 in windows nt. I
construct an page with varius xml source with  tag:


 
 
 


 
  
  
 


   
The problem is the  part . This
part get the informatio from other server and sometimes this service is
unaviable. If I consult the url direcly "http://www.uib.es."; when is
unavible all the pipeline return an error.
I thing a solution: use an pipeline that request this url and if an
error happens then process the xml error code and return an usefull xml
for my first pipeline:

   
   http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCI&p_ubi_codalf=SCIIncidencies"/>

 
   

   


   
  
When I request the second pipeline I recive the correct xml, but in the
first pipeline continue return an error (url unaviable).
Have one any idea?.
Tanks.


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



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


Create a xml file newly after getting user data.

2002-03-19 Thread Sreenivasan N.

Hi all

Can any one help me out in creating an XML document in cocoon. The files 
has to be generated newly and then data has to get appended in some form.

I do not know java. Kindly give me a step by step instruction for 
configuration the cocoon to do this job.

With regards

vasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 232

Email. [EMAIL PROTECTED]
Per: [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: How to put user data into SunspotDemoPortal-session at logon time

2002-03-19 Thread Carsten Ziegeler

It is in the scratchpad area in the current CVS of Cocoon.

Have a look at the documentation how to get the CVS version
of Cocoon.

Carsten

> -Original Message-
> From: yuryx [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to put user data into SunspotDemoPortal-session at
> logon time
>
>
> Sorry by question, but what is sunRise-auth action ?
> Where this action deploy?
>
> Yury.
>
>
> Carsten Ziegeler wrote:
>
> >Hi Peter,
> >
> >all your pipelines are wrapped (secured) by the sunRise-auth action
> >with the handler and the application parameter, for example the
> >sunLets:
> >
> >  
> > 
> >  value="sunspotdemohandler"/>
> >  value="sunspotdemo"/>
> >
> > 
> >  src="sunspotdemo/resources/auth/sunlet-{1}.xml"/>
> > 
> > 
> >
> >  
> >
> >The sunRise-auth action provides several key/value pairs that can be used
> >inside the sitemap like the ID of the current user, the role etc.
> >So your example could look like this:
> >
> > 
> >  value="sunspotdemohandler"/>
> >  value="sunspotdemo"/>
> >
> >  
> >
> >   
> >   
> >
> >HTH
> >
> >Carsten
> >
> >>-Original Message-
> >>From: Baer Peter [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, March 19, 2002 1:40 PM
> >>To: cocoon-users
> >>Subject: Re: RE: How to put user data into SunspotDemoPortal-session at
> >>logon time
> >>
> >>
> >>Thanks for the reply. It works. We can get the parameter out of the
> >>session now.
> >>
> >>However, what we actually need is a single value which we can pass as a
> >>parameter to the following generator or transformer.
> >>
> >>
> >>
> >>
> >>
> >>Thus we could generate user-specific menus at runtime. Eg, the options
> >>in drop-down menu could depend on the region the user belongs to.
> >>
> >>Merging the session XML and the application XML is not appropriate for
> >>us, as we don't want to have them transformed before the XSP statements
> >>in the resulting XML are evaluated.
> >>
> >>Any clues?
> >>
> >>Thanks in advance!
> >>
> >>-pb-
> >>
> >>
> >>
> >>
> >> >Everything is already in the session, stored in a so called
> >> >SessionContext
> >> >named "sunRise".
> >> >
> >> >The "authentication document" defined for the portal which actually
> >> >does the login of a user delivers these information to sunRise which
> >> >then stores them into the session. These information are usually
> >> >the user ID, the first name, the last name etc.
> >> >
> >> >By adopting this resource, you can store more infos in the session.
> >> >
> >> >You can get them in an XML processing pipeline by using the sunShine
> >> >transformer. So you can write an XML file, like this:
> >> >
> >> >http://cocoon.apache.org/sunshine/1.0";;>
> >> >
> >> >
> >> >
> >> >If you now build a sunLet reading this XML document and using the
> >> >sunShine
> >> >transformer, you will get all information stored in the session about
> >> >the current user.
> >> >
> >> >As the info is stored as an XML tree in the session by varying the
> >> >"path" attribute of "getxml" you can get one specific info, like:
> >> >   
> >> >
> >> >HTH
> >> >Carsten
> >>
> >>
> >>
> >> >
> >> >> Peter Baer wrote:
> >> >> > We need the user name and some user specific information in the
> >> >>actual
> >> >> SunspotDemoPortal session.
> >> >> Our question is because the default session attributes (and their
> >> >> values) aren't particularly speeky.
> >> >> > How can we trigger the portal to add the user name and other
> >> >>specific
> >> >> information (like boolean flags) into the session?
> >> >> Or are there already some user informations in the session,
> inserted
> >> >>by
> >> >> the portal?
> >> >> > And if so, how are they named / how can we get them out?
> >> >>
> >>
> >>
> >>
> >>
> >>--
> >>+---+-+
> >>|  >>>  mailto:[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: How to put user data into SunspotDemoPortal-session at logontime

2002-03-19 Thread yuryx

Sorry by question, but what is sunRise-auth action ?
Where this action deploy?

Yury.
 

Carsten Ziegeler wrote:

>Hi Peter,
>
>all your pipelines are wrapped (secured) by the sunRise-auth action
>with the handler and the application parameter, for example the
>sunLets:
>
>  
>   
>
>
>   
>
>   src="sunspotdemo/resources/auth/sunlet-{1}.xml"/>
>   
>   
>
>  
>
>The sunRise-auth action provides several key/value pairs that can be used
>inside the sitemap like the ID of the current user, the role etc.
>So your example could look like this:
>
>   
>
>
>
>  
>  
>   
>   
>
>HTH
>
>Carsten
>
>>-Original Message-
>>From: Baer Peter [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, March 19, 2002 1:40 PM
>>To: cocoon-users
>>Subject: Re: RE: How to put user data into SunspotDemoPortal-session at
>>logon time
>>
>>
>>Thanks for the reply. It works. We can get the parameter out of the 
>>session now.
>>
>>However, what we actually need is a single value which we can pass as a 
>>parameter to the following generator or transformer.
>>
>>
>>  
>>
>>
>>Thus we could generate user-specific menus at runtime. Eg, the options 
>>in drop-down menu could depend on the region the user belongs to.
>>
>>Merging the session XML and the application XML is not appropriate for 
>>us, as we don't want to have them transformed before the XSP statements 
>>in the resulting XML are evaluated.
>>
>>Any clues?
>>
>>Thanks in advance!
>>
>>  -pb-
>>
>>
>>
>>
>> >Everything is already in the session, stored in a so called 
>> >SessionContext
>> >named "sunRise".
>> >
>> >The "authentication document" defined for the portal which actually
>> >does the login of a user delivers these information to sunRise which
>> >then stores them into the session. These information are usually
>> >the user ID, the first name, the last name etc.
>> >
>> >By adopting this resource, you can store more infos in the session.
>> >
>> >You can get them in an XML processing pipeline by using the sunShine
>> >transformer. So you can write an XML file, like this:
>> >
>> >http://cocoon.apache.org/sunshine/1.0";;>
>> >
>> >
>> >
>> >If you now build a sunLet reading this XML document and using the 
>> >sunShine
>> >transformer, you will get all information stored in the session about
>> >the current user.
>> >
>> >As the info is stored as an XML tree in the session by varying the
>> >"path" attribute of "getxml" you can get one specific info, like:
>> >   
>> >
>> >HTH
>> >Carsten
>>
>>
>>
>> >
>> >> Peter Baer wrote:
>> >> > We need the user name and some user specific information in the 
>> >>actual
>> >> SunspotDemoPortal session.
>> >> Our question is because the default session attributes (and their
>> >> values) aren't particularly speeky.
>> >> > How can we trigger the portal to add the user name and other 
>> >>specific
>> >> information (like boolean flags) into the session?
>> >> Or are there already some user informations in the session, inserted 
>> >>by
>> >> the portal?
>> >> > And if so, how are they named / how can we get them out?
>> >>
>>
>>
>>
>>
>>-- 
>>+---+-+
>>|  >>>  mailto:[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: RE: How to put user data into SunspotDemoPortal-session at logon time

2002-03-19 Thread Carsten Ziegeler

Hi Peter,

all your pipelines are wrapped (secured) by the sunRise-auth action
with the handler and the application parameter, for example the
sunLets:

  

 
 
   
 




  

The sunRise-auth action provides several key/value pairs that can be used
inside the sitemap like the ID of the current user, the role etc.
So your example could look like this:


 
 

  
   
   
   

HTH

Carsten

> -Original Message-
> From: Baer Peter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:40 PM
> To: cocoon-users
> Subject: Re: RE: How to put user data into SunspotDemoPortal-session at
> logon time
> 
> 
> Thanks for the reply. It works. We can get the parameter out of the 
> session now.
> 
> However, what we actually need is a single value which we can pass as a 
> parameter to the following generator or transformer.
> 
> 
>   
> 
> 
> Thus we could generate user-specific menus at runtime. Eg, the options 
> in drop-down menu could depend on the region the user belongs to.
> 
> Merging the session XML and the application XML is not appropriate for 
> us, as we don't want to have them transformed before the XSP statements 
> in the resulting XML are evaluated.
> 
> Any clues?
> 
> Thanks in advance!
> 
>   -pb-
> 
> 
> 
> 
>  >Everything is already in the session, stored in a so called 
>  >SessionContext
>  >named "sunRise".
>  >
>  >The "authentication document" defined for the portal which actually
>  >does the login of a user delivers these information to sunRise which
>  >then stores them into the session. These information are usually
>  >the user ID, the first name, the last name etc.
>  >
>  >By adopting this resource, you can store more infos in the session.
>  >
>  >You can get them in an XML processing pipeline by using the sunShine
>  >transformer. So you can write an XML file, like this:
>  >
>  >http://cocoon.apache.org/sunshine/1.0";;>
>  >
>  >
>  >
>  >If you now build a sunLet reading this XML document and using the 
>  >sunShine
>  >transformer, you will get all information stored in the session about
>  >the current user.
>  >
>  >As the info is stored as an XML tree in the session by varying the
>  >"path" attribute of "getxml" you can get one specific info, like:
>  >   
>  >
>  >HTH
>  >Carsten
> 
> 
> 
>  >
>  >> Peter Baer wrote:
>  >> > We need the user name and some user specific information in the 
>  >>actual
>  >> SunspotDemoPortal session.
>  >> Our question is because the default session attributes (and their
>  >> values) aren't particularly speeky.
>  >> > How can we trigger the portal to add the user name and other 
>  >>specific
>  >> information (like boolean flags) into the session?
>  >> Or are there already some user informations in the session, inserted 
>  >>by
>  >> the portal?
>  >> > And if so, how are they named / how can we get them out?
>  >>
> 
> 
> 
> 
> -- 
> +---+-+
> |  >>>  mailto:[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]>




[HELP]Exception JspGenerator.generate()

2002-03-19 Thread Peter Schwenke

I haven't played with this, but I see you can set your JSP Engine in
cocoon.xconf. 

  
  


  

I checked the source and this is used by JSPEngineImpl.java.

 ...Peter
[EMAIL PROTECTED] writes:
 > Description:org.apache.cocoon.ProcessingException: Exception
 > JspGenerator.generate(): java.lang.ClassNotFoundException:
 > org.apache.jasper.servlet.JspServlet
 > 
 > Hi,
 > 
 > I am trying to produce XML out of using JSP with Cocoon 2 and
 > JspGenerator. It works with tomcat 3.2 but when i try to do this with
 > visual age, i have the following error : 
 > Original exception : java.lang.ClassNotFoundException:
 > org.apache.jasper.servlet.JspServlet 
 > java.lang.Throwable(java.lang.String) 
 > java.lang.Exception(java.lang.String) 
 > java.lang.ClassNotFoundException(java.lang.String) 
 > java.lang.Class java.net.URLClassLoader.findClass(java.lang.String) 
 > java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
 > boolean) 
 > java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) 
 > byte []
 > org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(java.lang.Stri
 > ng, javax.servlet.http.HttpServletRequest,
 > javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext) 
 > void org.apache.cocoon.generation.JspGenerator.generate() 
 > boolean
 > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(org.a
 > pache.cocoon.environment.Environment) 
 > boolean
 > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(org.
 > apache.cocoon.environment.Environment) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.matchN10452(org.apache.cocoon.sitemap
 > .SitemapRedirector, org.apache.cocoon.environment.Environment,
 > org.apache.cocoon.components.pipeline.StreamPipeline,
 > org.apache.cocoon.components.pipeline.EventPipeline, boolean,
 > java.util.List) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
 > .Environment, org.apache.cocoon.components.pipeline.StreamPipeline,
 > org.apache.cocoon.components.pipeline.EventPipeline, boolean) 
 > boolean
 > org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
 > .Environment) 
 > boolean
 > org.apache.cocoon.sitemap.Handler.process(org.apache.cocoon.environment.
 > Environment) 
 > boolean
 > org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.framework.com
 > ponent.ComponentManager, org.apache.cocoon.environment.Environment,
 > java.lang.String, java.lang.String, boolean, boolean) 
 > boolean
 > org.apache.cocoon.sitemap.SitemapManager.process(org.apache.cocoon.envir
 > onment.Environment) 
 > boolean
 > org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environme
 > nt) 
 > void
 > org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpS
 > ervletRequest, javax.servlet.http.HttpServletResponse) 
 > void
 > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
 > javax.servlet.ServletResponse) 
 > void
 > org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.co
 > re.Request, org.apache.tomcat.core.Response) 
 > void
 > org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Req
 > uest, org.apache.tomcat.core.Response) 
 > void
 > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(o
 > rg.apache.tomcat.service.TcpConnection, java.lang.Object []) 
 > void org.apache.tomcat.service.TcpConnectionThread.run() 
 > void java.lang.Thread.run() 
 > 
 > after a hard  work, i installed the library in Visual age without
 > success.
 > Now i just the servlet.jar, webserver.jar, xml.jar, xml-apis.jar,
 > jasper.jar in the library of tomcat 3.2 and the other jar are in the
 > webapps of cocoon (Cf. cocoon.war 2)
 > 
 > Thanks in advance for any advice!
 > Loic Gourmelon 
 > 
 > 
 >  
 > __
 > ifrance.com, l'email gratuit le plus complet de l'Internet !
 > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
 > http://www.ifrance.com/_reloc/email.emailif
 > 
 > 
 > 
 > -
 > 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]>




Serving PDF's

2002-03-19 Thread Phil Blake

Hi all,

I want to serve PDF's - nothing special, no generation or 
transformation - simply returning an existing pdf from a request.

So... I added the following to my sitemap:


 


I have a pile of PDF's in the /resources/pdf directory, however, none of 
them are successfully served.

Only a small amount of the original  PDF is transfered - ie. it's a 200K 
doc but less than 50K ends up at the browser and as far as acrobat is 
concerned - it's damaged.

What silly thing have I missed?

Thanks in advance,

Phil


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




Problems in running Cocoon on JBoss

2002-03-19 Thread George Mu

Hi all,

I've already installed JBoss-2.2.2-Tomcat-3.2.2 ans Cocoon-2.0.1, and make
the changes exatly like the instructions as below:



Installing on JBoss 2.2.2 with Tomcat 3.2.2

In order to get Cocoon running you have to install Xerces as default XML
parser for JBoss.

Stop the server if it is running.
Remove the following files from the jboss/lib directory
crimson.jar
jaxp.jar
xml.jar
Remove the following files from the tomcat/lib directory
jaxp.jar
parser.jar
Copy xerces-XXX.jar from cocoon/lib to jboss/lib
Change jboss/bin/run.sh

 [...]
# Add the XML parser jars and set the JAXP factory names
# Crimson parser JAXP setup(default)
# Change it to Xerces for C2
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xerces-XXX.jar
# Remove the following two lines
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
mentBuilderFactoryImpl
JAXP="$JAXP -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAX
ParserFactoryImpl"
[...]

=

But I still got the exception while I started JBoss using run_with_tomcat as
below:

[Service Control] Registered with server
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at java.lang.Class.getConstructors0(Native Method)
at java.lang.Class.getConstructors(Unknown Source)
at
com.sun.management.jmx.Introspector.testCompliance(Introspector.java:95)
at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:507)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
at org.jboss.Main.(Main.java:187)
at org.jboss.Main$1.run(Main.java:121)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:117)
Exception in thread "main" [Default] java.lang.NoClassDefFoundError:
javax/xml/parsers/DocumentBuilderFactory

=

The xerces-XXX.jar in Cocoon-2.0.1 is xerces-1.4.4.jar, and I checked this
file and found there is no "org/xml/sax/SAXException" class. However,
another jar file in cocoon-2.0.1\lib\core\xml-apis.jar has SAXException
class, so I added this jar into classpath. Unfortunatly, I got another error
as below:

[Container factory]
Deploying:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/tomcat-
test.ear
[Container factory] The encoding "Cp1252" is not supported.:0:0
[Container factory] org.xml.sax.SAXParseException: The encoding "Cp1252" is
not supported.
[Container factory] at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
[Container factory] at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.
java:546)
[Container factory] at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
[Container factory] at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
[Container factory] at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:19
5)
[Container factory] at javax.xml.parsers.DocumentBuilder.parse(Unknown
Source)
[Container factory] at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)
[Container factory] at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
[Container factory] at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:117)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFa
ctory.java:275)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:415)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory] at
org.jboss.ejb.AutoDeployer.startServic

Re: XSP and well formed ...

2002-03-19 Thread Ivan Rubin

Yes. There's a well formed way.

Thanks a lot Vadim,

Vadim Gritsenko wrote:

>>From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
>>
>>Sorry. I should add a line to the example...
>>Ivan Rubin wrote:
>>
>>
>>>Not valid XML, but are not we working with a flow of events?
>>>
> 
> Reminder: XSP is and XML file => Must be well formed.
> 
> 
> 
>>>Isn't hierarchy the last tabu?
>>>
>>>String operator=null;
>>>while( recordset.next() ) {
>>>  if( operator == null ||
>>> !operator.equalsIgnoreCase( recordset.operator() ) ) {
>>>if( operator != null ) {
>>>   // trigger an 'operator' closing tag
>>>}
>>>
>>>// trigger an 'operator' opening tag
>>>
>>* operator = recordset.operator();
>>
>>
>>>  }
>>>
>>>  // trigger data events associated with this operator
>>>}
>>>
>>>if( operator != null ) {
>>>  // trigger an operator closing tag
>>>}
>>>
> 
> This looks like grouping by operator. But if recordset.operator()
> returns null, you have a problem (not properly closed 'operator' tag).
> 
> Why not:
> 
> boolean f = false;
> while (f || recordset.next()) {
>   f = false;
>   String operator = recordset.operator();
>   // trigger an 'operator' opening tag
> 
>   while ((f = recordset.next()) &&
> operator.equals(recordset.operator())) {
> f = false;
> // trigger data events associated with this operator
>   }
> 
>   // trigger an operator closing tag
> }
> 
> This will be well-formed.
> 
> 
> 
>>>I understand the error serverpages generator's error.
>>>I think the logic is ok, and common.
>>>I can do this with sax.
>>>There's a workaround to do it with xsp?
>>>
> 
> Yep. SAX content handler is available. Check out XSP page's generate
> Java code.
> 
> 
> 
>>>Don't get angry with me Vadim, I try to do my best.
>>>
> 
> I'm not.
> 
> Take care,
> Vadim
> 
> 
>>>Thanks,
>>>
>>>Vadim Gritsenko wrote:
>>>
>>>
>From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
>
>Hello,
>
>I need to open and close tags arbitrarily while iterating through
>
> a
> 
>record set.
>
> does not work, as
>,
>
>
This is (obviously) not valid XML. Hence, the error.




>and I have to do that over the basis of conditionals, and in
>
> different
> 
>places.
>
>the logicsheet does not even generate the .java file. The log says
>
>
that


>xsp:content must be terminated with an /xsp:content tag, but thats
>
>
ok...


>I don't find a reason for the xsp generator not to process my
>logicsheet. It's the logic that's going to put the things in
>
> order.
> 
Please elaborate why you think that you need this before I suggest
workaround for you.

Vadim



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



-
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 and well formed ...

2002-03-19 Thread Vadim Gritsenko

> From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
> 
> Sorry. I should add a line to the example...
> Ivan Rubin wrote:
> 
> > Not valid XML, but are not we working with a flow of events?

Reminder: XSP is and XML file => Must be well formed.


> > Isn't hierarchy the last tabu?
> >
> > String operator=null;
> > while( recordset.next() ) {
> >   if( operator == null ||
> >  !operator.equalsIgnoreCase( recordset.operator() ) ) {
> > if( operator != null ) {
> >// trigger an 'operator' closing tag
> > }
> >
> > // trigger an 'operator' opening tag
> 
> * operator = recordset.operator();
> 
> >   }
> >
> >   // trigger data events associated with this operator
> > }
> >
> > if( operator != null ) {
> >   // trigger an operator closing tag
> > }

This looks like grouping by operator. But if recordset.operator()
returns null, you have a problem (not properly closed 'operator' tag).

Why not:

boolean f = false;
while (f || recordset.next()) {
  f = false;
  String operator = recordset.operator();
  // trigger an 'operator' opening tag

  while ((f = recordset.next()) &&
operator.equals(recordset.operator())) {
f = false;
// trigger data events associated with this operator
  }

  // trigger an operator closing tag
}

This will be well-formed.


> > I understand the error serverpages generator's error.
> > I think the logic is ok, and common.
> > I can do this with sax.
> > There's a workaround to do it with xsp?

Yep. SAX content handler is available. Check out XSP page's generate
Java code.


> > Don't get angry with me Vadim, I try to do my best.

I'm not.

Take care,
Vadim

> > Thanks,
> >
> > Vadim Gritsenko wrote:
> >
> >>> From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
> >>>
> >>> Hello,
> >>>
> >>> I need to open and close tags arbitrarily while iterating through
a
> >>> record set.
> >>>
> >>>  does not work, as
> >>> ,
> >>>
> >>
> >> This is (obviously) not valid XML. Hence, the error.
> >>
> >>
> >>
> >>> and I have to do that over the basis of conditionals, and in
different
> >>> places.
> >>>
> >>> the logicsheet does not even generate the .java file. The log says
> >>>
> >> that
> >>
> >>> xsp:content must be terminated with an /xsp:content tag, but thats
> >>>
> >> ok...
> >>
> >>> I don't find a reason for the xsp generator not to process my
> >>> logicsheet. It's the logic that's going to put the things in
order.
> >>>
> >>
> >> Please elaborate why you think that you need this before I suggest
> >> workaround for you.
> >>
> >> Vadim
> >>
> >>
> >>> 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: Subsitemap in another directory

2002-03-19 Thread Luca Morandini

Lars,

I guess you were searching for something like this...


 
  
 


which, by the way, is contained in the Official Cocoon FAQ.

Best regards,

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


> -Original Message-
> From: Lars Trieloff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 11:15 PM
> To: [EMAIL PROTECTED]
> Subject: Subsitemap in another directory
>
>
> Hello,
> is there a way to mount a subsitemap which is not in the cocoon directory?
> Imagine a directory structure such as following:
>
> webapps
> |myapp
> ||mycocoon
> |||docs
> |||styles
> |||mycocoon.xmap
> |cocoon
>
> Is it possible to mount this sitemap in a way like this:
> uri-prefix="myapp"
>src="../myapp/mycocoon"
>check-reload="yes"/>
>
> In my webapp I would like to include cocoon support without providing an
> own copy of cocoon or forcing the user to copy files into the cocoon
> directory structure.
>
> Lars Trieloff
>
>
> -
> 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: Subsitemap in another directory

2002-03-19 Thread Ivan Rubin

map:mount has a 'src' attribute that acomplishes that, as you wrote.

Lars Trieloff wrote:

> Hello,
> is there a way to mount a subsitemap which is not in the cocoon directory?
> Imagine a directory structure such as following:
> 
> webapps
> |myapp
> ||mycocoon
> |||docs
> |||styles
> |||mycocoon.xmap
> |cocoon
> 
> Is it possible to mount this sitemap in a way like this:
>uri-prefix="myapp"
>   src="../myapp/mycocoon"
>   check-reload="yes"/>
> 
> In my webapp I would like to include cocoon support without providing an 
> own copy of cocoon or forcing the user to copy files into the cocoon 
> directory structure.
> 
> Lars Trieloff
> 
> 
> -
> 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]>




Subsitemap in another directory

2002-03-19 Thread Lars Trieloff

Hello,
is there a way to mount a subsitemap which is not in the cocoon directory?
Imagine a directory structure such as following:

webapps
|myapp
||mycocoon
|||docs
|||styles
|||mycocoon.xmap
|cocoon

Is it possible to mount this sitemap in a way like this:


In my webapp I would like to include cocoon support without providing an 
own copy of cocoon or forcing the user to copy files into the cocoon 
directory structure.

Lars Trieloff


-
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 and well formed ...

2002-03-19 Thread Ivan Rubin

Sorry. I should add a line to the example...
Ivan Rubin wrote:

> Not valid XML, but are not we working with a flow of events?
> Isn't hierarchy the last tabu?
> 
> String operator=null;
> 
> while( recordset.next() ) {
>   if( operator == null ||
>  !operator.equalsIgnoreCase( recordset.operator() ) ) {
> if( operator != null ) {
>// trigger an 'operator' closing tag

> }
> 
> // trigger an 'operator' opening tag

* operator = recordset.operator();

>   }
> 
>   // trigger data events associated with this operator
> }
> 
> if( operator != null ) {
>   // trigger an operator closing tag
> }
> 
> I understand the error serverpages generator's error.
> I think the logic is ok, and common.
> I can do this with sax.
> There's a workaround to do it with xsp?
> 
> Don't get angry with me Vadim, I try to do my best.
> 
> Thanks,
> 
> Vadim Gritsenko wrote:
> 
>>> From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
>>>
>>> Hello,
>>>
>>> I need to open and close tags arbitrarily while iterating through a
>>> record set.
>>>
>>>  does not work, as
>>> ,
>>>
>>
>> This is (obviously) not valid XML. Hence, the error.
>>
>>
>>
>>> and I have to do that over the basis of conditionals, and in different
>>> places.
>>>
>>> the logicsheet does not even generate the .java file. The log says
>>>
>> that
>>
>>> xsp:content must be terminated with an /xsp:content tag, but thats
>>>
>> ok...
>>
>>> I don't find a reason for the xsp generator not to process my
>>> logicsheet. It's the logic that's going to put the things in order.
>>>
>>
>> Please elaborate why you think that you need this before I suggest
>> workaround for you.
>>
>> Vadim
>>
>>
>>> 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]>
>>
>>
> 
> 
> 
> -
> 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 and well formed ...

2002-03-19 Thread Ivan Rubin

Not valid XML, but are not we working with a flow of events?
Isn't hierarchy the last tabu?

String operator=null;

while( recordset.next() ) {
   if( operator == null ||
  !operator.equalsIgnoreCase( recordset.equipo() ) ) {
 if( operator != null ) {
// trigger an 'operator' closing tag
 }

 // trigger an 'operator' opening tag
   }

   // trigger data events associated with this operator
}

if( operator != null ) {
   // trigger an operator closing tag
}

I understand the error serverpages generator's error.
I think the logic is ok, and common.
I can do this with sax.
There's a workaround to do it with xsp?

Don't get angry with me Vadim, I try to do my best.

Thanks,

Vadim Gritsenko wrote:

>>From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
>>
>>Hello,
>>
>>I need to open and close tags arbitrarily while iterating through a
>>record set.
>>
>> does not work, as
>>,
>>
> 
> This is (obviously) not valid XML. Hence, the error.
> 
> 
> 
>>and I have to do that over the basis of conditionals, and in different
>>places.
>>
>>the logicsheet does not even generate the .java file. The log says
>>
> that
> 
>>xsp:content must be terminated with an /xsp:content tag, but thats
>>
> ok...
> 
>>I don't find a reason for the xsp generator not to process my
>>logicsheet. It's the logic that's going to put the things in order.
>>
> 
> Please elaborate why you think that you need this before I suggest
> workaround for you.
> 
> Vadim
> 
> 
>>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]>
> 
> 



-
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 and well formed ...

2002-03-19 Thread Vadim Gritsenko

> From: Ivan Rubin [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> I need to open and close tags arbitrarily while iterating through a
> record set.
> 
>  does not work, as
> ,

This is (obviously) not valid XML. Hence, the error.


> and I have to do that over the basis of conditionals, and in different
> places.
> 
> the logicsheet does not even generate the .java file. The log says
that
> xsp:content must be terminated with an /xsp:content tag, but thats
ok...
> 
> I don't find a reason for the xsp generator not to process my
> logicsheet. It's the logic that's going to put the things in order.

Please elaborate why you think that you need this before I suggest
workaround for you.

Vadim

> 
> 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: Generator already set. You can only select one Generator

2002-03-19 Thread Ivan Rubin

yeah, but I only saw a serverpages generator taking input from a file, 
not from a stream. Anyway I don't know if that's what he wants to do...

Benjamin Grant wrote:

> Try an aggregation and use internal pipelines to create the intermediary 
> output...?
> 
> 
> On Tuesday 19 March 2002 12:58 pm, you wrote:
> 
>>Heya,
>>
>>  I'm trying to do something like this (in sketchy psudocode):
>>
>>
>>..generate a xsp file...
>>
>>
>>
>>..use "foo-generate-bar-{1}" as the src and generate html from the
>>generated xsp..
>>
>>
>>
>>And I'm getting the error in the subject line.
>>
>>So, quick question: before I go and start debugging, can I have that setup?
>>
>>Basically:
>>
>>file.xml + file.xsl = file.xsp
>>
>>file.xsp + file2.xsl = file.html
>>
>>- or -
>>
>>(file.xml + file.xsl) + file2.xsl = file.html
>>
>>
>>Am I making any sense?  Is this possible the way I'm trying to do it or is
>>there another method?
>>
>>-Tom
>>
> 
> 
> Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> Content-Transfer-Encoding: 7bit
> Content-Description: 
> 
> 
> -
> 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 and well formed ...

2002-03-19 Thread Ivan Rubin

Hello,

I need to open and close tags arbitrarily while iterating through a 
record set.

 does not work, as
,

and I have to do that over the basis of conditionals, and in different 
places.

the logicsheet does not even generate the .java file. The log says that 
xsp:content must be terminated with an /xsp:content tag, but thats ok...

I don't find a reason for the xsp generator not to process my 
logicsheet. It's the logic that's going to put the things in order.

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: Generator already set. You can only select one Generator

2002-03-19 Thread Benjamin Grant


Try an aggregation and use internal pipelines to create the intermediary 
output...?


On Tuesday 19 March 2002 12:58 pm, you wrote:
> Heya,
>
>   I'm trying to do something like this (in sketchy psudocode):
>
> 
> ..generate a xsp file...
> 
>
> 
> ..use "foo-generate-bar-{1}" as the src and generate html from the
> generated xsp..
> 
>
>
> And I'm getting the error in the subject line.
>
> So, quick question: before I go and start debugging, can I have that setup?
>
> Basically:
>
> file.xml + file.xsl = file.xsp
>
> file.xsp + file2.xsl = file.html
>
> - or -
>
> (file.xml + file.xsl) + file2.xsl = file.html
>
>
> Am I making any sense?  Is this possible the way I'm trying to do it or is
> there another method?
>
> -Tom


Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: 7bit
Content-Description: 


-
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: Generator already set. You can only select one Generator

2002-03-19 Thread Ivan Rubin

you want to pick up an xml an put it into the pipeline, transform it and 
use the result (ing tree?) as an entry point for an xsp generator?


von Schwerdtner, Thomas (GXS, FPI) wrote:

> Heya,
> 
>   I'm trying to do something like this (in sketchy psudocode):
> 
> 
> ..generate a xsp file...
> 
> 
> 
> ..use "foo-generate-bar-{1}" as the src and generate html from the 
> generated xsp..
> 
> 
> 
> And I'm getting the error in the subject line.
> 
> So, quick question: before I go and start debugging, can I have that setup?
> 
> Basically:
> 
> file.xml + file.xsl = file.xsp

> 
> file.xsp + file2.xsl = file.html

 >

> - or -
> 
> (file.xml + file.xsl) + file2.xsl = file.html


this is the same plus one transformation



> 
> 
> Am I making any sense?  Is this possible the way I'm trying to do it or 
> is there another method?
> 
> -Tom
> 



-
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: Generator already set. You can only select one Generator

2002-03-19 Thread Vadim Gritsenko

"sketch" looks ok to me. May be you made an error while implementing it
with more details ;)

See "sub/" samples - it has something like this.

Vadim

-Original Message-
From: von Schwerdtner, Thomas (GXS, FPI)
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 19, 2002 3:58 PM
To: '[EMAIL PROTECTED]'
Subject: Generator already set. You can only select one Generator

Heya, 
  I'm trying to do something like this (in sketchy psudocode): 
 
..generate a xsp file... 
 
 
..use "foo-generate-bar-{1}" as the src and generate html from the
generated xsp.. 
 

And I'm getting the error in the subject line. 
So, quick question: before I go and start debugging, can I have that
setup? 
Basically: 
file.xml + file.xsl = file.xsp 
file.xsp + file2.xsl = file.html 
- or - 
(file.xml + file.xsl) + file2.xsl = file.html 

Am I making any sense?  Is this possible the way I'm trying to do it or
is there another method? 
-Tom 


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




Generator already set. You can only select one Generator

2002-03-19 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: Generator already set. You can only select one Generator





Heya,


  I'm trying to do something like this (in sketchy psudocode):



..generate a xsp file...




..use "foo-generate-bar-{1}" as the src and generate html from the generated xsp..




And I'm getting the error in the subject line.


So, quick question: before I go and start debugging, can I have that setup?


Basically:


file.xml + file.xsl = file.xsp


file.xsp + file2.xsl = file.html


- or -


(file.xml + file.xsl) + file2.xsl = file.html



Am I making any sense?  Is this possible the way I'm trying to do it or is there another method?


-Tom





RE: Pipeline Matching Problems

2002-03-19 Thread Vadim Gritsenko

I don't know how you are invoking this pipeline (what URL looks like),
and what actions are in the set, but is should choose an action based on
the (IIRC, never used this ;) cocoon-action request parameter - its
value should match action name. Then chosen action is being executed.
Put some debug output into your action to see that it is being executed.
Check the result of the action also - it should not be null.

Vadim

> -Original Message-
> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Pipeline Matching Problems
> 
> Vadim
> 
> I apreciate the reply. Now I can see that at least my grammar is OK.
:-)
> 
> However, I am no nearer to finding out *why* the code does not work at
> all i.e. why the XSP page is not even compiled?
> 
> I *have* tried to model my code on the forms/employee sample; apart
from
> some differences in the display (eg. no JavaScript) they are very
> similar.  How do I go about finding why no action can be / is
processed?
> 
> Thanks
> Derek
> 
> D Hohls
> CSIR Environmentek
> PO Box 17001
> Kwa-Zulu Natal
> South Africa
> 4013
> 
> 
> >>> [EMAIL PROTECTED] 03/19/02 16:53 PM >>>
> Your action set do not succeed, so pipeline is not being executed.
> 
> IIRC, action set will succeed when it is possible to choose at least
one
> action from the set and that action returns not null Map (it could be
> empty, but not null).
> 
> See also forms/employee in the sample sitemap.
> 
> Vadim
> 
> > From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> >
> > Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat
> >
> > I am trying to get a small database working.  After failing to
> > get it working in a submap, I have tried moving all the relevant
> > files over to the Cocoon samples directory.
> >
> > When I have:
> >
> >
> > > src="docs/samples/forms/form_chemicals.xsp"/>
> >
> >
> >
> >
> > all is well, and the output from the database output displays as
> > expected.
> >
> > But when I try and use actions:
> >
> >
> >  
> > > value="context://docs/samples/forms/desc_chemicals.xml" />
> > > src="docs/samples/forms/form_chemicals.xsp"/>
> >
> >
> >  
> >
> >
> > I get the error message in the root log:
> >
> > WARN(2002-03-19) 15:03.20:994   [root]
> > (/cocoon/docs/samples/forms/form_chemicals)
> >  HttpProcessor[8080][4]/CocoonServlet: The resource was not found
> > org.apache.cocoon.ResourceNotFoundException:
> > No pipeline matched request: /docs/samples/forms/form_chemicals
> >
> > The action set and descriptor all exist in the relevant directories,
> > and the action set is also
> > defined in the relevant sitemap entry.  The Tomcat work directory
was
> > clean.
> >
> > Any clues as to why pattern is not matched?
> >
> > Thanks
> > Derek
> >
> > PS I have tried changing:
> > http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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]>




passing a Xml string as a session attribute

2002-03-19 Thread Je vous site

Hello,

I have  


String s = 
(String)request.getSession().getAttribute("data");

s

it work fine when s is a simple string, "5" or 
 "5". I want the value 5 in my xsl so I've tried 
the xpath : //id/sub to set a variable but nothing append.

Could you explain me why it doesn't work ?

thank you for any 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]>




Cocoon2 and mssql server

2002-03-19 Thread Darrell Cumming

Hi 

I'm working with cocoon2 and trying to access MSSQL stored procedures and
having not so much luck. I tried The SQLTransformer which works great with
queries, but stored procedures return nothing. Looking around the archives
this appears to be the SQLTransformer doesn't expect result sets from Stored
Procedures and should just be out parameters. And there is a patch even for
a really old version of SQLTransformer.java.

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101316887401395&w=2

 So from what I had read it seems people should use esql, so I tried the
esql logicsheet, and more specifically I tried it with the j-netdirect
JSQLConnect jdbc driver and the MS jdbc driver (beta2). Now with esql I can
get ouput from stored procedures just fine, but when having to supply
parameters the ms jdbc driver gives

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing
prepared statement: usp_Report_CustomerReport(?): java.sql.SQLException:
[Microsoft][SQLServer JDBC Driver][SQLServer]Line 1: Incorrect syntax near
'usp_Report_CustomerReport'. 

But if I change the datasource to the JSQLConnect driver, it works fine
until the second to last row (there is about 1600 rows returned) and then I
get a NullPointerException.

Not trying other stored procedures , I get mixed results, or none where
there should be some has anyone had any luck with mssql stored procedures
(that return resultsets) and cocoon2 ?

Any input would be appreciated.

Thanks.

Darrell.

-
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: Pipeline Matching Problems

2002-03-19 Thread Derek Hohls

Vadim

I apreciate the reply. Now I can see that at least my grammar is OK. :-)

However, I am no nearer to finding out *why* the code does not work at
all i.e. why the XSP page is not even compiled?  

I *have* tried to model my code on the forms/employee sample; apart from
some differences in the display (eg. no JavaScript) they are very
similar.  How do I go about finding why no action can be / is processed?

Thanks
Derek

D Hohls
CSIR Environmentek
PO Box 17001
Kwa-Zulu Natal
South Africa
4013


>>> [EMAIL PROTECTED] 03/19/02 16:53 PM >>>
Your action set do not succeed, so pipeline is not being executed.

IIRC, action set will succeed when it is possible to choose at least one
action from the set and that action returns not null Map (it could be
empty, but not null).

See also forms/employee in the sample sitemap.

Vadim

> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> 
> Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat
> 
> I am trying to get a small database working.  After failing to
> get it working in a submap, I have tried moving all the relevant
> files over to the Cocoon samples directory.
> 
> When I have:
> 
>
> src="docs/samples/forms/form_chemicals.xsp"/>
>
>
>
> 
> all is well, and the output from the database output displays as
> expected.
> 
> But when I try and use actions:
> 
>
>  
> value="context://docs/samples/forms/desc_chemicals.xml" />
> src="docs/samples/forms/form_chemicals.xsp"/>
>
>
>  
>
> 
> I get the error message in the root log:
> 
> WARN(2002-03-19) 15:03.20:994   [root]
> (/cocoon/docs/samples/forms/form_chemicals)
>  HttpProcessor[8080][4]/CocoonServlet: The resource was not found
> org.apache.cocoon.ResourceNotFoundException:
> No pipeline matched request: /docs/samples/forms/form_chemicals
> 
> The action set and descriptor all exist in the relevant directories,
> and the action set is also
> defined in the relevant sitemap entry.  The Tomcat work directory was
> clean.
> 
> Any clues as to why pattern is not matched?
> 
> Thanks
> Derek
> 
> PS I have tried changing:
> http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>



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

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: More problems with handle-errors

2002-03-19 Thread Vadim Gritsenko

> From: Peter Robins [mailto:[EMAIL PROTECTED]]
> 
> Say I want to catch 404 errors with something like this:
> 
>
> 
> 
>
> 
> If I only have 1 map:pipeline, this works fine: catches the error and
> executes the xsl.
> 
> However, if I have >1 map:pipeline, it doesn't execute - I just get
the
> standard miaow from Tomcat. I tried putting it in all map:pipelines,
at the
> end of the last one, having it in its own map:pipeline (didn't like
that),
> and nesting it in its own parent map:pipeline (didn't like that
either).
> 
> In the sample webapp supplied with cocoon, the handle-errors routine
doesn't
> catch 404 errors either, but I see the syntax is different: instead of
> map:handle-errors having a type attribute, map:serialize has a
status-code
> attribute - presumably this just effects the output stream, and has no
> effect on the actual error-handling? If no type attribute is
specified,
> shouldn't it catch all errors?

No.

Type attribute have the default of 500 (for backward compatibility), and
handler of type 500 does not processes 404 errors (for backward
compatibility).

Vadim



-
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: Session Parameter Perfect response

2002-03-19 Thread Vadim Gritsenko

> From: Je vous site [mailto:[EMAIL PROTECTED]]
> 
> Thank you very much Vadim, it's perfect.
> 
> I would like to understand why it works this way : which entry of the
> javadoc API of Cocoon must i read.

Better if you take a look at the generated Java code for the XSP page,
at least once. You will have better understanding of the XSP.

See also:
http://xml.apache.org/cocoon/apidocs/index.html
(this link could be found on the
http://xml.apache.org/cocoon/developing/index.html page, "API
(Javadoc)")

See XSP documentation:
http://xml.apache.org/cocoon/userdocs/xsp/index.html


> I have found the Interface request, but not the Object request.

org.apache.cocoon.environment.http.HttpRequest
org.apache.cocoon.environment.commandline.CommandLineRequest
...


> In fact
> I would like a schematic structure of the object cocoon. If this
schema
> exist, please give me the url

I'm not sure what you are asking for, but if you want some kind of UML
diagrams I guess that they do not exist. Still, you always can use tools
like Together Control Center to quickly generate them (Together
Whiteboard edition is free and can draw nice class diagrams).

Vadim

 
> Vadim Gritsenko wrote:
> 
> >AFAIU,
> >
> >You want, in main.xsp:
> >
> >  request.getSession().setAttribute("my-data", myObject);
> >
> >
> >In svg.xsp:
> >
> >  MyObject myObject =
> >(MyObject)request.getSession().getAttribute("my-data");
> >
> >
> >
> >Vadim
> >
> >-Original Message-
> >From: Je vous site [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, March 19, 2002 10:33 AM
> >To: [EMAIL PROTECTED]
> >Subject: Session Parameter
> >
> >hello,
> >
> >I'm not sure, what i want to do is possible or not.
> >I've got a main page named main.xsp with main.xsl, I've got a svg.xsp
> >with svg.xsl embedded.
> >I want to pass values from main to svg.xsp. I've tried to url-encode
the
> >datas : it works, but i want to give svg.xsp a large and variable
amount
> >of data. I've tried to get the session-id : no session-id available
in
> >svg.xsp, I've tried to give svg.xsp the session-id of main : i've got
an
> >error. Does someone manage to do what i want ?
> >
> >
> >Thank you for your help
> >
> >Xavier.
> >


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




More problems with handle-errors

2002-03-19 Thread Peter Robins

Say I want to catch 404 errors with something like this:

   


   

If I only have 1 map:pipeline, this works fine: catches the error and 
executes the xsl.

However, if I have >1 map:pipeline, it doesn't execute - I just get the 
standard miaow from Tomcat. I tried putting it in all map:pipelines, at the 
end of the last one, having it in its own map:pipeline (didn't like that), 
and nesting it in its own parent map:pipeline (didn't like that either).

In the sample webapp supplied with cocoon, the handle-errors routine doesn't 
catch 404 errors either, but I see the syntax is different: instead of 
map:handle-errors having a type attribute, map:serialize has a status-code 
attribute - presumably this just effects the output stream, and has no 
effect on the actual error-handling? If no type attribute is specified, 
shouldn't it catch all errors?

-
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: Session Parameter Perfect response

2002-03-19 Thread Je vous site

Thank you very much Vadim, it's perfect.

I would like to understand why it works this way : which entry of the 
javadoc API of Cocoon must i read.
I have found the Interface request, but not the Object request. In fact 
I would like a schematic structure of the object cocoon. If this schema 
exist, please give me the url



Vadim Gritsenko wrote:

>AFAIU,
>
>You want, in main.xsp:
>
>  request.getSession().setAttribute("my-data", myObject);
>
>
>In svg.xsp:
>
>  MyObject myObject =
>(MyObject)request.getSession().getAttribute("my-data");
>
>
>
>Vadim
>
>-Original Message-
>From: Je vous site [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, March 19, 2002 10:33 AM
>To: [EMAIL PROTECTED]
>Subject: Session Parameter
>
>hello,
>
>I'm not sure, what i want to do is possible or not.
>I've got a main page named main.xsp with main.xsl, I've got a svg.xsp
>with svg.xsl embedded.
>I want to pass values from main to svg.xsp. I've tried to url-encode the
>datas : it works, but i want to give svg.xsp a large and variable amount
>of data. I've tried to get the session-id : no session-id available in
>svg.xsp, I've tried to give svg.xsp the session-id of main : i've got an
>error. Does someone manage to do what i want ?
>
>
>Thank you for your help
>
>Xavier.
>
>
>-
>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: [OT] XML for describing databases?

2002-03-19 Thread Christian Haul

On 19.Mar.2002 -- 08:37 AM, von Schwerdtner, Thomas (GXS, FPI) wrote:
> I have not been able to find what I wanted online anywhere (though I have
> found numerous others looking for the same thing), so I have started playing
> with my own schema.  Personnaly, I have no formal database

So, if there's not a standard to it, I would suggest to go along the
lines the Cocoon database actions are taking. If you augment that
descriptor format with the information you need you will profit later
on when modifying your data.

Please have a look at the database actions from main trunk and the
modular database actions that you can find in the scratchpad area as
they differ in some points. A thoroughly commented descriptor file is
in the scratchpad/webapps/mount/mod-db directory.

For the scratchpad you should obtain a nightly snapshot or an
up-to-date CVS checkout.

If you need help figuring the format out, please post your questions
in this thread.

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: XML Declaration

2002-03-19 Thread cyril vidal

 I've made some tests with my xsl stylesheet.
With IE6, there's no problem: I get a correct .fo document.
But when I try with xt, strangely, I obtain a "syntax error" on line 4. (I
think it's the same problem with Trax xslt engine that Cocoon uses in my
pipeline)
This is the beginning of the file:

http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 

  

So, why this syntax error?
Thanks for your answers,
Cyril.

- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 4:40 PM
Subject: Re: XML Declaration


> On Tuesday 19 March 2002 16:25, cyril vidal wrote:
> > Exception in creating Transform Handler
>
> Usually means an error in your XSLT transform.
>
> Locating such problems is easier if you can isolate them: you might
> want to comment out parts of your XSLT transform until it works, or
> start with a known good XSLT and work from here step by step.
>
> If you're generating PDF, try outputting the xml of the XSL-FO version
> first (by replacing the fo2pdf serializer with the xml one): until the
> XML version works there's no way you can get PDF output.
>
> >  > name="cocoon-format">type="text/xslfo"
>
> This is not needed with Cocoon 2, the sitemap handles this.
>
> Hope this helps...
> --
>  Bertrand Delacrétaz (codeconsult.ch, jfor.org)
>
>  buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
>  disclaimer: eternity is very long. mostly towards the end. get ready.
>
>
>
>
>
>
> -
> 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: map:handle-errors and sub sitemaps

2002-03-19 Thread Nicola Ken Barozzi

From: "Simeon Walker" <[EMAIL PROTECTED]>

> Hi,
>  I am having trouble handling ResourceNotFound errors in my
> sub-sitemaps. My main sitemap just deals with aggregation, stylesheet
> selection and transformation to html. The sub-sitemaps define
> the production xml.
>
> If I request a page that does not exist the top level sitemap
> won't handle the error (I think) since there are matches for ** and
> **/ which request content from sub-sitemaps. If the requested file
> does not exist I can see the exception in the logs but no error
> handler is called. I simply get my page/menus etc with blank
> content.

The top sitemap *should* handle the error and IIRC it did, but I had to make
the reference to the stylesheet in the root sitemap be resolved with
context:// .
AFAIK the subsitemap uses the first available parent sitemap handle-errors
resolving relative to its own context.

> I have tried serializing xml from the sub-sitemap error handler
> so that the root sitemap could transform this and produce a readable
> message. But, I am correct in thinking this is not allowed?

You should declare the handle-errors in the sub sitemap and handle them
there, or leave it all to the root sitemap.

> Perhaps I could use the resource-exists action in the sub-sitemaps?
> I can't find an example of this anywhere. I can get it to work in
> the case where the file exists but what happens when it doesn't?
>
> 
>
>  
>
>  
>
>
> 
>
> In this example, how can I send something else back when the
> resource does not exist?

As with all actions, when the action fails, it continues processing outside
of itself.
This is how it could work:

 

  



  




 

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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




weblogic 6.1, cocoon, java.lang.StringIndexOutOfBoundsException while deploying; help

2002-03-19 Thread Christoph Meier

Hi folks

i'm quite new here
the question is not asked the 1st time, i just did not find a proper 
solution yet, may be one of you already have found the hack to get 
things running and may tell me ...

i'm using weblogic 6.1, at time on a win2000, in the future it will be
on solaris.
the cocoon-distribution i use/try at time is from CVS, just downloaded
yesterday (some very late version of 2.01, i guess)
luckily cocoon works now on Tomcat_4.02, but still not on weblogic..

trying to deploy the build as directory 'cocoon' (mechanically by moving
into T:\bea\wlserver6.1\config\mydomain\applications' and restaring or
by using the weblogic-web-interface), weblogics throws an Exception 
while trying to deploy (for the Details of the log-file and the 
server-console, see below)

using several mails in
http://www.cocooncenter.de/cgi-bin/yabb/YaBB.cgi
http://marc.theaimsgroup.com/?l=xml-cocoon-users&r=1&w=2
http://www.mail-archive.com/cocoon-users@xml.apache.org/

i already found several hacks. what i've done yet is:

(1) adapting the xslt-processor-directive in 'cocoon.xconf'
---






(2) i adapted the server-start-script (startWebLogic.cmd)
by adding xerces and xalan to the classpath:
((well, this was done according to a hint in the newsgroups, the 
question here is, whether i'm using the right jar-File for xerces ..
, i copied them from 
latest_cocoon_dist_from_CVS\build\cocoon\webapp\WEB-INF\lib

for the hint in the newsgroup, see
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100741769221170&w=2

---< snippet >---
set MYCLASSPATH=%MYCLASSPATH%;T:\bea\wlserver6.1\lib\cocoons_lib\xerces.jar
set 
MYCLASSPATH=%MYCLASSPATH%;T:\bea\wlserver6.1\lib\cocoons_lib\xalan-2.3.1.jar
set MYCLASSPATH=%MYCLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
---< snippet >---
"%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath "%MYCLASSPATH%" 
-Dweblogic.Domain=mydomain -Dweblogic.Name=myserver "-Dbea.home=T:\bea" 
-Dweblogic.management.password=%WLS_PW% 
-Dweblogic.ProductionModeEnabled=%STARTMODE% 
"-Djava.security.policy==T:\bea\wlserver6.1/lib/weblogic.policy" 
weblogic.Server
goto finish
---< snippet >---




thanks for every good answer!
best regards,
chm



server-console-output:
--

<19.03.2002 17:21:48 CET>   
<19.03.2002 17:21:48 CET>  



weblogic-log
-
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
at
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
at
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
at
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
at
weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:815)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy29.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTa

Rep:RE: [HELP]Exception JspGenerator.generate()

2002-03-19 Thread laou

Thanks but i have always the same error and i can't use the same
jasper.jar because the environnement (tomcat and visual age ) are
different.

What is wrong? Have I forgotten something? What should I do?

Regards


 -Message d'origine-
De: "Piroumian, Konstantin" <[EMAIL PROTECTED]>
A: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Date: 19/03/02
Objet: RE: [HELP]Exception JspGenerator.generate()

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 7:54 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [HELP]Exception JspGenerator.generate()
> 
> 
> Description:org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate(): java.lang.ClassNotFoundException: 
> org.apache.jasper.servlet.JspServlet

Try to copy jasper.jar to cocoon/WEB-INF/lib. This usually helps.

--
Konstantin Piroumian  wrote 


> 
> Hi,
> 
> I am trying to produce XML out of using JSP with Cocoon 2 and 
> JspGenerator. It works with tomcat 3.2 but when i try to do 
> this with visual age, i have the following error : 
> Original exception : java.lang.ClassNotFoundException: 
> org.apache.jasper.servlet.JspServlet 
> java.lang.Throwable(java.lang.String) 
> java.lang.Exception(java.lang.String) 
> java.lang.ClassNotFoundException(java.lang.String) 
> java.lang.Class java.net.URLClassLoader.findClass(java.lang.String) 
> java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
> boolean) 
> java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) 
> byte [] 
> org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(java
> .lang.Stri
> ng, javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext) 
> void org.apache.cocoon.generation.JspGenerator.generate() 
> boolean 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(org.a
> pache.cocoon.environment.Environment) 
> boolean 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(org.
> apache.cocoon.environment.Environment) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.matchN10452(org.apache.coco
> on.sitemap
> .SitemapRedirector, org.apache.cocoon.environment.Environment,
> org.apache.cocoon.components.pipeline.StreamPipeline,
> org.apache.cocoon.components.pipeline.EventPipeline, boolean,
> java.util.List) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.e
> nvironment
> .Environment, org.apache.cocoon.components.pipeline.StreamPipeline,
> org.apache.cocoon.components.pipeline.EventPipeline, boolean) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.e
> nvironment
> .Environment) 
> boolean 
> org.apache.cocoon.sitemap.Handler.process(org.apache.cocoon.en
> vironment.
> Environment) 
> boolean 
> org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.fra
> mework.com
> ponent.ComponentManager, org.apache.cocoon.environment.Environment,
> java.lang.String, java.lang.String, boolean, boolean) 
> boolean 
> org.apache.cocoon.sitemap.SitemapManager.process(org.apache.co
> coon.envir
> onment.Environment) 
> boolean 
> org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment
> .Environme
> nt) 
> void 
> org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.
> http.HttpS
> ervletRequest, javax.servlet.http.HttpServletResponse) 
> void 
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse) 
> void 
> org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache
> .tomcat.co
> re.Request, org.apache.tomcat.core.Response) 
> void 
> org.apache.tomcat.core.ContextManager.service(org.apache.tomca
> t.core.Req
> uest, org.apache.tomcat.core.Response) 
> void 
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(o
> rg.apache.tomcat.service.TcpConnection, java.lang.Object []) 
> void org.apache.tomcat.service.TcpConnectionThread.run() 
> void java.lang.Thread.run() 
> 
> after a hard  work, i installed the library in Visual age 
> without success. Now i just the servlet.jar, webserver.jar, 
> xml.jar, xml-apis.jar, jasper.jar in the library of tomcat 
> 3.2 and the other jar are in the webapps of cocoon (Cf. cocoon.war 2)
> 
> Thanks in advance for any advice!
> Loic Gourmelon 
> 
> 
>  
> __
> 
> ifrance.com, l'email gratuit le plus complet de l'Internet ! 
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le 
> WAP... http://www.ifrance.com/_reloc/email.emailif
> 
> 
> 
> -
> 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

map:handle-errors and sub sitemaps

2002-03-19 Thread Simeon Walker

Hi,
 I am having trouble handling ResourceNotFound errors in my
sub-sitemaps. My main sitemap just deals with aggregation, stylesheet
selection and transformation to html. The sub-sitemaps define
the production xml.

If I request a page that does not exist the top level sitemap
won't handle the error (I think) since there are matches for ** and
**/ which request content from sub-sitemaps. If the requested file
does not exist I can see the exception in the logs but no error
handler is called. I simply get my page/menus etc with blank
content.

I have tried serializing xml from the sub-sitemap error handler
so that the root sitemap could transform this and produce a readable
message. But, I am correct in thinking this is not allowed?

Perhaps I could use the resource-exists action in the sub-sitemaps?
I can't find an example of this anywhere. I can get it to work in
the case where the file exists but what happens when it doesn't?


   
 
   
 
   
   


In this example, how can I send something else back when the
resource does not exist?

Regards,
Sim


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/



-
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: [HELP]Exception JspGenerator.generate()

2002-03-19 Thread Piroumian, Konstantin

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 7:54 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [HELP]Exception JspGenerator.generate()
> 
> 
> Description:org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate(): java.lang.ClassNotFoundException: 
> org.apache.jasper.servlet.JspServlet

Try to copy jasper.jar to cocoon/WEB-INF/lib. This usually helps.

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> Hi,
> 
> I am trying to produce XML out of using JSP with Cocoon 2 and 
> JspGenerator. It works with tomcat 3.2 but when i try to do 
> this with visual age, i have the following error : 
> Original exception : java.lang.ClassNotFoundException: 
> org.apache.jasper.servlet.JspServlet 
> java.lang.Throwable(java.lang.String) 
> java.lang.Exception(java.lang.String) 
> java.lang.ClassNotFoundException(java.lang.String) 
> java.lang.Class java.net.URLClassLoader.findClass(java.lang.String) 
> java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
> boolean) 
> java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) 
> byte [] 
> org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(java
> .lang.Stri
> ng, javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext) 
> void org.apache.cocoon.generation.JspGenerator.generate() 
> boolean 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(org.a
> pache.cocoon.environment.Environment) 
> boolean 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(org.
> apache.cocoon.environment.Environment) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.matchN10452(org.apache.coco
> on.sitemap
> .SitemapRedirector, org.apache.cocoon.environment.Environment,
> org.apache.cocoon.components.pipeline.StreamPipeline,
> org.apache.cocoon.components.pipeline.EventPipeline, boolean,
> java.util.List) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.e
> nvironment
> .Environment, org.apache.cocoon.components.pipeline.StreamPipeline,
> org.apache.cocoon.components.pipeline.EventPipeline, boolean) 
> boolean 
> org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.e
> nvironment
> .Environment) 
> boolean 
> org.apache.cocoon.sitemap.Handler.process(org.apache.cocoon.en
> vironment.
> Environment) 
> boolean 
> org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.fra
> mework.com
> ponent.ComponentManager, org.apache.cocoon.environment.Environment,
> java.lang.String, java.lang.String, boolean, boolean) 
> boolean 
> org.apache.cocoon.sitemap.SitemapManager.process(org.apache.co
> coon.envir
> onment.Environment) 
> boolean 
> org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment
> .Environme
> nt) 
> void 
> org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.
> http.HttpS
> ervletRequest, javax.servlet.http.HttpServletResponse) 
> void 
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse) 
> void 
> org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache
> .tomcat.co
> re.Request, org.apache.tomcat.core.Response) 
> void 
> org.apache.tomcat.core.ContextManager.service(org.apache.tomca
> t.core.Req
> uest, org.apache.tomcat.core.Response) 
> void 
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(o
> rg.apache.tomcat.service.TcpConnection, java.lang.Object []) 
> void org.apache.tomcat.service.TcpConnectionThread.run() 
> void java.lang.Thread.run() 
> 
> after a hard  work, i installed the library in Visual age 
> without success. Now i just the servlet.jar, webserver.jar, 
> xml.jar, xml-apis.jar, jasper.jar in the library of tomcat 
> 3.2 and the other jar are in the webapps of cocoon (Cf. cocoon.war 2)
> 
> Thanks in advance for any advice!
> Loic Gourmelon 
> 
> 
>  
> __
> 
> ifrance.com, l'email gratuit le plus complet de l'Internet ! 
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le 
> WAP... http://www.ifrance.com/_reloc/email.emailif
> 
> 
> 
> -
> 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: Session Parameter

2002-03-19 Thread Vadim Gritsenko

AFAIU,

You want, in main.xsp:

  request.getSession().setAttribute("my-data", myObject);


In svg.xsp:

  MyObject myObject =
(MyObject)request.getSession().getAttribute("my-data");



Vadim

-Original Message-
From: Je vous site [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 19, 2002 10:33 AM
To: [EMAIL PROTECTED]
Subject: Session Parameter

hello,

I'm not sure, what i want to do is possible or not.
I've got a main page named main.xsp with main.xsl, I've got a svg.xsp
with svg.xsl embedded.
I want to pass values from main to svg.xsp. I've tried to url-encode the
datas : it works, but i want to give svg.xsp a large and variable amount
of data. I've tried to get the session-id : no session-id available in
svg.xsp, I've tried to give svg.xsp the session-id of main : i've got an
error. Does someone manage to do what i want ?


Thank you for your help

Xavier.


-
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: RE: [XSP] Sitemap parameter passed to XSP page

2002-03-19 Thread Vadim Gritsenko

> From: Baer Peter [mailto:[EMAIL PROTECTED]]
> 
> We need a way to push parameters from the sitemap to XSP via a
generator
> (of type serverpages).
> 
> We can catch session and request parameters using
session.getParameter()
>   or request.getParameter(). With parameters.getParameter() we had no
> success, however. Nothing happens using the following configuration.
> 
> Any suggestions most appreciated!
> 
> 
> Our sitemap looks like this:
> 
> 
>
>  
>
> 
> 
> 
> Our XSP file looks like:
> 
> 
> try {
> String myParam = parameters.getParameter("user_name");
> }
> catch (Exception e)
> { }
> 

Where you have this  tag? In what part of XSP? You must know
that the all  tags right after  goes to class
definition, not the XSP body.

That's working for me:

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

   

  try{
String color = parameters.getParameter("color");


Vadim



> 
> 
> We also tried this:
> 
> 
> 
> Regards
>   Peter
> 

...


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




[HELP]Exception JspGenerator.generate()

2002-03-19 Thread laou

Description:org.apache.cocoon.ProcessingException: Exception
JspGenerator.generate(): java.lang.ClassNotFoundException:
org.apache.jasper.servlet.JspServlet

Hi,

I am trying to produce XML out of using JSP with Cocoon 2 and
JspGenerator. It works with tomcat 3.2 but when i try to do this with
visual age, i have the following error : 
Original exception : java.lang.ClassNotFoundException:
org.apache.jasper.servlet.JspServlet 
java.lang.Throwable(java.lang.String) 
java.lang.Exception(java.lang.String) 
java.lang.ClassNotFoundException(java.lang.String) 
java.lang.Class java.net.URLClassLoader.findClass(java.lang.String) 
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,
boolean) 
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) 
byte []
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(java.lang.Stri
ng, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext) 
void org.apache.cocoon.generation.JspGenerator.generate() 
boolean
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(org.a
pache.cocoon.environment.Environment) 
boolean
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(org.
apache.cocoon.environment.Environment) 
boolean
org.apache.cocoon.www.sitemap_xmap.matchN10452(org.apache.cocoon.sitemap
.SitemapRedirector, org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean,
java.util.List) 
boolean
org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
.Environment, org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline, boolean) 
boolean
org.apache.cocoon.www.sitemap_xmap.process(org.apache.cocoon.environment
.Environment) 
boolean
org.apache.cocoon.sitemap.Handler.process(org.apache.cocoon.environment.
Environment) 
boolean
org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.framework.com
ponent.ComponentManager, org.apache.cocoon.environment.Environment,
java.lang.String, java.lang.String, boolean, boolean) 
boolean
org.apache.cocoon.sitemap.SitemapManager.process(org.apache.cocoon.envir
onment.Environment) 
boolean
org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environme
nt) 
void
org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse) 
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) 
void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.co
re.Request, org.apache.tomcat.core.Response) 
void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Req
uest, org.apache.tomcat.core.Response) 
void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(o
rg.apache.tomcat.service.TcpConnection, java.lang.Object []) 
void org.apache.tomcat.service.TcpConnectionThread.run() 
void java.lang.Thread.run() 

after a hard  work, i installed the library in Visual age without
success.
Now i just the servlet.jar, webserver.jar, xml.jar, xml-apis.jar,
jasper.jar in the library of tomcat 3.2 and the other jar are in the
webapps of cocoon (Cf. cocoon.war 2)

Thanks in advance for any advice!
Loic Gourmelon 


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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




coocoon renering SVG : Problem with path atribute d="..."

2002-03-19 Thread Kai Ulrich



Anny 
one who nows what' going on ?
 
By 
rendering an SVG I got following exception !
 

[EmbeddedTomcatSX] 
org.apache.batik.transcoder.TranscoderException: nullEnclosed 
Exception:http://xml.apache.org:-1The attribute 
'd' of the element  is 
required[EmbeddedTomcatSX]  at 
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:230)[EmbeddedTomcatSX]  
at 
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:92)[EmbeddedTomcatSX]  
at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)[EmbeddedTomcatSX]  
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1186)[EmbeddedTomcatSX]  
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)[EmbeddedTomcatSX]  
at java.lang.Thread.run(Thread.java:484)[EmbeddedTomcatSX] 
java.lang.RuntimeException: org.apache.batik.transcoder.TranscoderException: 
null 
 
 
this 
is my xsl stylesheet :
 

 

 
  xml:space="preserve"> 
 Kennzahl
 I supose it has to do with this tag (the Error is gone when I 
delete it) #A2D27C M195.547,103.994h-69.939V92.036h69.939V103.994z 
   
This 
one works !

This 
one does not work as well !
    
#A2D27C M195.547,103.994h-69.939V92.036h69.939V103.994z 
   
 
 123%  
 
Ziel
 


RE: XML Declaration

2002-03-19 Thread Matthieu Benéteau



You may get 
a more explicit error message if you use the following error handler in your 
pipeline :
 
  

    

    

  

 
where 
"error2html.xsl" is the error stylesheet provided in the cocoon default webapp 
(in webapp\stylesheets\system).
 
 
Matthieu
 

  -Message d'origine-De : cyril vidal 
  [mailto:[EMAIL PROTECTED]]Envoyé : mardi 19 mars 2002 
  16:26Objet : XML Declaration
  I hope one day I will succeed in 
  transforming  XML->PDF  with Cocoon...
  After the "tranform" corrected, I now obtain the 
  following message:
  
  message 
  Exception in creating Transform Handler
  description org.apache.cocoon.ProcessingException: 
  Exception in creating Transform Handler: org.xml.sax.SAXParseException: The 
  XML declaration may only appear at the very beginning of the document
  This is my xml document:
    
      
  Shakespeare    
  William    
  British    
  1564    
  1616  
    Sonnet 130  
      My mistress' eyes are nothing 
  like the sun,    Coral is far more 
  red than her lips red.    If snow 
  be white, why then her breasts are dun,    
  If hairs be wires, black wires grow on her 
  head.    I have seen roses 
  damasked, red and white,    But no 
  such roses see I in her cheeks.    
  And in some perfumes is there more 
  delight    Than in the breath that 
  from my mistress reeks.    I love 
  to hear her speak, yet well I know    
  That music hath a far more pleasing 
  sound.    I grant I never saw a 
  goddess go,    My mistress when 
  she walks, treads on the ground.    
  And yet, by Heaven, I think my love as 
  rare    As any she belied with 
  false compare.  
  
  and the summary of the XLS-fo 
  one:
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
  xmlns:fo="http://www.w3.org/1999/XSL/Format">      
  
    
  name="cocoon-format">type="text/xslfo"
  
  What do you think is 
wrong?
  Thanks for your answers,
  Cyril.
   
  Thanks for your answer,
  Cyril.


Re: Is Cocoon Commercial Support Desired?

2002-03-19 Thread MJ Ray

Steven Punte wrote:
> Dear Cocoon User Group: I am consider offering commercial support for
> Cocoon.  Do you belong to a firm that would be interested in such support? 

No, we don't want any more competitors, thank you :*)

-- 
MJR ,
| Q. Do you want commercial support for Cocoon with
|fewer unsolicited HTML emails?
| A. I suggest you try http://www.luminas.co.uk/

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

2002-03-19 Thread Automatic



Thanks a lot to respond Konstantin,

What about the downloadable api doc, according to me, this doc and complexe
examples, it's the best way to learn quickly ?


Xavier

Piroumian, Konstantin wrote:
[EMAIL PROTECTED]">
  
-Original Message-From: Je vous site [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 11:53 AMTo: [EMAIL PROTECTED]Subject: XSP Questionshello,I try to learn about Xsp, so I read the example.I have this fragment"http://apache.org/xsp">org.apache.cocoon.environment.http.HttpSession session = (org.apache.cocoon.environment.http.HttpSession)request.getSession();String s = session.getAttribute("valeur");sAn error occurs. When i erase the  tag, it works.

It can't work without  or it works incorrectly. What kind of anerror do you get?

  I would like to know if the session attribute "valeur" must have been declared before or not.
  
  It's not related to XSP or Cocoon. Attributes behave as they do usually inservlets, nothing different. So, if you have no "valeur" attribute in yoursession then you'll get 'null' string.
  
I search any good xsp tutorial and a downloadable api doc of cocoon.

To understand XSP better see generated java source files. You'll find themsomewhere in working directory of your servlet container (e.g. under/work/localhost/cocoon/ directory in Tomcat).--Konstantin Piroumian [EMAIL PROTECTED]

  I thank you for any helpXavier-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 theFAQ 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 Questions end

2002-03-19 Thread Automatic



thank you vadim,

Xavier



Vadim Gritsenko wrote:
006601c1cf4a$07c783d0$90a4558b@vgritsenkopc">
  
From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]

  -Original Message-From: Je vous site [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 19, 2002 11:53 AMTo: [EMAIL PROTECTED]Subject: XSP Questionshello,I try to learn about Xsp, so I read the example.I have this fragment"http://apache.org/xsp">org.apache.cocoon.environment.http.HttpSession session =
  
  
  (org.apache.cocoon.environment.http.HttpSession)request.getSession();You should use org.apache.cocoon.environment.Session here.
  

  String s = session.getAttribute("valeur");sAn error occurs. When i erase the  tag, it works.
  
  It can't work without  or it works incorrectly. What kind
  
  of an
  
error do you get?

  I would like to know if the session attribute "valeur" must have
  
  
  been
  

  declared before or not.
  
  It's not related to XSP or Cocoon. Attributes behave as they do
  
  usually in
  
servlets, nothing different. So, if you have no "valeur" attribute in

your

  session then you'll get 'null' string.
  
I search any good xsp tutorial and a downloadable api doc of cocoon.


If you have src distribution of Cocoon, you could build API docs:build docsVadim 

  To understand XSP better see generated java source files. You'll find
  
  them
  
somewhere in working directory of your servlet container (e.g. under/work/localhost/cocoon/ directory in Tomcat).--Konstantin Piroumian[EMAIL PROTECTED]

  I thank you for any helpXavier
  
  
  -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]>
  
  
  
  


-
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: XML Declaration

2002-03-19 Thread Bertrand Delacretaz

On Tuesday 19 March 2002 16:25, cyril vidal wrote:
> Exception in creating Transform Handler

Usually means an error in your XSLT transform.

Locating such problems is easier if you can isolate them: you might 
want to comment out parts of your XSLT transform until it works, or 
start with a known good XSLT and work from here step by step.

If you're generating PDF, try outputting the xml of the XSL-FO version 
first (by replacing the fo2pdf serializer with the xml one): until the 
XML version works there's no way you can get PDF output.

>  name="cocoon-format">type="text/xslfo"

This is not needed with Cocoon 2, the sitemap handles this.

Hope this helps...
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






-
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: SVG Transparency (GIF Serializer?)

2002-03-19 Thread Michael Zehrer

Ahh... that's the solution, I (must) use IE6, there is no PNG
transparency, but when I use Mozilla I have transparency. Too sad that
nearly 85% of all WWW users have IE5/6...

After all I think there is no Serializer for those evil GIFs??

Michael

-Ursprüngliche Nachricht-
Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19. März 2002 15:05
An: [EMAIL PROTECTED]
Betreff: Re: SVG Transparency


This may be a silly question but what are you usig to view
the generated png's? Mozilla shows transparency ok but
Netscape 4.x and maybe others won't.

Sim

Michael Zehrer wrote:
> Hi Sim,
> 
> But I still see a white background with this:
> 
> 
>   Corner of menu item
>transform="rotate(0 3 3)"/>
>  
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 13:11
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: AW: SVG Transparency
> 
> 
> ok, below is the stylesheet I use to generate curved corners menu
items,
> boxes etc on my website. If the $fg parameter is passed then a filled
> rectangle of that colour is drawn, if not it's transparent.
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
> 
> 
> 
>  
>  Corner of menu item
>  
>  
>  
>   transform="rotate({$a} 3 3)"/>
>  
> 
> 
> 
> 
> The actual svg code on its own would look something like this:
> 
> 
>   Corner of menu item
>   
>transform="rotate(0 3 3)"/>
> 
> 
> Omitting the  means it's transparent.
> 
> Ignore the fact that it *looks* like I have my fg and bg mixed up...
> (they are referring to menu colours, not the svg itself)
> 
> Sim
> 
> Michael Zehrer wrote:
> 
>>Hi Sim,
>>
>>can you give an example?
>>
>>Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
>>Gesendet: Dienstag, 19. März 2002 10:42
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: AW: SVG Transparency
>>
>>
>>I have found that if I don't draw over the whole area of the svg then
>>bit where I don't draw will be transparent. If I want a background
>>colour
>>then I start by drawing a filled box. There may be other ways - I'm
> 
> just
> 
>>starting with SVG's.
>>
>>Sim
>>
>>Michael Zehrer wrote:
>>
>>
>>>Hi,
>>>
>>>maybe my question was to svg specific. Does the svg2png serializer
can
>>>make images with transparent background? And what do I have to define
>>
>>in
>>
>>
>>>my svg to do this?
>>>
>>>Michael
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
>>>Gesendet: Dienstag, 19. März 2002 08:02
>>>An: [EMAIL PROTECTED]
>>>Betreff: Re: AW: SVG Transparency
>>>
>>>
>>>Michael
>>>
>>>There's an example on SVG clipping (which may be useful?)
>>>at Adobe:
>>>
>>>http://www.adobe.com/svg/basics/jpgs.html
>>>
>>>Derek
>>>
>>>
>>>
>>>
>>[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
>
>>>Hi Chris,
>>>
>>>thanks for the link, but excuse me this is a little bit too complex.
>>>Can
>>>you explain the concept?
>>>
>>>
>>>Cheers Michael
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
>>>Gesendet: Montag, 18. März 2002 16:41
>>>An: [EMAIL PROTECTED] 
>>>Betreff: RE: SVG Transparency
>>>
>>>
>>>http://www.w3.org/TR/SVG/masking.html 
>>>
>>>HTH,
>>>
>>>Chris
>>>
>>>
>>>
>>>
-Original Message-
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
Sent: 18 March 2002 15:24
To: Cocoon-Users (E-Mail)
Subject: SVG Transparency


Hi list,

maybe a little offtopic, but how can I have svg images with
>>>
>>>transparent
>>>
>>>
>>>
background in Cocoon?

Cheers, Michael



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

Session Parameter

2002-03-19 Thread Je vous site



hello,

I'm not sure, what i want to do is possible or not.
I've got a main page named main.xsp with main.xsl, I've got
a svg.xsp with svg.xsl embedded.
I want to pass values from main to svg.xsp. I've tried to url-encode
the datas : it works, but i want to give svg.xsp a large and variable amount
of data. I've tried to get the session-id : no session-id available in 
svg.xsp, I've tried to give svg.xsp the session-id of main
: i've got an error. Does someone manage to do what i want ?


Thank you for your help

Xavier.





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



XML Declaration

2002-03-19 Thread cyril vidal



I hope one day I 
will succeed in transforming  XML->PDF  with 
Cocoon...
After the "tranform" corrected, I now 
obtain the following message:

message 
Exception in creating Transform Handler
description org.apache.cocoon.ProcessingException: 
Exception in creating Transform Handler: org.xml.sax.SAXParseException: The XML 
declaration may only appear at the very beginning of the document
This is my xml document:
  
    
Shakespeare    
William    
British    
1564    
1616  
  Sonnet 130  
    My mistress' eyes are nothing 
like the sun,    Coral is far more 
red than her lips red.    If snow be 
white, why then her breasts are dun,    
If hairs be wires, black wires grow on her 
head.    I have seen roses damasked, 
red and white,    But no such roses 
see I in her cheeks.    And in some 
perfumes is there more delight    
Than in the breath that from my mistress 
reeks.    I love to hear her speak, 
yet well I know    That music hath a 
far more pleasing sound.    I grant 
I never saw a goddess go,    My 
mistress when she walks, treads on the 
ground.    And yet, by Heaven, I 
think my love as rare    As any she 
belied with false compare.  

and the summary of the XLS-fo 
one:
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
xmlns:fo="http://www.w3.org/1999/XSL/Format">      

  
name="cocoon-format">type="text/xslfo"

What do you think is wrong?
Thanks for your answers,
Cyril.
 
Thanks for your answer,
Cyril.


Re: XUL ?

2002-03-19 Thread Joseph Jupin

take a look at jxul and luxor (www.luxor.org)...
we're looking at doing the same thing only in terms of 
generating the XUL like language and then parsing it in a 
Swing-based app afterwards...

jxul merely tries to emulate the XUL stuff - but is still 
tied to the mozilla components - so may not be what you 
want.  

luxor is attempting to write a language to define the user 
interface so that it can generate all the jtables, 
jbuttons, etc based on that spec.  unfortunately, he's 
mixed in some things that are superfluous - so look at it 
carefully.  but he gives a good starting point for 
creating you own XUL based language - after that, if you 
need to parse it into something else, you need to write 
your own XSL stylesheet to handle that...

cool.

peace.  JOe...


On Tue, 19 Mar 2002 09:47:12 +0100
  TREGAN Fabien <[EMAIL PROTECTED]> 
wrote:
>>I don't know anything abou XUL but
>
>It's the XML based GUI-definition used by Mozilla.
>
>>you may be interested in
>>Web Services User Interface consortium
>>http://www.wsui.org/
>
>I've hade a look at this, interesting !
>It's not what I was looking for :
>-wsui allow to map a component to a web services calls.
>-What I'm looking for (and what XUL is) is a standard 
>langauge to describe
>the GUI. My probleme is that actually, in (x)HTML, you 
>can easily tell that
>you want a text input, and let the CSS define how the 
>input will look like
>BUT you have no way to say that you want a menu, and let 
>the CSS define if
>it's a drop-down menu, a treeview, ...
>
>So what i'd like to have in my cocoon project is a SIMPLE 
>transformation of
>my XML datas in a standardized, easy to generate, 
>gui-describing-xml stream,
>and a re-usable layer for gui-description to XHTML 
>transformation.
>
>There are still several question for wich I do not have 
>any answer :
>-Should I define my own 'xgui' set of component or should 
>I use (extend ?)
>xul or uiml ?
>-Is a standard gui-def -> XHTML transformer out of C2 
>scope ?
>-What are the url I should start reading before trying to 
>answer this
>questions by myself ?
>
>Any suggestion is, of course, welcome !
>
>fabien.
>
>
>-
>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: Pipeline Matching Problems

2002-03-19 Thread Vadim Gritsenko

Your action set do not succeed, so pipeline is not being executed.

IIRC, action set will succeed when it is possible to choose at least one
action from the set and that action returns not null Map (it could be
empty, but not null).

See also forms/employee in the sample sitemap.

Vadim

> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> 
> Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat
> 
> I am trying to get a small database working.  After failing to
> get it working in a submap, I have tried moving all the relevant
> files over to the Cocoon samples directory.
> 
> When I have:
> 
>
> src="docs/samples/forms/form_chemicals.xsp"/>
>
>
>
> 
> all is well, and the output from the database output displays as
> expected.
> 
> But when I try and use actions:
> 
>
>  
> value="context://docs/samples/forms/desc_chemicals.xml" />
> src="docs/samples/forms/form_chemicals.xsp"/>
>
>
>  
>
> 
> I get the error message in the root log:
> 
> WARN(2002-03-19) 15:03.20:994   [root]
> (/cocoon/docs/samples/forms/form_chemicals)
>  HttpProcessor[8080][4]/CocoonServlet: The resource was not found
> org.apache.cocoon.ResourceNotFoundException:
> No pipeline matched request: /docs/samples/forms/form_chemicals
> 
> The action set and descriptor all exist in the relevant directories,
> and the action set is also
> defined in the relevant sitemap entry.  The Tomcat work directory was
> clean.
> 
> Any clues as to why pattern is not matched?
> 
> Thanks
> Derek
> 
> PS I have tried changing:
> http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>



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

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




RE: XSP Question

2002-03-19 Thread Piroumian, Konstantin

> From: Joseph Rajkumar [mailto:[EMAIL PROTECTED]] 
> 
> Hi
>   I understand that db.xsl has to be modified,
> but my problem is that I am not able to set any
> attribute values for the db:employees tag.
> 
>   In this case I am trying to set the 
> attribute start to some value or default of 0
> and count to some value or a default of 7, but
> when I try to print the value of @start or @count
> in the db.xsl, it does not contain any values at all.

So, maybe the problem is not in db.xsl? Are you sure that you get request
params as expected? Look at the generated XSP java class to see where the
problem can be.

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> Regards
> Joseph Rajkumar 
> ==
> > > 
> > > 
> > >   
> > > 
> > >   
> > >  
> > >   
> > > 
> > > 
> > > 
> > >  
> > >
> > >  
> > >
> > >  
> > >
> > > 
> > 
> > Range attributes are not supported by db logicsheet, it's just a 
> > sample. To add some new features you should add them to the 
> logicsheet 
> > (see db.xsl).
> 
> -
> 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: XML for describing databases?

2002-03-19 Thread Glenn Clingroth
Derek,

Sorry, my post could have been clearer.

What I am describing is a means for symmetrically processing data in and out of the database. Similar to what might be done with a pure XML database. So when I say "submit queries using that format" what I meant was that if you are using one of  the employee examples that I showed if you submit the following as a query:

accounting







the application would return all of the employees in the accounting department in the following format:

accounting

John
Doe
1234


...



This works by providing a relational-to-XML mapping description that my code parses along with the query document. The relational-to-XML mapping description has definitions for each of the tables that can be generated from the sql create  scripts (or conversely, could generate them), definitions of the relationships between tables, and definitions of the fields and how they map into the XML. This provides the information for developing the queries and creating the result document.

When I said that no XSLT is used, what I meant is that I don't create any intermediate state XML file that must be translated using XSLT. I directly create the result format which is ready for further processing. The further processing could involve translating it with XSLT for display as HTML or it could involve packaging it into a SOAP response.

I hope that clears up my message some. If there is interest, I would be willing to share my schema for the relational-to-XML mapping as well as some of my decidedly rudimentary (and at this point undocumented) code for generating queries.

Glenn


On Tuesday, March 19, 2002, at 01:26 AM, Derek Hohls wrote:

Glenn

I would definitely be interested in this - tho' I am not sure that I
fully understand the approach you have taken eg. " submit
queries using that format"?

I am also curious as to how you format your output to make it 
human-readable if you do not use XSLT?

Cheers
Derek

[EMAIL PROTECTED] 18/03/2002 05:38:08 >>>
I have been working on a similar problem but approaching it in a
slightly different way. I have taken more of an object-relational
mapping approach similar to products such as TopLink. Using this
approach you define your database schema and your XML result schema
separately and then map them together. For instance, the SQL tables
for
Employees (i.e. Employee, Department, Person) will be mapped directly
to
your resulting XML document and that document can be structured like:

accounting

John
Doe
1234


.



or it could be structured like:

John
Doe


or any other variation.

The mapping (created against a defined mapping schema as an XML
document) provides the information that is needed to build the queries
and create the resulting documents. XSLT is not used and the typical
result type from an XML query (
name="deptId">360...) is not
used.
The query is truly symmetric. You can define the result format, submit
queries using that format, and receive responses in that format. To
qualify your query you include the known data elements and the query
will be built to find those.

I have been working on this independently and would be interested in
comments. I currently have the query definition, submit, and response
working for moderately complex data sets (involving many-to-many
relations that can be brought to multiple places in the XML document)
and will work on defining insert and update as well.

- Glenn




Re: sitemap_xmap.java cut!

2002-03-19 Thread cyril vidal

Roman, Emmanuel,

I'm sorry
Thanks a lot for your help.
I hope it will run now
Cyril.
- Original Message -
From: "KOZLOV Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 3:17 PM
Subject: Re: sitemap_xmap.java cut!


> You missed "s" in "transform" word. You have to write:
> 
> instead of
> 
>
> Roman
>
> cyril vidal wrote:
>
> > Roman,
> >
> > Sorry for still disturbing you.
> > But I don't understand what I have to write instead of:
> >  
> > Is this instruction not correct?
> > Best,
> > Cyril.
> > - Original Message -
> > From: "KOZLOV Roman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 19, 2002 1:42 PM
> > Subject: Re: sitemap_xmap.java cut!
> >
> > > Cyril,
> > >
> > > I've found the reason - error in your sitemap:
> > >   
> > > - tranform instead of transform.
> > >
> > > Best regards
> > > Roman
> > >
> > >
> > > cyril vidal wrote:
> > >
> > > > Hi, Some of you would know why my file sitemap_xmap.java is cut up
> > > > (after generator method instruction) and so why I can't absolutly
not
> > > > transform my xml document as I would like to?I've installed binary
> > > > version of Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me Thanks for
your
> > > > answers.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]>
> > >
> >
> > -
> > 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: Problems with the LDAP-Transformer on Cocoon 2.0.1

2002-03-19 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> 
> Hello,
> 
> I have problems with the LDAP-Transformer on Cocoon 2.0.1 (also on
Cocoon
> 2.0).
> 
> I have download the jndi.jar - file and have then perform ".\build.bat
> -Dinclude.webapp.libs=yes webapp".  With the new cocoon.war - file I
have
> installed the cocoon on Tomcat 4.0.1. Cocoon run fine.
> I don't know, how can I use the LDAP-Transformer.
> 
> I have done the following:
> 
> Entry in the sitemap.xmap - file:
> 
>  
>
>
>
>   
> 
> 
> ldapTest.xml - file:
> 
> 
> 
> 
>   
> ldap://servername:389
>
l=Test,c=de,o=Werk,o=AG,cn=Konzern
> 
> (&(ou=mvd*)(objectClass=organizationalUnit))
>   
> 
> 
> 
> The result is:
> 
> 
>   
> ldap://servername:389
>
l=Test,c=de,o=Werk,o=AG,cn=Konzern
> 
> (&(ou=mvd*)(objectClass=organizationalUnit))
>   
> 
> 
> 
> I don't find an error message.
> Wath is wrong?

Nothing is wrong. It works as expected - it processes elements in the
its namespace. Unfortunately, you did not specify any of them.

>From the LDAPTransformer.java:

/** The LDAP namespace ("http://apache.org/cocoon/LDAP/1.0";)**/

Regards,
Vadim

> 
> Thanks in advanced.
> 
> Katrin Seiffert
> 


-
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: RE: [XSP] Sitemap parameter passed to XSP page

2002-03-19 Thread Baer Peter

We need a way to push parameters from the sitemap to XSP via a generator 
(of type serverpages).

We can catch session and request parameters using session.getParameter() 
  or request.getParameter(). With parameters.getParameter() we had no 
success, however. Nothing happens using the following configuration.

Any suggestions most appreciated!


Our sitemap looks like this:


   
 
   



Our XSP file looks like:


try {
String myParam = parameters.getParameter("user_name");
}
catch (Exception e)
{ }



We also tried this:



Regards
Peter

 >Cool, thanks!
 >By the way, why do I need an  here since I'm already in an
 > node here? To do some escaping on the returned string?
 >
 >Pascal.
 >
 >>-Original Message-
 >>From: Jan Normann Nielsen [mailto:[EMAIL PROTECTED]]
 >>Sent: Saturday, February 23, 2002 11:45 AM
 >>To: [EMAIL PROTECTED]
 >>Subject: SV: [XSP] Sitemap parameter passed to XSP page
 >>
 >>
 >>Hi Pascal
 >>
 >>You can access the parameters variable from your XSP page, just like 
 >>you
 >>would do in an Action. Example:
 >>
 >>
 >>String myParam =
 >>parameters.getParameter("my-param")
 >>
 >>
 >>to access the "my-param" sitemap parameter.
 >>
 >>Best regards,
 >>Jan Nielsen
 >>
 >>> -Oprindelig meddelelse-
 >>> Fra: Pascal Davoust [mailto:[EMAIL PROTECTED]]
 >>> Sendt: 23. februar 2002 00:13
 >>> Til: Cocoon Users
 >>> Emne: [XSP] Sitemap parameter passed to XSP page
 >>>
 >>>
 >>> Hi,
 >>>
 >>> I'm trying to get a parameter passed from the sitemap to the XSP 
 >>page I'm
 >>> writing.
 >>> The purpose is to have the following kind of stuff in the sitemap:
 >>>
 >>> 
 >>> 
 >>> 
 >>> 
 >>> 
 >>>
 >>> (the  is my own guess about how to pass the param to 
 >>the
 >>> generator... :o)
 >>>
 >>> And use the "record/id" parameter in my XSP (how?).
 >>> I guess it's real common stuff, but can't find any example or >>hint...
 >>>
 >>> Thanks,
 >>>
 >>> Pascal.

-- 
+---+-+
|  >>>  mailto:[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: [OT] XML for describing databases?

2002-03-19 Thread Derek Hohls

Thomas

This was more along the ideas of what I had mind - I've added some
bells
and whistles, based oin my previous experience  - please comment!

Derek



 
  Store the name and favorite color of some
people 
   
  Store the people info 

  
 
   
   
   
 Mr
 Mrs
 Ms
   
   
  This is a helpful message.
   
 
 
 
 
   
 
   
 
   
 
   
   

 
   
  

  

  


  

  
  

  
 


>>> [EMAIL PROTECTED] 19/03/2002 03:37:58 >>>
Glenn is using a setup a little different than what I had in mind.

I have not been able to find what I wanted online anywhere (though I
have
found numerous others looking for the same thing), so I have started
playing
with my own schema.  Personnaly, I have no formal database
training/education and only have a little over a years worth of
experience
playing around with databases, so my database designs are failry simple
and
do not make use of any advanced concepts (mostly because I do not know
what
the advanced concepts are).

What I have come up with so far works for me...the basic idea is that I
want
to store the same information that would be available in a schema dump
from
a database (the design, not the contents) along with a little extra
information such as the database DSN...

A small database amounts to:


























.once I figure out how to get esql to work right, I'll have a xsl
document that can parse a larger version of the above into seperate
views
for each table and proper linking between related tables (through the
'link'
parameter...what I guess is a relation).  A little later this week I'm
going
to look into PostgreSQL 'views' and see about adding in some
 tags, and as I may need them in the database, some
 tags(though I'm not sure how I could describe a
function in a manner that would be useful to a xslt that has not been
customized for a specific database)...

Anyways...someone who has taken "RDBMS's 101" could likely do much
better
with something like this.but the above sample is the sort of thing
I was
looking for...and what I have come up with works for the databases I
am
currently working with.and since I have to build web interfaces to
6 or
so databases, using a XML setup like this is very helpful when working
with
Cocoon...for me anyways...


-Tom


> -Original Message-
> From: Derek Hohls [mailto:[EMAIL PROTECTED]] 
> 
> Glenn
> 
> I would definitely be interested in this - tho' I am not sure that I
> fully understand the approach you have taken eg. " submit
> queries using that format"?
> 
> I am also curious as to how you format your output to make it 
> human-readable if you do not use XSLT?
> 
> Cheers
> Derek
> 
> >>> [EMAIL PROTECTED] 18/03/2002 05:38:08 >>>
> I have been working on a similar problem but approaching it in a
> slightly different way. I have taken more of an object-relational
> mapping approach similar to products such as TopLink. Using this
> approach you define your database schema and your XML result schema
> separately and then map them together. For instance, the SQL tables
> for
> Employees (i.e. Employee, Department, Person) will be mapped
directly
> to
tf experience
playing aroun> your resulting XML document and that document can be
structured like:
> 
> accounting
> 
> John
> Doe
> 1234
> 
> 
> .
> 
> 
>  
> or it could be structured like:
> 
> John
> Doe
> 
>  
> or any other variation.
>  
> The mapping (created against a defined mapping schema as an XML
> document) provides the information that is needed to build the
queries
> and create the resulting documents. XSLT is not used and the typical
> result type from an XML query ( name="deptId">360...) is not
> used.
> The query is truly symmetric. You can define the result format,
submit
> queries using that format, and receive responses in that format. To
> qualify your query you include the known data elements and the query
> will be built to find those.
>  
> I have been working on this independen

Re: sitemap_xmap.java cut!

2002-03-19 Thread KOZLOV Roman

You missed "s" in "transform" word. You have to write:

instead of


Roman

cyril vidal wrote:

> Roman,
>
> Sorry for still disturbing you.
> But I don't understand what I have to write instead of:
>  
> Is this instruction not correct?
> Best,
> Cyril.
> - Original Message -
> From: "KOZLOV Roman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 19, 2002 1:42 PM
> Subject: Re: sitemap_xmap.java cut!
>
> > Cyril,
> >
> > I've found the reason - error in your sitemap:
> >   
> > - tranform instead of transform.
> >
> > Best regards
> > Roman
> >
> >
> > cyril vidal wrote:
> >
> > > Hi, Some of you would know why my file sitemap_xmap.java is cut up
> > > (after generator method instruction) and so why I can't absolutly not
> > > transform my xml document as I would like to?I've installed binary
> > > version of Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me Thanks for your
> > > answers.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]>
> >
>
> -
> 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]>


begin:vcard 
n:KOZLOV;Roman
tel;work:+783 12 65 85 91, +783 12 62 27 76
x-mozilla-html:FALSE
org:DATAVISION CIS;PDM
adr:;;Gagarina Prospect 25b;Nizhny Novgorod;;;RUSSIA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Roman KOZLOV
end:vcard



-
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: sitemap_xmap.java cut!

2002-03-19 Thread Emmanuel Bardet

Cyril,

It looks like you just mistyped it.

Your 

should read 

-Original Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2002 14:11
To: [EMAIL PROTECTED]
Subject: Re: sitemap_xmap.java cut!


Roman,

Sorry for still disturbing you.
But I don't understand what I have to write instead of:
  
Is this instruction not correct?
Best,
Cyril.
- Original Message - 
From: "KOZLOV Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:42 PM
Subject: Re: sitemap_xmap.java cut!


> Cyril,
> 
> I've found the reason - error in your sitemap:
>   
> - tranform instead of transform.
> 
> Best regards
> Roman
> 
> 
> cyril vidal wrote:
> 
> > Hi, Some of you would know why my file sitemap_xmap.java is cut up
> > (after generator method instruction) and so why I can't absolutly not
> > transform my xml document as I would like to?I've installed binary
> > version of Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me Thanks for your
> > answers.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]>
> 


-
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: sitemap_xmap.java cut!

2002-03-19 Thread cyril vidal

Roman,

Sorry for still disturbing you.
But I don't understand what I have to write instead of:
  
Is this instruction not correct?
Best,
Cyril.
- Original Message - 
From: "KOZLOV Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:42 PM
Subject: Re: sitemap_xmap.java cut!


> Cyril,
> 
> I've found the reason - error in your sitemap:
>   
> - tranform instead of transform.
> 
> Best regards
> Roman
> 
> 
> cyril vidal wrote:
> 
> > Hi, Some of you would know why my file sitemap_xmap.java is cut up
> > (after generator method instruction) and so why I can't absolutly not
> > transform my xml document as I would like to?I've installed binary
> > version of Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me Thanks for your
> > answers.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]>
> 


-
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: RE: How to put user data into SunspotDemoPortal-session at logontime

2002-03-19 Thread Halácsy Péter



> -Original Message-
> From: Baer Peter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:40 PM
> To: cocoon-users
> Subject: Re: RE: How to put user data into 
> SunspotDemoPortal-session at
> logontime
> 
> 
> Thanks for the reply. It works. We can get the parameter out of the 
> session now.
> 
> However, what we actually need is a single value which we can 
> pass as a 
> parameter to the following generator or transformer.
> 
> 
>   
> 
> 
> Thus we could generate user-specific menus at runtime. Eg, 
> the options 
> in drop-down menu could depend on the region the user belongs to.
I think you can make something similar



in the menu.xml you can write:



cocoon://personalized_menu.xml?user=   



You have to make a personalized_menu.xml stream the generates the menu based on user 
parameter.

On the other hand I don't understand why I can't read/write sunShine context object in 
the generation phase. It would be very flexible If I could use -say- a sunshine 
logicsheet to handle context objects.

peter

-
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: SVG Transparency

2002-03-19 Thread Simeon Walker

This may be a silly question but what are you usig to view
the generated png's? Mozilla shows transparency ok but
Netscape 4.x and maybe others won't.

Sim

Michael Zehrer wrote:
> Hi Sim,
> 
> But I still see a white background with this:
> 
> 
>   Corner of menu item
>transform="rotate(0 3 3)"/>
>  
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 13:11
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: AW: SVG Transparency
> 
> 
> ok, below is the stylesheet I use to generate curved corners menu items,
> boxes etc on my website. If the $fg parameter is passed then a filled
> rectangle of that colour is drawn, if not it's transparent.
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
> 
> 
> 
>  
>  Corner of menu item
>  
>  
>  
>   transform="rotate({$a} 3 3)"/>
>  
> 
> 
> 
> 
> The actual svg code on its own would look something like this:
> 
> 
>   Corner of menu item
>   
>transform="rotate(0 3 3)"/>
> 
> 
> Omitting the  means it's transparent.
> 
> Ignore the fact that it *looks* like I have my fg and bg mixed up...
> (they are referring to menu colours, not the svg itself)
> 
> Sim
> 
> Michael Zehrer wrote:
> 
>>Hi Sim,
>>
>>can you give an example?
>>
>>Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
>>Gesendet: Dienstag, 19. März 2002 10:42
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: AW: SVG Transparency
>>
>>
>>I have found that if I don't draw over the whole area of the svg then
>>bit where I don't draw will be transparent. If I want a background
>>colour
>>then I start by drawing a filled box. There may be other ways - I'm
> 
> just
> 
>>starting with SVG's.
>>
>>Sim
>>
>>Michael Zehrer wrote:
>>
>>
>>>Hi,
>>>
>>>maybe my question was to svg specific. Does the svg2png serializer can
>>>make images with transparent background? And what do I have to define
>>
>>in
>>
>>
>>>my svg to do this?
>>>
>>>Michael
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
>>>Gesendet: Dienstag, 19. März 2002 08:02
>>>An: [EMAIL PROTECTED]
>>>Betreff: Re: AW: SVG Transparency
>>>
>>>
>>>Michael
>>>
>>>There's an example on SVG clipping (which may be useful?)
>>>at Adobe:
>>>
>>>http://www.adobe.com/svg/basics/jpgs.html
>>>
>>>Derek
>>>
>>>
>>>
>>>
>>[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
>
>>>Hi Chris,
>>>
>>>thanks for the link, but excuse me this is a little bit too complex.
>>>Can
>>>you explain the concept?
>>>
>>>
>>>Cheers Michael
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
>>>Gesendet: Montag, 18. März 2002 16:41
>>>An: [EMAIL PROTECTED] 
>>>Betreff: RE: SVG Transparency
>>>
>>>
>>>http://www.w3.org/TR/SVG/masking.html 
>>>
>>>HTH,
>>>
>>>Chris
>>>
>>>
>>>
>>>
-Original Message-
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
Sent: 18 March 2002 15:24
To: Cocoon-Users (E-Mail)
Subject: SVG Transparency


Hi list,

maybe a little offtopic, but how can I have svg images with
>>>
>>>transparent
>>>
>>>
>>>
background in Cocoon?

Cheers, Michael



>>>
>>>-
>>>
>>>
>>>
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: [OT] XML for describing databases?

2002-03-19 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: [OT]  XML for describing databases?





Glenn is using a setup a little different than what I had in mind.


I have not been able to find what I wanted online anywhere (though I have found numerous others looking for the same thing), so I have started playing with my own schema.  Personnaly, I have no formal database training/education and only have a little over a years worth of experience playing around with databases, so my database designs are failry simple and do not make use of any advanced concepts (mostly because I do not know what the advanced concepts are).

What I have come up with so far works for me...the basic idea is that I want to store the same information that would be available in a schema dump from a database (the design, not the contents) along with a little extra information such as the database DSN...

A small database amounts to:



    
    
    
    
        
            
            
            
        
        
        
        
            
        
    
    
        
            
            
        
        
    



.once I figure out how to get esql to work right, I'll have a xsl document that can parse a larger version of the above into seperate views for each table and proper linking between related tables (through the 'link' parameter...what I guess is a relation).  A little later this week I'm going to look into PostgreSQL 'views' and see about adding in some  tags, and as I may need them in the database, some  tags(though I'm not sure how I could describe a function in a manner that would be useful to a xslt that has not been customized for a specific database)...

Anyways...someone who has taken "RDBMS's 101" could likely do much better with something like this.but the above sample is the sort of thing I was looking for...and what I have come up with works for the databases I am currently working with.and since I have to build web interfaces to 6 or so databases, using a XML setup like this is very helpful when working with Cocoon...for me anyways...


-Tom



> -Original Message-
> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> 
> Glenn
> 
> I would definitely be interested in this - tho' I am not sure that I
> fully understand the approach you have taken eg. " submit
> queries using that format"?
> 
> I am also curious as to how you format your output to make it 
> human-readable if you do not use XSLT?
> 
> Cheers
> Derek
> 
> >>> [EMAIL PROTECTED] 18/03/2002 05:38:08 >>>
> I have been working on a similar problem but approaching it in a
> slightly different way. I have taken more of an object-relational
> mapping approach similar to products such as TopLink. Using this
> approach you define your database schema and your XML result schema
> separately and then map them together. For instance, the SQL tables
> for
> Employees (i.e. Employee, Department, Person) will be mapped directly
> to
> your resulting XML document and that document can be structured like:
> 
> accounting
> 
> John
> Doe
> 1234
> 
> 
> .
> 
> 
>  
> or it could be structured like:
> 
> John
> Doe
> 
>  
> or any other variation.
>  
> The mapping (created against a defined mapping schema as an XML
> document) provides the information that is needed to build the queries
> and create the resulting documents. XSLT is not used and the typical
> result type from an XML query (
> name="deptId">360...) is not
> used.
> The query is truly symmetric. You can define the result format, submit
> queries using that format, and receive responses in that format. To
> qualify your query you include the known data elements and the query
> will be built to find those.
>  
> I have been working on this independently and would be interested in
> comments. I currently have the query definition, submit, and response
> working for moderately complex data sets (involving many-to-many
> relations that can be brought to multiple places in the XML document)
> and will work on defining insert and update as well.
>  
> - Glenn
>  
> 
> -
> 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: RE: How to put user data into SunspotDemoPortal-session at logontime

2002-03-19 Thread Baer Peter

Thanks for the reply. It works. We can get the parameter out of the 
session now.

However, what we actually need is a single value which we can pass as a 
parameter to the following generator or transformer.





Thus we could generate user-specific menus at runtime. Eg, the options 
in drop-down menu could depend on the region the user belongs to.

Merging the session XML and the application XML is not appropriate for 
us, as we don't want to have them transformed before the XSP statements 
in the resulting XML are evaluated.

Any clues?

Thanks in advance!

-pb-




 >Everything is already in the session, stored in a so called 
 >SessionContext
 >named "sunRise".
 >
 >The "authentication document" defined for the portal which actually
 >does the login of a user delivers these information to sunRise which
 >then stores them into the session. These information are usually
 >the user ID, the first name, the last name etc.
 >
 >By adopting this resource, you can store more infos in the session.
 >
 >You can get them in an XML processing pipeline by using the sunShine
 >transformer. So you can write an XML file, like this:
 >
 >http://cocoon.apache.org/sunshine/1.0";;>
 >
 >
 >
 >If you now build a sunLet reading this XML document and using the 
 >sunShine
 >transformer, you will get all information stored in the session about
 >the current user.
 >
 >As the info is stored as an XML tree in the session by varying the
 >"path" attribute of "getxml" you can get one specific info, like:
 >   
 >
 >HTH
 >Carsten



 >
 >> Peter Baer wrote:
 >> > We need the user name and some user specific information in the 
 >>actual
 >> SunspotDemoPortal session.
 >> Our question is because the default session attributes (and their
 >> values) aren't particularly speeky.
 >> > How can we trigger the portal to add the user name and other 
 >>specific
 >> information (like boolean flags) into the session?
 >> Or are there already some user informations in the session, inserted 
 >>by
 >> the portal?
 >> > And if so, how are they named / how can we get them out?
 >>




-- 
+---+-+
|  >>>  mailto:[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: Basic idea of creating xml document using a form

2002-03-19 Thread Matthieu Benéteau

Have a look at the following transformer (by Jeremy) in the CVS repository :
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/src/org/apache/
cocoon/transformation/Attic/FileWritingTransformer.java

It may be very useful if you want to create or modify an existing XML file.

Matthieu


> -Message d'origine-
> De : Sreenivasan N. [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 19 mars 2002 09:58
> Objet : Basic idea of creating xml document using a form
>
>
> Hi all
>
> I am new to cocoon. Now i am into a project where i need to
> create xml file
> / or append an exsisting xml file using forms. Can anyone give the basic
> configuration required to do this in sitemap and some example to
> do the same
> I am using Tomcat 4.0.3 and Cocoon 2.0.1
>
> With regards
>
> vasan.


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

2002-03-19 Thread Vadim Gritsenko

> From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
> 
> > -Original Message-
> > From: Je vous site [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 19, 2002 11:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: XSP Questions
> >
> >
> > hello,
> >
> > I try to learn about Xsp, so I read the example.
> >
> > I have this fragment
> >
> > http://apache.org/xsp";>
> > 
> > 
> > 
> >
> > org.apache.cocoon.environment.http.HttpSession session =
> >
(org.apache.cocoon.environment.http.HttpSession)request.getSession();

You should use org.apache.cocoon.environment.Session here.


> > String s = session.getAttribute("valeur");
> > 
> > s
> > 
> >
> > An error occurs. When i erase the  tag, it works.
> 
> It can't work without  or it works incorrectly. What kind
of an
> error do you get?
>
> > I would like to know if the session attribute "valeur" must have
been
> > declared before or not.
> 
> It's not related to XSP or Cocoon. Attributes behave as they do
usually in
> servlets, nothing different. So, if you have no "valeur" attribute in
your
> session then you'll get 'null' string.
> 
> > I search any good xsp tutorial and a downloadable api doc of cocoon.

If you have src distribution of Cocoon, you could build API docs:

build docs

Vadim

 
> To understand XSP better see generated java source files. You'll find
them
> somewhere in working directory of your servlet container (e.g. under
> /work/localhost/cocoon/ directory in Tomcat).
> 
> --
> Konstantin Piroumian
> [EMAIL PROTECTED]
> 
> >
> > I thank you for any help
> >
> > Xavier
> >


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




Parsing a Request Stream

2002-03-19 Thread Michael Raffenberg

Hi,

i like to receive a post input stream with the following sitemap
definitions:
 
   
 
   
   
 
This works ok.
The input will contain some xml-data with a dtd.
Is it possible to get this input parsed again the dtd?
How can i track down any errors if the input is not valid?
After parsing the input, i like to transform it with some
xslt-stylesheets, how do i have to configure the sitemap for this?

-- 
Best regards,
 Michael



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

2002-03-19 Thread Joseph Rajkumar

Hi
I understand that db.xsl has to be modified,
but my problem is that I am not able to set any
attribute values for the db:employees tag.

In this case I am trying to set the 
attribute start to some value or default of 0
and count to some value or a default of 7, but
when I try to print the value of @start or @count
in the db.xsl, it does not contain any values at all.

Regards
Joseph Rajkumar
==
> > 
> > 
> >   
> > 
> >   
> >  
> >   
> > 
> > 
> > 
> >  
> >
> >  
> >
> >  
> >
> > 
> 
> Range attributes are not supported by db logicsheet, it's just a sample. To
> add some new features you should add them to the logicsheet (see db.xsl).

-
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: How can i access one child sitemap from another child sitemap.

2002-03-19 Thread Vadim Gritsenko

> From: Manish [mailto:[EMAIL PROTECTED]]
> 
> Hello Vadim,
> 
> Thanks for your reply...
> 
> Let me put the problem in different way. The project I am working on,
has
> different modules, I have two concern...
> 
> 1) I want to decide the next page (navigation of the site) from site
map
> only
> (Not even from action class, as it will require change in class to
change
> the navigation).
> 
> 2) As the project has lots of screen, I want separate sitemap for each
> module. Thus I am required 
> to move from one site map to other site map frequently.
> 
> please see the sitmaps below, how can I get redirected to dssdetail
match of
> dss sitemap???
> 
> your guidance will be highly appreciable as i am in trouble in
managing the
> sitemap.
> 
> Note: Please refer attached query.txt file if you find difficulty in
format
> of mail.
> 
> Regards,
> Manish Jain
> 
> 
> my Main site map contains these two pipeline to mount child sitmap,
apart
> from other common
> 
> pipeline
> 
> --
> main site map
> --
> 
>  
>   
>  
> 
> 
>  
>check-reload="yes"/>
>  
> 
> 
> 
> ---
> Transaction sitemap
> ---
> 
>
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 

>From what I see that will be simple:



And, to be honest, question has nothing to do with Cocoon, but with HTML
and how links works.

Regards,
Vadim

> 
...
> 
> 
> 
...
> 
> 
> 
> ---
> dss sitemap
> ---
> 
> 
> 
> 
> 
> 
> 
> 



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




Pipeline Matching Problems

2002-03-19 Thread Derek Hohls

Running C2.0 under Windows 2000, JDK 1.3, Apache/Tomcat

I am trying to get a small database working.  After failing to
get it working in a submap, I have tried moving all the relevant 
files over to the Cocoon samples directory.  

When I have:

   
   
   
   


all is well, and the output from the database output displays as
expected.

But when I try and use actions:

   
 
   
   
   
   
   
   

I get the error message in the root log:

WARN(2002-03-19) 15:03.20:994   [root]
(/cocoon/docs/samples/forms/form_chemicals)
 HttpProcessor[8080][4]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: 
No pipeline matched request: /docs/samples/forms/form_chemicals

The action set and descriptor all exist in the relevant directories,
and the action set is also
defined in the relevant sitemap entry.  The Tomcat work directory was
clean.

Any clues as to why pattern is not matched?

Thanks
Derek

PS I have tried changing:
http://xml.apache.org/cocoon/faqs.html>

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




Re: Let's improve (was: Re: Contents of map:handle-errors?)

2002-03-19 Thread Nicola Ken Barozzi

From: "Peter Robins" <[EMAIL PROTECTED]>

> For me, the big advantage of
> Cocoon is not the 'separation of concerns', which I've been doing for
years
> with Perl/PHP templating systems, but the sitemap, which provides a clean,
> simple, standardised way of defining processes on the site. If your
sitemap
> matches 404 errors with a read of a page_not_found.html, then it's clear
> what's happening; if you have to look into an xslt script to see what it
> does, then it's not so clear.

Understand. In fact I have already made a Selector that selects the pipeline
to use by selecting on any of the error notification parameters.
Currently we are in code freeze for 2.0.2, so I can't commit it, but be sure
I will tackle this as soon as the release is out.
I'll have also to go round the code and make all errors more descriptive and
make the errors be properly cascaded.

> On Sunday 17 Mar 2002 1:52 pm, Nicola Ken Barozzi wrote:
> > I agree, and I'm working on a FAQBuilder, that gives more helpful
messages
> > based on info from a FAQ.
>
> hmm, sounds interesting
>
> > The Cocoon webapp is a *sample*, not a template.
>
> ah, but I bet most people use it as a template.

I know ;-)

This is why I'm restructuring the samples to make it easier to use them as
templates.
Version 2.0.2 will have the new restructured ones as a WIP.

> Going off at a tangent, in your previous posting, you mentioned correcting
> the sitemap DTD. It would be good if this could be checked against the
actual
> logic and then implemented properly. At the moment, it seems in some
places
> to be incorrect, so can't be used for validating.

Many checks were put in the latest sitemap, and the new TreeProcessor
sitemap is very effective in telling what's wrong.
As for the error handling, it's in a flux for now, since using multiple
"handle-errors" will be deprecated in favor of a Selector used inside.
If there are evident errors in the DTD, please tell me, so I can patch it
before next week's release.

Thank you :-)

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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: sitemap_xmap.java cut!

2002-03-19 Thread KOZLOV Roman

Cyril,

I've found the reason - error in your sitemap:
  
- tranform instead of transform.

Best regards
Roman


cyril vidal wrote:

> Hi, Some of you would know why my file sitemap_xmap.java is cut up
> (after generator method instruction) and so why I can't absolutly not
> transform my xml document as I would like to?I've installed binary
> version of Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me Thanks for your
> answers.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: Oracle jdbc thin driver

2002-03-19 Thread Andrey Demchenko

You must set encoding in your xml,xsp... file
I use it (for russian)

or 

and it works Ok

- Original Message - 
From: " ITANI Mohamed (LB Soft)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 12:07 PM
Subject: Oracle jdbc thin driver


> Hello,
> 
> I'm using Cocoon 2.0 and tomcat 4.0 under win2000.
> 
> I'm having an encoding problem, the database I'm connected to though my
> oracle thin driver (classes12.zip of oracle 8.1.7) is hungarian. The
> data coming from the database through the jdbc driver contains question
> marks and rubbish characters??
> 
> Anybody knows how to solve this problem, or how to set the charset for
> my  jdbc connection??
> 
> Thanks in advance
> Itani
> 
> -
> 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: SVG Transparency

2002-03-19 Thread Michael Zehrer

Hi Sim,

But I still see a white background with this:


Corner of menu item

 

Michael

-Ursprüngliche Nachricht-
Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19. März 2002 13:11
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: SVG Transparency


ok, below is the stylesheet I use to generate curved corners menu items,
boxes etc on my website. If the $fg parameter is passed then a filled
rectangle of that colour is drawn, if not it's transparent.


http://www.w3.org/1999/XSL/Transform";>






 
 Corner of menu item
 
 
 
 
 




The actual svg code on its own would look something like this:


Corner of menu item




Omitting the  means it's transparent.

Ignore the fact that it *looks* like I have my fg and bg mixed up...
(they are referring to menu colours, not the svg itself)

Sim

Michael Zehrer wrote:
> Hi Sim,
> 
> can you give an example?
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 10:42
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: SVG Transparency
> 
> 
> I have found that if I don't draw over the whole area of the svg then
> bit where I don't draw will be transparent. If I want a background
> colour
> then I start by drawing a filled box. There may be other ways - I'm
just
> starting with SVG's.
> 
> Sim
> 
> Michael Zehrer wrote:
> 
>>Hi,
>>
>>maybe my question was to svg specific. Does the svg2png serializer can
>>make images with transparent background? And what do I have to define
> 
> in
> 
>>my svg to do this?
>>
>>Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
>>Gesendet: Dienstag, 19. März 2002 08:02
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: SVG Transparency
>>
>>
>>Michael
>>
>>There's an example on SVG clipping (which may be useful?)
>>at Adobe:
>>
>>http://www.adobe.com/svg/basics/jpgs.html
>>
>>Derek
>>
>>
>>
>[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>

>>Hi Chris,
>>
>>thanks for the link, but excuse me this is a little bit too complex.
>>Can
>>you explain the concept?
>>
>>
>>Cheers Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
>>Gesendet: Montag, 18. März 2002 16:41
>>An: [EMAIL PROTECTED] 
>>Betreff: RE: SVG Transparency
>>
>>
>>http://www.w3.org/TR/SVG/masking.html 
>>
>>HTH,
>>
>>Chris
>>
>>
>>
>>>-Original Message-
>>>From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
>>>Sent: 18 March 2002 15:24
>>>To: Cocoon-Users (E-Mail)
>>>Subject: SVG Transparency
>>>
>>>
>>>Hi list,
>>>
>>>maybe a little offtopic, but how can I have svg images with
>>
>>transparent
>>
>>
>>>background in Cocoon?
>>>
>>>Cheers, Michael
>>>
>>>
>>>
>>
>>-
>>
>>
>>>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]>
>>
> 
> 


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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

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

Re: AW: AW: AW: SVG Transparency

2002-03-19 Thread Simeon Walker

ok, below is the stylesheet I use to generate curved corners menu items,
boxes etc on my website. If the $fg parameter is passed then a filled
rectangle of that colour is drawn, if not it's transparent.


http://www.w3.org/1999/XSL/Transform";>






 
 Corner of menu item
 
 
 
 
 




The actual svg code on its own would look something like this:


Corner of menu item




Omitting the  means it's transparent.

Ignore the fact that it *looks* like I have my fg and bg mixed up...
(they are referring to menu colours, not the svg itself)

Sim

Michael Zehrer wrote:
> Hi Sim,
> 
> can you give an example?
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 10:42
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: SVG Transparency
> 
> 
> I have found that if I don't draw over the whole area of the svg then
> bit where I don't draw will be transparent. If I want a background
> colour
> then I start by drawing a filled box. There may be other ways - I'm just
> starting with SVG's.
> 
> Sim
> 
> Michael Zehrer wrote:
> 
>>Hi,
>>
>>maybe my question was to svg specific. Does the svg2png serializer can
>>make images with transparent background? And what do I have to define
> 
> in
> 
>>my svg to do this?
>>
>>Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
>>Gesendet: Dienstag, 19. März 2002 08:02
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: SVG Transparency
>>
>>
>>Michael
>>
>>There's an example on SVG clipping (which may be useful?)
>>at Adobe:
>>
>>http://www.adobe.com/svg/basics/jpgs.html
>>
>>Derek
>>
>>
>>
>[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>

>>Hi Chris,
>>
>>thanks for the link, but excuse me this is a little bit too complex.
>>Can
>>you explain the concept?
>>
>>
>>Cheers Michael
>>
>>-Ursprüngliche Nachricht-
>>Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
>>Gesendet: Montag, 18. März 2002 16:41
>>An: [EMAIL PROTECTED] 
>>Betreff: RE: SVG Transparency
>>
>>
>>http://www.w3.org/TR/SVG/masking.html 
>>
>>HTH,
>>
>>Chris
>>
>>
>>
>>>-Original Message-
>>>From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
>>>Sent: 18 March 2002 15:24
>>>To: Cocoon-Users (E-Mail)
>>>Subject: SVG Transparency
>>>
>>>
>>>Hi list,
>>>
>>>maybe a little offtopic, but how can I have svg images with
>>
>>transparent
>>
>>
>>>background in Cocoon?
>>>
>>>Cheers, Michael
>>>
>>>
>>>
>>
>>-
>>
>>
>>>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]>
>>
> 
> 


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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




AW: AW: AW: SVG Transparency

2002-03-19 Thread Michael Zehrer

Hi Sim,

can you give an example?

Michael

-Ursprüngliche Nachricht-
Von: Simeon Walker [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19. März 2002 10:42
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: SVG Transparency


I have found that if I don't draw over the whole area of the svg then
bit where I don't draw will be transparent. If I want a background
colour
then I start by drawing a filled box. There may be other ways - I'm just
starting with SVG's.

Sim

Michael Zehrer wrote:
> Hi,
> 
> maybe my question was to svg specific. Does the svg2png serializer can
> make images with transparent background? And what do I have to define
in
> my svg to do this?
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 08:02
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: SVG Transparency
> 
> 
> Michael
> 
> There's an example on SVG clipping (which may be useful?)
> at Adobe:
> 
> http://www.adobe.com/svg/basics/jpgs.html
> 
> Derek
> 
> 
[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
>>>
> Hi Chris,
> 
> thanks for the link, but excuse me this is a little bit too complex.
> Can
> you explain the concept?
> 
> 
> Cheers Michael
> 
> -Ursprüngliche Nachricht-
> Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
> Gesendet: Montag, 18. März 2002 16:41
> An: [EMAIL PROTECTED] 
> Betreff: RE: SVG Transparency
> 
> 
> http://www.w3.org/TR/SVG/masking.html 
> 
> HTH,
> 
> Chris
> 
> 
>>-Original Message-
>>From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
>>Sent: 18 March 2002 15:24
>>To: Cocoon-Users (E-Mail)
>>Subject: SVG Transparency
>>
>>
>>Hi list,
>>
>>maybe a little offtopic, but how can I have svg images with
> 
> transparent
> 
>>background in Cocoon?
>>
>>Cheers, Michael
>>
>>
>>
> 
> -
> 
>>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]>
> 


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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




sitemap_xmap.java cut!

2002-03-19 Thread cyril vidal



Hi,
 
Some of you would know why my file 
sitemap_xmap.java is cut up (after generator method instruction) and so why I 
can't absolutly not transform my xml document as I would like to?
I've installed binary version of 
Cocoon2.0.1 with Tomcat 4.0.1 on Windows Me
 
Thanks for your answers.
Cyril.


Re: Security/encryption

2002-03-19 Thread Peter Robins

That's a different issue, Joe. SSL encrypts the flow, and is not specific to 
Cocoon. I wouldn't expect Cocoon to handle this. I'm wanting to encrypt the 
passwords (or other sensitive data) in the actual XML files, as, for example, 
Apache does with its htpasswd files. IMO, all passwords should be stored in 
encrypted form - doesn't stop the crackers, but makes life more difficult for 
them.


On Monday 18 Mar 2002 2:47 pm, Joseph Jupin wrote:
> I'm going to answer this in terms of an SSL connection
> from a client to your webserver (Apache or Tomcat, etc)...
>  In the Tomcat documentation it states that when an SSL
> connection is made, the connection is encrypted from the
> client to the webserver as in any normal webserver
> situation.  The server itself is responsible for taking
> the encrypted stream, un-encrypting them and then
> forwarding them on to the respective called for agent (in
> this case Cocoon)...  So, Cocoon would only be as secure
> as the level of SSL encryption employed by your container
> webserver (128 bit, for example)...
>
> Please look at the Tomcat startup page and click on their
> Security-HOW-TO section...  cool.
>
> peace.  JOe...
>
> On Sat, 16 Mar 2002 19:30:49 +
>
>   Peter Robins <[EMAIL PROTECTED]> wrote:
> >On Friday 15 Mar 2002 11:07 pm, Vadim Gritsenko wrote:
> >> How do you handle plain text DB password in the
> >>weblogic's config.xml
> >> file? Or in the JRun server's local.properties file? Or
> >>Tomcat's
> >> server.xml?
> >
> >I don't. I don't use weblogic or jrun, nor do I have
> >passwords in server.xml
> >
> >> I guess that you can apply same technique to the
> >>Cocoon's cocoon.xconf.
> >>
> >> PS Cocoon uses Avalon's JDBC pools, so you may want to
> >>ask this on
> >> Avalon list.
> >
> >the question wasn't specific to DB, but a general
> >question as to whether
> >Cocoon handles encrypted data elements. However, looks
> >like I have the answer
> >- no :-)
> >
> >-
> >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: Let's improve (was: Re: Contents of map:handle-errors?)

2002-03-19 Thread Peter Robins

On Sunday 17 Mar 2002 1:52 pm, Nicola Ken Barozzi wrote:
> > In my experience, by far the commonest error is page not found, and by
> > far the commonest cause of that is that the user has mistyped the url (or
> clicked
> > on an incorrect link). So all they need is a simple message saying 'page
> not
> > found, please check what you entered' - a simple read of an html file is
> > surely the simplest way of doing this.
>
> Sure, you can do it.
> Make a stylesheet that outputs only that page in the handle-errors pipeline
> and you're done.

yes, this did occur to me - in effect, have a transformer that ignores the 
output of the generator. However, this loses some transparency in the 
sitemap, as it's not so obvious what's going on. For me, the big advantage of 
Cocoon is not the 'separation of concerns', which I've been doing for years 
with Perl/PHP templating systems, but the sitemap, which provides a clean, 
simple, standardised way of defining processes on the site. If your sitemap 
matches 404 errors with a read of a page_not_found.html, then it's clear 
what's happening; if you have to look into an xslt script to see what it 
does, then it's not so clear. This is the weakness of the Perl/PHP method: 
you have to look into the script/'logicsheet' (read: you have to have a 
programmer around), so it's harder to figure out what's going on.

> I agree, and I'm working on a FAQBuilder, that gives more helpful messages
> based on info from a FAQ.

hmm, sounds interesting

> The Cocoon webapp is a *sample*, not a template.

ah, but I bet most people use it as a template.


Going off at a tangent, in your previous posting, you mentioned correcting 
the sitemap DTD. It would be good if this could be checked against the actual 
logic and then implemented properly. At the moment, it seems in some places 
to be incorrect, so can't be used for validating.

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




SQLTransformer NullPointerException with Oracle and

2002-03-19 Thread William Moore

Hello

I have run into a problem using SQLTransformer in Cocoon 2.0 with Oracle 8.
1.7 and Tomcat 4.0.1 on Windows NT4 Service Pack 5.

Here is the datasource as defined in cocoon.xconf:
 
   
   jdbc:oracle:thin:@172.16.1.5:1521:gtu
   gtu
   gtu
 

The system generates an SQL on the database which returns a number of rows.
  Then it does a second query for each row returned using the values 
returned in the first query through the  tag.

All the SQL statements are correct, in that they return the expected 
results when they run. The problem is that if the pipeline is run two or 
three times, the database crashes with a NullPointerException. Here is an 
extract from the log. I have omitted the actual SQL statements and some of 
the level 1 queries.

   SQLTransformer: SQLTransformer executing query nr 0
   SQLTransformer$Query: EXECUTING SELECT 
   DefaultPool: Retrieving a 
org.apache.avalon.excalibur.datasource.JdbcConnection from the pool
   DefaultPool: Returning a 
org.apache.avalon.excalibur.datasource.JdbcConnection to the pool
   SQLTransformer: SQLTransformer executing query nr 1
   SQLTransformer$Query: EXECUTING SELECT 
   DefaultPool: Retrieving a 
org.apache.avalon.excalibur.datasource.JdbcConnection from the pool
   DefaultPool: Returning a 
org.apache.avalon.excalibur.datasource.JdbcConnection to the pool
   
   SQLTransformer: SQLTransformer executing query nr 1
   SQLTransformer$Query: EXECUTING SELECT 
   DefaultPool: Retrieving a 
org.apache.avalon.excalibur.datasource.JdbcConnection from the pool
   DefaultPool: Returning a 
org.apache.avalon.excalibur.datasource.JdbcConnection to the pool
   SQLTransformer: SQLTransformer executing query nr 1
   SQLTransformer$Query: EXECUTING SELECT 
   DefaultPool: Retrieving a 
org.apache.avalon.excalibur.datasource.JdbcConnection from the pool
   JdbcConnectionPool: JdbcConnection was closed, creating one to take its 
place
   JdbcConnectionFactory: JdbcConnection object created
   DefaultPool: Returning a 
org.apache.avalon.excalibur.datasource.JdbcConnection to the pool
   SQLTransformer$Query: NullPointer while closing the resultset.
   java.lang.NullPointerException
   at oracle.jdbc.driver.ScrollableResultSet.close(ScrollableResultSet.
java:143)
   at 
org.apache.cocoon.transformation.SQLTransformer$Query.close(SQLTransformer.
java:1009)
   at 
org.apache.cocoon.transformation.SQLTransformer.executeQuery
(SQLTransformer.java:294)
   at 
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement
(SQLTransformer.java:398)

Sometimes the "JdbcConnection was closed" message appears several times 
and the error does not occur, sometimes it appears several times and the 
error does occur. In this case it appeared once and the error occured. I 
have not seen the error occurring unless that message has appeared at 
least once.

It looks to me like the SQLTransformer is checking if the ResultSet is 
null, finding it is not null so trying to close it, but by the time it 
tries to close it, something else has already removed it so it gets a 
NullPointerException. The SQLTransformer successfully catches the 
exception, but the Oracle ScrollableResultSet does not catch it and does 
not throw it, so the whole thing crashes.

I have modified the source of SQLTransformer to synchronize on the 
ResultSet like this:
Original code:
 if ( rs != null )
   try {
 //getTheLogger().debug("Trying to close resultset "+rs.toString())
;
 rs.close();
 rs = null;  // This prevents us from using the resultset again.
 //250getTheLogger().debug("Really closed the resultset now.");
   } catch ( NullPointerException e ) {
 getTheLogger().debug( "NullPointer while closing the resultset.", 
e );
 }

Modified code:
 if ( rs != null )
   try {
synchronized (rs) {
   //getTheLogger().debug("Trying to close resultset "+rs.toString(
));
   rs.close();
   rs = null;  // This prevents us from using the resultset 
again.
   //250getTheLogger().debug("Really closed the resultset now.");
 }
   } catch ( NullPointerException e ) {
 getTheLogger().debug( "NullPointer while closing the resultset.", 
e );
 }

I am now waiting for my client to tell me if this fixes the problem (I do 
not have access to an environment where I can make the error occur).

Meanwhile, please can someone tell me what is happening here? Is my fix 
likely to work? Do I have an incorrect setting somewhere? What else can I 
try?

Thank you

William


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




[Repost][PATCH] engine.dtd for xml-stylebook project

2002-03-19 Thread Vincent Massol

Hi,

The xml-stylebook project has been failing for a few days (not the
project itself but projects who are using it). The reason is that
apparently Xerces has become more strict and does not accept XML/DTDs
which do not have a "version" defined.

Here's a patch that makes xml-stylebook work again. Could someone with
the right karma apply it ?

Thanks
-Vincent



engine.dtd.diff
Description: Binary data

-
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: AW: SVG Transparency

2002-03-19 Thread stefan werner

From: "Michael Zehrer" [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 10:21 AM
Subject: AW: AW: SVG Transparency

hi michael,

this png-tranparency-problem, even you use the svg2png serializer is just a
browser-problem.
If you embed a Png-file in a svg-file, transparency will work.

>Hi,

>maybe my question was to svg specific. Does the svg2png serializer can
>make images with transparent background? And what do I have to define in
>my svg to do this?

You don't have to define, just avoid using colors(&browsers).
>Michael

Gruss aus Koeln
Stefan


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




Problems with the LDAP-Transformer on Cocoon 2.0.1

2002-03-19 Thread Katrin_Seiffert


Hello,

I have problems with the LDAP-Transformer on Cocoon 2.0.1 (also on Cocoon
2.0).

I have download the jndi.jar - file and have then perform ".\build.bat
-Dinclude.webapp.libs=yes webapp".  With the new cocoon.war - file I have
installed the cocoon on Tomcat 4.0.1. Cocoon run fine.
I don't know, how can I use the LDAP-Transformer.

I have done the following:

Entry in the sitemap.xmap - file:

 
   
   
   
  


ldapTest.xml - file:




  
ldap://servername:389
l=Test,c=de,o=Werk,o=AG,cn=Konzern

(&(ou=mvd*)(objectClass=organizationalUnit))
  



The result is:


  
ldap://servername:389
l=Test,c=de,o=Werk,o=AG,cn=Konzern

(&(ou=mvd*)(objectClass=organizationalUnit))
  



I don't find an error message.
Wath is wrong?

Thanks in advanced.

Katrin Seiffert





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




HTML Serialization and newlines

2002-03-19 Thread Corey Jewett

I'm using XSL to 'skin' XML content and translate it into XHTML. It
works great as far as the output being valid XHTML and all my tags,
scripts, etc. coming out in the browser source. 

The only problem I'm running into is the insertion of a newline after
every element in my stylesheet. My table elements, specifically TDs and
the content they contain, need to all be one one line. (Note: This
wouldn't be a problem if browser manufacturers could write a parser that
properly ignores newlines, but they don't seem to be able to.) The
reason for this is layout control in DHTML pop-ups. I have no control
over the design, so I'm stuck dealing with whatever evil has already
been done. ;)

Preferably I'd like to preserve the spacing in my XSL sheet (I don't
care about the XML content currently), but I would also be perfectly
happy if the entire document was all on one line, as with the XML
serializer, since that should also fix the problem. BTW The
XMLSerializer changes the content output type to 'text/xml' which
triggers download dialogs so it won't work.

I have searched the archives and all methods described therein (and
duplicated below) seem to have no effect on the output. I am also not
entirely clear on the parsing order (nor all the features of XSL) so if
I'm headed off in the wrong direction or pursuing the impossible I'd
appreciate a hint.

Stripped down version of XSL sheet:

http://www.w3.org/1999/XSL/Transform";
version="1.0">
  
  

  
http://www.w3.org/1999/xhtml";>
  


...
  

  

...



...

  

  




Potential solutions:
The most promising was: . Inversely, I
tried xsl:strip-space elements="*"/> as in:

  
  

which also seemed to have no effect.

I also tried xml:space="preserve", but I believe that's intended more
for my XML source than my stylesheet.

I'm certain cocoon allows better control of the output document, but I'm
at a loss for how to utilize it. Any pointers in the right direction, or
any direction for that matter, would be much appreciated.

Corey


-
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-compling sitemap_xmap

2002-03-19 Thread KOZLOV Roman



Hi Cyril,
I've got the same error message sometimes and when I've tryed to find
the mentioned line I've found out that the java file was corrupted and
cutted up to this line so that method definition (which was started in
this line) was cutted.
I've need to restart the server after this. Perhaps there were some
problems like "out of memory".
    Roman
 
cyril vidal wrote:

Thomas,
John, thanks
a lot for your help. I've looked for the mentionned file.But
actually, it's a little bit too difficult for me to find  the line
573 in the java
file, especially for a missing "}".I've
tried it but without success...I've
forgotten to say to you that when I start Tomcat, I get the following message
in the command line:Server.
run /init:java.net.BindExecption:Adress in use:bindjava.net.BindException:Adress
in use:bind   
at java.net.PlainSocketImpl.socketBind(nativMethod)...Sitemap
location = sitemap.xmapChecking
sitemap reload=true...Starting
service Tomcat-ApacheApache
Tomcat/4.0.1 Is
this normal? Doesn't the above compilation error  come from here?Is
this compilation error a frequent error?Thanks
for your answers,Cyril.

 

 

 

- Original Message -

From:
John
Turk

To: [EMAIL PROTECTED]

Sent: Monday, March 18, 2002 8:14
PM

Subject: RE: error-compling sitemap_xmap
 Cyril
-sitemap.xmap
is converted into a java source file - that's the file the 571 lines refers
to.  You can find that file under the Tomcat work directory (look
for something like cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java).John

-Original
Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002
11:05 AM
To: [EMAIL PROTECTED]
Subject: error-compling sitemap_xmap
 
Hello, When
I want to transform some documents (it doesn't happen with serving static
documents), I obtain a strange  error messagetype
fatal
message Language Exception
description org.apache.cocoon.ProcessingException:
Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 571, column 63: '}' expected. Line 0,
column 0: Note: C:\tomcat\work\localhost\essai\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java
uses or overrides a deprecated API. Recompile with "-deprecation" for details.
1 error, 1 warning
but my sitemap.xmap file doesn't include 571 lignes!!! This is the short
following one:

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


  


  


  


  
  
  
  


  



  
   

  

   

  

   

 

 

 

  


 


Someone could
tell me what's happening?
Thanks for your
help,
Cyril.






begin:vcard 
n:KOZLOV;Roman
tel;work:+783 12 65 85 91, +783 12 62 27 76
x-mozilla-html:FALSE
org:DATAVISION CIS;PDM
adr:;;Gagarina Prospect 25b;Nizhny Novgorod;;;RUSSIA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Roman KOZLOV
end:vcard



-
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: AW: AW: SVG Transparency

2002-03-19 Thread Sharat Koya

Hi the best way to form SVG is to use Jasc Webdraw to draw the SVG you
want then copy the code. The code of course will need to be relabelled
with the svg namespace.

Sharat Koya


-Original Message-
From: Simeon Walker [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 19 March 2002 09:42
To: [EMAIL PROTECTED]
Subject: Re: AW: AW: SVG Transparency

I have found that if I don't draw over the whole area of the svg then
bit where I don't draw will be transparent. If I want a background
colour
then I start by drawing a filled box. There may be other ways - I'm just
starting with SVG's.

Sim

Michael Zehrer wrote:
> Hi,
> 
> maybe my question was to svg specific. Does the svg2png serializer can
> make images with transparent background? And what do I have to define
in
> my svg to do this?
> 
> Michael
> 
> -Ursprngliche Nachricht-
> Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. Mrz 2002 08:02
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: SVG Transparency
> 
> 
> Michael
> 
> There's an example on SVG clipping (which may be useful?)
> at Adobe:
> 
> http://www.adobe.com/svg/basics/jpgs.html
> 
> Derek
> 
> 
[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
>>>
> Hi Chris,
> 
> thanks for the link, but excuse me this is a little bit too complex.
> Can
> you explain the concept?
> 
> 
> Cheers Michael
> 
> -Ursprngliche Nachricht-
> Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
> Gesendet: Montag, 18. Mrz 2002 16:41
> An: [EMAIL PROTECTED] 
> Betreff: RE: SVG Transparency
> 
> 
> http://www.w3.org/TR/SVG/masking.html 
> 
> HTH,
> 
> Chris
> 
> 
>>-Original Message-
>>From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
>>Sent: 18 March 2002 15:24
>>To: Cocoon-Users (E-Mail)
>>Subject: SVG Transparency
>>
>>
>>Hi list,
>>
>>maybe a little offtopic, but how can I have svg images with
> 
> transparent
> 
>>background in Cocoon?
>>
>>Cheers, Michael
>>
>>
>>
> 
> -
> 
>>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]>
> 


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


-
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: AW: AW: SVG Transparency

2002-03-19 Thread Simeon Walker

I have found that if I don't draw over the whole area of the svg then
bit where I don't draw will be transparent. If I want a background colour
then I start by drawing a filled box. There may be other ways - I'm just
starting with SVG's.

Sim

Michael Zehrer wrote:
> Hi,
> 
> maybe my question was to svg specific. Does the svg2png serializer can
> make images with transparent background? And what do I have to define in
> my svg to do this?
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 19. März 2002 08:02
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: SVG Transparency
> 
> 
> Michael
> 
> There's an example on SVG clipping (which may be useful?)
> at Adobe:
> 
> http://www.adobe.com/svg/basics/jpgs.html
> 
> Derek
> 
> 
[EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
>>>
> Hi Chris,
> 
> thanks for the link, but excuse me this is a little bit too complex.
> Can
> you explain the concept?
> 
> 
> Cheers Michael
> 
> -Ursprüngliche Nachricht-
> Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
> Gesendet: Montag, 18. März 2002 16:41
> An: [EMAIL PROTECTED] 
> Betreff: RE: SVG Transparency
> 
> 
> http://www.w3.org/TR/SVG/masking.html 
> 
> HTH,
> 
> Chris
> 
> 
>>-Original Message-
>>From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
>>Sent: 18 March 2002 15:24
>>To: Cocoon-Users (E-Mail)
>>Subject: SVG Transparency
>>
>>
>>Hi list,
>>
>>maybe a little offtopic, but how can I have svg images with
> 
> transparent
> 
>>background in Cocoon?
>>
>>Cheers, Michael
>>
>>
>>
> 
> -
> 
>>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]>
> 


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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




AW: AW: SVG Transparency

2002-03-19 Thread Michael Zehrer

Hi,

maybe my question was to svg specific. Does the svg2png serializer can
make images with transparent background? And what do I have to define in
my svg to do this?

Michael

-Ursprüngliche Nachricht-
Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19. März 2002 08:02
An: [EMAIL PROTECTED]
Betreff: Re: AW: SVG Transparency


Michael

There's an example on SVG clipping (which may be useful?)
at Adobe:

http://www.adobe.com/svg/basics/jpgs.html

Derek

>>> [EMAIL PROTECTED] 18/03/2002 05:50:04 >>>
Hi Chris,

thanks for the link, but excuse me this is a little bit too complex.
Can
you explain the concept?


Cheers Michael

-Ursprüngliche Nachricht-
Von: Chris Newland [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 18. März 2002 16:41
An: [EMAIL PROTECTED] 
Betreff: RE: SVG Transparency


http://www.w3.org/TR/SVG/masking.html 

HTH,

Chris

> -Original Message-
> From: Michael Zehrer [mailto:[EMAIL PROTECTED]] 
> Sent: 18 March 2002 15:24
> To: Cocoon-Users (E-Mail)
> Subject: SVG Transparency
> 
> 
> Hi list,
> 
> maybe a little offtopic, but how can I have svg images with
transparent
> background in Cocoon?
> 
> Cheers, Michael
> 
> 
>
-
> 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: XSP Questions

2002-03-19 Thread Piroumian, Konstantin

> -Original Message-
> From: Je vous site [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: XSP Questions
> 
> 
> hello,
> 
> I try to learn about Xsp, so I read the example.
> 
> I have this fragment
> 
> http://apache.org/xsp";>
> 
> 
> 
> 
> org.apache.cocoon.environment.http.HttpSession session = 
> (org.apache.cocoon.environment.http.HttpSession)request.getSession();
> String s = session.getAttribute("valeur");
> 
> s
> 
> 
> An error occurs. When i erase the  tag, it works.

It can't work without  or it works incorrectly. What kind of an
error do you get?

> I would like to know if the session attribute "valeur" must have been 
> declared before or not.

It's not related to XSP or Cocoon. Attributes behave as they do usually in
servlets, nothing different. So, if you have no "valeur" attribute in your
session then you'll get 'null' string.

> I search any good xsp tutorial and a downloadable api doc of cocoon.

To understand XSP better see generated java source files. You'll find them
somewhere in working directory of your servlet container (e.g. under
/work/localhost/cocoon/ directory in Tomcat).

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> I thank you for any help
> 
> Xavier
> 
> 
> 
> -
> 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: After installation: UnsatisfiedLinkError: libawt: libXp.so.6

2002-03-19 Thread Corey Jewett

I believe I have a solution for your problem. It may become problematic
in a production environment. My tomcat is set up to run under the tomcat
user. the X display :0 is always logged in under corey. Basically X
server does not allow the batik code (which is the AWT requirement) to
connect to the server because it is the tomcat user.

It should be pretty obvious I'm surrently using my workstation as my
cocoon server, so this may not apply to you.

Two solutions:

1. Install an AWT library which is not dependant on X libs (Apparently
all Sun and IBM JDKs are. This is probably the better solution. There's
a link somewhere in the cocoon docs to such an AWT implementation.

2. A quick X solution is to run 'xhost localhost' which adds localhost
to the list of accepted network clients. I have tomcat set up to boot
with the machine via an init.d script, but I've found I have to kill it
and restart after enabling localhost to connect to X. Also you may have
to nuke the contents of tomcat/work to clear the cache.

HTH

Corey


On Mon, 2002-03-18 at 04:43, Jonathan Crenner wrote:
> Hi All,
> 
> I'm trying to have Cocoon successfully running on the following config after 
> having developed/tested my applications with Cocoon under Windows:
> 
> * Linux Mandrake 8.1 kernel 2.4.8
> * Tomcat 4.0.3
> * Cocoon 2.0
> * Sun's jdk 1.4.0
> 
> Cocoon initializes correctly, but after the first request (which fails: The 
> sitemap handler's sitemap is not available.), here is what I get in the 
> error.log file (full listing at the end):
> 
> java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.0/jre/lib/i386/libawt.so: 
> libXp.so.6: cannot open shared object file: No such file or directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> 
> I thought I had a problem with AWT, but I coded a simple AWT application 
> which worked perfectly...
> 
> If I check the libraries with ldconfig -p | grep libXp, I get:
>   libXp.so.6 (libc6) => /usr/X11R6/lib/libXp.so.6
>   libXp.so (libc6) => /usr/X11R6/lib/libXp.so
> 
> So the libXp.so library that Cocoon claims to be missing is available on the 
> system...
> 
> This is not even a problem because my server is headless, otherwise I assume 
> I would have got:
> 
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as 
> the value of the DISPLAY variable.
> 
> Anyway, even if I have an X server running, the exception gets sent as 
> well
> 
> This is neither linked to jdk 1.4 as I upgraded from 1.3 to try to solve the 
> problem and the exception was the exact same with this older version...
> 
> So has anyone got this error or has clues on how to solve it?
> 
> Thanks a lot in advance for your help,
> 
> Jonathan Crenner
> 
> Complete listing of error.log:
> 
> FATAL_E (2002-03-18) 13:04.16:965   [core.datasources.personnel] 
> (Unknown-URI) Unknown-thread/LogKitLogger: Excalibur could not create any 
> connections.  Examine your settings to make sure they are correct.  Make 
> sure you can connect with the same settings on your machine.
> ERROR   (2002-03-18) 13:16.18:526   [sitemap.generator.velocity] (/cocoon/) 
> HttpProcessor[8180][4]/VelocityGenerator: ResourceManager : unable to find 
> resource 'VM_global_library.vm' in any resource loader.
> ERROR   (2002-03-18) 13:16.18:724   [sitemap.generator.velocity] (/cocoon/) 
> HttpProcessor[8180][4]/VelocityGenerator: ResourceManager : unable to find 
> resource 'VM_global_library.vm' in any resource loader.
> ERROR   (2002-03-18) 13:16.18:846   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: There was a problem setting up the 
> connection
> ERROR   (2002-03-18) 13:16.18:849   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: Make sure that your driver is 
> available
> ERROR   (2002-03-18) 13:16.18:874   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: There was a problem setting up the 
> connection
> ERROR   (2002-03-18) 13:16.18:876   [sitemap.generator.xmldb] (/cocoon/) 
> HttpProcessor[8180][4]/XMLDBGenerator: Make sure that your driver is 
> available
> ERROR   (2002-03-18) 13:16.18:924   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: There was a 
> problem setting up the connection
> ERROR   (2002-03-18) 13:16.18:926   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: Make sure that 
> your driver is available
> ERROR   (2002-03-18) 13:16.18:946   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: There was a 
> problem setting up the connection
> ERROR   (2002-03-18) 13:16.18:949   [sitemap.generator.xmldbcollection] 
> (/cocoon/) HttpProcessor[8180][4]/XMLDBCollectionGenerator: Make sure that 
> your driver is available
> ERROR   (2002-03-18) 13:16.23:404   [sitemap] (/cocoon/) 
> HttpProcessor[8180][4]/Handler: Error compiling sitemap
> java.

Basic idea of creating xml document using a form

2002-03-19 Thread Sreenivasan N.

Hi all

I am new to cocoon. Now i am into a project where i need to create xml file 
/ or append an exsisting xml file using forms. Can anyone give the basic 
configuration required to do this in sitemap and some example to do the same
I am using Tomcat 4.0.3 and Cocoon 2.0.1

With regards

vasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 232

Email. [EMAIL PROTECTED]
Per: [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 Questions

2002-03-19 Thread Je vous site

hello,

I try to learn about Xsp, so I read the example.

I have this fragment

http://apache.org/xsp";>



org.apache.cocoon.environment.http.HttpSession session = 
(org.apache.cocoon.environment.http.HttpSession)request.getSession();
String s = session.getAttribute("valeur");

s


An error occurs. When i erase the  tag, it works.
I would like to know if the session attribute "valeur" must have been 
declared before or not.
I search any good xsp tutorial and a downloadable api doc of cocoon.

I thank you for any help

Xavier



-
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: XUL ?

2002-03-19 Thread TREGAN Fabien

>I don't know anything abou XUL but

It's the XML based GUI-definition used by Mozilla.

>you may be interested in
>Web Services User Interface consortium
>http://www.wsui.org/

I've hade a look at this, interesting !
It's not what I was looking for :
-wsui allow to map a component to a web services calls.
-What I'm looking for (and what XUL is) is a standard langauge to describe
the GUI. My probleme is that actually, in (x)HTML, you can easily tell that
you want a text input, and let the CSS define how the input will look like
BUT you have no way to say that you want a menu, and let the CSS define if
it's a drop-down menu, a treeview, ...

So what i'd like to have in my cocoon project is a SIMPLE transformation of
my XML datas in a standardized, easy to generate, gui-describing-xml stream,
and a re-usable layer for gui-description to XHTML transformation.

There are still several question for wich I do not have any answer :
-Should I define my own 'xgui' set of component or should I use (extend ?)
xul or uiml ?
-Is a standard gui-def -> XHTML transformer out of C2 scope ?
-What are the url I should start reading before trying to answer this
questions by myself ?

Any suggestion is, of course, welcome !

fabien.


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

2002-03-19 Thread Piroumian, Konstantin

> -Original Message-
> From: Joseph Rajkumar [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 12:37 AM
> To: cocoon-users
> Subject: XSP Question
> 
> 
> Hi Folks
> 
>   I have taken Konstantin Piroumian's 
> sample logic sheet ie "db.xsp" and I am trying
> to modify it so that I could select from a certain
> range of date ie I want to use the "LIMIT # #" command
> to select and I am using the following syntax
> 
> 
> 
>   
> 
>   
>  
>   
> 
> 
> 
>  
>
>  
>
>  
>
> 

Range attributes are not supported by db logicsheet, it's just a sample. To
add some new features you should add them to the logicsheet (see db.xsl).

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> 
> 
>  
> 
> 
> Any help will be greatly appreciated.
> 
> Joseph Rajkumar
> email: [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]>