Re: Hosting

2002-04-23 Thread Nicola Ken Barozzi

From: webappcabaret [EMAIL PROTECTED]

 Hi,
 
 I would appreciate if you add WebAppCabaret under the Hosting
 section for Cocoon 2.0.2.
 The URL us http://www.webappcabaret.com

Done in CVS.
It will be live on the site with the next site update.

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

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




How to extract XML data from BufferedReader?

2002-04-23 Thread Paolo Scaffardi

I have a XSP page that executes a local process that returns a valid XML
file to standard output. I have a BufferedReader to read from its
output, and that's what i should do:

- Extract the XML tree
- Extract nodes from that tree
- Insert that XML tree into current code position

How can i do that?

Thank you!

ByeBye,
Paolo Scaffardi
Embedded Linux Developer

AIRVENT SAM S.p.A.
via Macanno 32 - 47900 Rimini 
ITALY
Tel. 0541 383294 
Fax. 0541 387086



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

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




RE: logging of xslt output

2002-04-23 Thread Franosch, Heike

Hi Vadim,

thank you very much ;-)
I extended LogTransformer to get the output I want.
Mhh, I think I am on the way understanding the pattern on how to work
with cocoon ;-))

Thanks, Heike

 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 6:06 AM
 To: [EMAIL PROTECTED]
 Subject: RE: logging of xslt output
 
 
  From: Franosch, Heike [mailto:[EMAIL PROTECTED]]
  
  Hi all,
  
  is it possible to log the whole xslt output?
 
 Yes. Use log transformer.
 
 Vadim
 
  
  Thanks, Heike
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Exception in creating Transform Handler

2002-04-23 Thread Andreas Buschka (tops.net)

Hello!

I have the following setup:

- SuSE 8.0 Base System with the bundled Apache
- Cocoon 2.0.2 Binary installation in /opt/jakarta/webapps/cocoon

The base installation works fine, but I cannot add a directory to put my own
XML/XSL files in. I have added the following to the sample sitemap.xmap in
the root directory:

   map:match pattern=topsnet/hcu.xml
 map:generate src=topsnet/documents/hcu.xml/
 map:transform src=topsnet/stylesheets/topsnet2html.xsl type=xslt
 /map:transform
 map:serialize type=html/
   /map:match

The directory topsnet/ exists below the cocoon directory, and both the xml
and xsl files exist.

When I access the URL http://myserver:8080/cocoon/topsnet/hcu.xml , I get
the following error:

An error occurred The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception in creating Transform Handler 

More precisely:

org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler 

The stacktrace is:
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:271)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:204)
at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
295)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:279)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:320)
at
org.apache.cocoon.www.sitemap_xmap.matchN10360(/opt/jakarta/work/localhost/c
ocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:4004)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost/cocoo
n/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3154)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost/cocoo
n/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3091)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at

RE: sendmail

2002-04-23 Thread Ricardo Trindade

I think it would make sense to include it in the binaries anyway. other
stuff that also needs extra libraries is there...

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: terca-feira, 23 de Abril de 2002 10:49
To: [EMAIL PROTECTED]
Subject: Re: sendmail


On 23.Apr.2002 -- 08:30 AM, Derek Hohls wrote:
 Any idea why SendMailTransformer is NOT in the binary??
 Are there problems with it, or is it just the lack of documentation??

I reckon it's because you need javamail and jaf for it which is not
part of j2se (at least for 1.3.1). (Well, this goes for sendmail.xsl
-- but I reckon it holds for the SendMailTransformer as well).

Anyway, to use sendmail.xsl you need to include the logicsheet in your
cocoon.xconf, have the aforementioned packages from Sun and

  xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;


page

xsp:logic
  String text =
Hi,\n+
this mail has been send through a web form ...\n;
/xsp:logic

sendmail:send-mail
  sendmail:from[EMAIL PROTECTED]/sendmail:from
  sendmail:to[EMAIL PROTECTED]/sendmail:to
  sendmail:subjectsubject/sendmail:subject
  sendmail:smtphostmail.your.domain/sendmail:smtphost
  sendmail:bodyxsp:exprtext/xsp:expr/sendmail:body
/sendmail:send-mail

Unfortunately, some had problems using sendmail.xsl -- me too :-|
There has been a patch posted on this list a couple of days ago. I
have modified it a bit and will commit it right now. So, check out CVS
in a couple of minutes.

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/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. http://xml.apache.org/cocoon/faqs.html

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




question concerning cocoon.war

2002-04-23 Thread Gregor Neu E1

Hi all,

somwhere on the install page
http://xml.apache.org/cocoon/installing/index.html; under the heading
Installing on Tomcat 4.0.3  it says:

...
  3.Remove xalan-XXX.jar, xercesImpl-XXX.jar,
batik-libs-XXX.jar, and xml-apis.jar from the cocoon.war archive.

How does that work?

Thanks,
Gregor




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

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




i18n in xslt

2002-04-23 Thread Jerzy Kut

Hi Cocooners!
Can I use i18n in XSLT transformations? I have

any.xml - XML document
body
 my-space:component/ !-- my component with default configuration --
/body

my-space.xsl - logicsheet processing tag for other tags
template match=my-space:component
 struct
  item1any_link/item1
  item2/
 /struct
/template

component.xslt - stylesheet to transform struct to final XHTML tags
xsl:stylesheet version=1.0
xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
template match=struct
 TABLE
  TR
   TD
 Axsl:attribute name=HREFxsl:value-of
select=item1//xsl:attribute
i18n:text i18n:key=goGO!/i18n:text
/A
   /TD
   TD./TD
  /TR
 /TABLE
/template

and here is a trouble! i18n in my stylesheet generates error:
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: java.lang.NullPointerException

sitemap.xmap
   map:transformer name=i18n
src=org.apache.cocoon.transformation.I18nTransformer
catalogue-locationresources/catalogue-location
catalogue-namemessages/catalogue-name
   /map:transformer
...
map:transform type=i18n/ !-- used in any map:match tag --

and in $MY_PROJECT/resources directory i have got

messages.xml
catalogue xml:lang=pl
 message key=goID/message
/catalogue

Where I have error? Need I to use i18n in XML generator only? Help...
It is quite important for me to have separate xslt for my component - in
logicsheet i can't insert i18n tags, because logcsheet don't know about
target xslt.

Best regards
Jerzy Kut



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

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




Re: sendmail xsl problem

2002-04-23 Thread Christian Haul

On 17.Apr.2002 -- 10:38 AM, Perry Molendijk wrote:
 Hello,
 
 When I run the sendmail logicsheet I get a problem with the
 transformation of sendmail.xsl.
 
 Somewhere in the process the values of sendmail:subject, sendmail:body
 and sendmail:smtphost are not added to the generated java code.

I've just checked a version into CVS that works for me (while the
previous showed the errors you see). Please check with CVS version.

Chris.

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

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

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




RE: i18n in xslt

2002-04-23 Thread TREGAN Fabien

not sure this will help but...

my-space.xsl - logicsheet processing tag for other tags
template match=my-space:component
    missing an 
here
 struct
  item1any_link/item1
  item2/
 /struct
/template

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

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




Re: [Problem]sendmail - reference to Session is ambiguous

2002-04-23 Thread Christian Haul

On 18.Apr.2002 -- 10:02 AM, Vadim Gritsenko wrote:
  From: Ehms, Jurgen [mailto:[EMAIL PROTECTED]]
  
  Here is the Bugfix to Sendmail.xsl
  
  - long Path to javax.mail.Session on account of ambiguous to
  org.apache.cocoon.environment.Session
  - changes on Template get-nested-string to prevent ERROR on
  String.getValue()  with missing Argument;
  - added Tags sendmail:bcc,sendmail:cc,sendmail:charset
  
  usage with
  
  xmlns:sendmail=http://apache.org/cocoon/sendmail/1.5

changed that back to version 1.0 since it is compatible with 1.0

  in Head
  ...
  sendmail:send-mail
sendmail:smtphostMailserver/sendmail:smtphost  !-- default is
  127.0.0.1 --
sendmail:from[EMAIL PROTECTED]/sendmail:from !-- required --
sendmail:to[EMAIL PROTECTED]/sendmail:to !-- required --
sendmail:cc[EMAIL PROTECTED]/sendmail:cc
sendmail:bcc[EMAIL PROTECTED]/sendmail:bcc
 sendmail:charsetADRFROM/sendmail:charset
sendmail:subjectTXTSubjekt/sendmail:subject
sendmail:bodyTXTMSG/sendmail:body
sendmail:charsetISO-8859-1/sendmail:charset
  /sendmail:send-mail
  
  I testet with  jdk1.3.1 tomcat-4.0.4-dev2  cocoon-2.0.3-dev
  
  I hope it will help
 
 Thanks,
 
 I will take a look at it sometime.
 
 PS Next time (if any), please don't change formatting too much - it
 makes it harder to track changes.

I've normalized both current version and patched version using emacs
indentions. I have committed both a reformated current version and a
modified version of Jürgen's patch to make actual differences more
visible.

Jürgen, please cross check with CVS if it still solves your problem. I
was facing similar problems which disappeared with the new version so
I think it should do for you as well.

Vadim, sorry for butting in but I was in need of sendmail as well.

Chris.

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

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

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




Re: i18n in xslt

2002-04-23 Thread Jerzy Kut

Sorry - of course. But it don't helps. I paste only abbrewiated snippets
into post.
But thank You.
Trouble is located somewhere in component.xslt i think, but i don't
understand why nullpointerexception is throwed...

- Original Message -
From: TREGAN Fabien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 1:09 PM
Subject: RE: i18n in xslt


 not sure this will help but...

 my-space.xsl - logicsheet processing tag for other tags
 template match=my-space:component
 missing an

 here
  struct
   item1any_link/item1
   item2/
  /struct
 /template

 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




two xml source files

2002-04-23 Thread Arda Balci








I have two xml files. One is for the menu content, the other is for the body content. I want to read
from these two different files with one xsl file, and serialize html.



The menu file is to be used with each page.



I couldnt solve the problem. Do I need a
special pipeline in the sitemap?





Arda Balci

It Consultant










RE: two xml source files

2002-04-23 Thread Luca Morandini

Arda,

you may use a number of solution:

1) Aggregate (using map:aggregate) those XML fiels and feed them to the
XSLT transformer
2) Use document() function inside the stylesheet

Best regards,

P.S.
Plain rext posting next time, please.

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

-Original Message-
From: Arda Balci [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: two xml source files


I have two xml files. One is for the menu content, the other is for the body
content. I want to read from these two different files with one xsl file,
and serialize html.

The menu file is to be used with each page.

I couldn't solve the problem. Do I need a special pipeline in the sitemap?


Arda Balci
It Consultant



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

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




RE: sendmail xsl problem - singleton mail session?

2002-04-23 Thread Christopher Watson

Hello,

I've played with sendmail.xsl a bit recently.
I notice that it uses
javax.mail.Session.getDefaultInstance

I had trouble getting this one to change mail hosts via the parameter:
subsequent messages continued to use the host I'd used in the first message

I haven't delved into javax.mail far enough to be sure,
but my guess from the behaviour is that getDefaultInstance sets up a
Singleton session.

To get round the not-changing-mailhosts problem
I did myself a clone of sendmail.xsl but using
javax.mail.Session.getInstance instead of
javax.mail.Session.getDefaultInstance
and whacked into
\WEB-INF\classes\org\apache\cocoon\components\language\markup\xsp\java

and now I can use different hosts at will

I'm wondering whether it might be a useful improvement to have a parameter
to decide between

javax.mail.Session.getDefaultInstance and javax.mail.Session.getInstance

Hope this is of use to someone

Christopher Watson
 -Original Message-
 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2002 12:07
 To: [EMAIL PROTECTED]
 Subject: Re: sendmail xsl problem


 On 17.Apr.2002 -- 10:38 AM, Perry Molendijk wrote:
  Hello,
 
  When I run the sendmail logicsheet I get a problem with the
  transformation of sendmail.xsl.
 
  Somewhere in the process the values of sendmail:subject,
 sendmail:body
  and sendmail:smtphost are not added to the generated java code.

 I've just checked a version into CVS that works for me (while the
 previous showed the errors you see). Please check with CVS version.

   Chris.

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

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/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. http://xml.apache.org/cocoon/faqs.html

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




Re: two xml source files

2002-04-23 Thread Bert Van Kets


At 14:15 23/04/2002 +0300, you wrote:

I have two xml files. One is for the menu content, the other is for the 
body content. I want to read from these two different files with one xsl 
file, and serialize html.



The menu file is to be used with each page.



I couldn t solve the problem. Do I need a special pipeline in the sitemap?

nope, you need aggregation.  Aggregation will glue the two XML files 
together into 1.  You can then XSLT the result as if it were 1 file.
Check out the aggregation part in 
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

Aggregation is also used in the Cocoon documentation to merge the menu and 
the content.  Check it out.  It's a real beauty on the power of cocoon.  It 
was even better with the generated graphics, although a bit slow.

Bert






Arda Balci

It Consultant




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

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




Re: DTD for the sitemap

2002-04-23 Thread Erwin

On Tue, 23 Apr 2002, neil wrote:

 Has anyone come up with a reasonably rigorous DTD for the sitemap? I know
 its been talked about at various times, but I haven't found one yet.
 I've cobbled together the following DTD, which I find handy with emacs xml
 (psgml) mode. It handles the cocoon-2.0.2 sitemap OK and should be handy
 with other xml DTD aware editors. Any feedback and improvements would be
 welcome.

 The lack of name groups (a SGML DTD feature) in XML DTDs makes the DTD
 very repetitive and awkward to maintain.

I find it a good initiative that someone works on describing the structure
of the sitemap. But, wouldn't it be better easier to make an XML Schema
document? Is the group element from XML Schema not similar to name
groups? This would eliminate the repetition and make it less awkward.

There is a conversion tool, dtd2xs, which you can find at
http://puvogel.informatik.med.uni-giessen.de/dtd2xs/
The resulting XML Schema document may still need some manual labour
though.

Just my two cents.



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

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




Re: DTD for the sitemap

2002-04-23 Thread Konstantin Piroumian

Have a look at:
xml-cocoon2\src\documentation\xdocs\drafts\sitemap-working-draft.xsd
and
xml-cocoon2\src\documentation\xdocs\dtd\sitemap-v02.dtd

Regards,
Konstantin Piroumian

 On Tue, 23 Apr 2002, neil wrote:

  Has anyone come up with a reasonably rigorous DTD for the sitemap? I
know
  its been talked about at various times, but I haven't found one yet.
  I've cobbled together the following DTD, which I find handy with emacs
xml
  (psgml) mode. It handles the cocoon-2.0.2 sitemap OK and should be handy
  with other xml DTD aware editors. Any feedback and improvements would be
  welcome.
 
  The lack of name groups (a SGML DTD feature) in XML DTDs makes the DTD
  very repetitive and awkward to maintain.
 
 I find it a good initiative that someone works on describing the structure
 of the sitemap. But, wouldn't it be better easier to make an XML Schema
 document? Is the group element from XML Schema not similar to name
 groups? This would eliminate the repetition and make it less awkward.

 There is a conversion tool, dtd2xs, which you can find at
 http://puvogel.informatik.med.uni-giessen.de/dtd2xs/
 The resulting XML Schema document may still need some manual labour
 though.

 Just my two cents.



 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Re: two xml source files

2002-04-23 Thread Venkatachalapathi

You may also use this type if xsl processor can be used on this place

 xsl:param name=MenuFile/ at the top.  and build the xsl params at run
time using any xsl processor.  Inside xsl you can refer with MenuFile/... so
on..

Actually I don't know the exact situation where you are using.  But in one
of our project we solved this using param pattern.

If this is the way you want I will elaborate the things...
Sorry for incontinence cause if this approach diverts..

GVPathi



- Original Message -
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 4:54 PM
Subject: RE: two xml source files


 Arda,

 you may use a number of solution:

 1) Aggregate (using map:aggregate) those XML fiels and feed them to the
 XSLT transformer
 2) Use document() function inside the stylesheet

 Best regards,

 P.S.
 Plain rext posting next time, please.

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

 -Original Message-
 From: Arda Balci [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 1:15 PM
 To: [EMAIL PROTECTED]
 Subject: two xml source files


 I have two xml files. One is for the menu content, the other is for the
body
 content. I want to read from these two different files with one xsl file,
 and serialize html.

 The menu file is to be used with each page.

 I couldn't solve the problem. Do I need a special pipeline in the sitemap?


 Arda Balci
 It Consultant



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

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

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




problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4

2002-04-23 Thread Gregor Neu E1

Hi all,

I rebuilt cocoon under jdk1.4 and tried to install it under tomcat4.0.3
(both the full and the light edition)

I carefully followed the installation instructions in
http://xml.apache.org/cocoon/installing/index.html; (except for the bit

 ...3.Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and
xml-apis.jar from the cocoon.war archive

which I still don't know how to do.

starting the full tomcat and opening http://localhost:8080/cocoon/;
gave the following error message:

+
Cocoon 2 - Internal server error

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

...

+++

and trying the light edition gave:

+++

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling
sitemap: java.lang.NoClassDefFoundError:
org/w3c/dom/ranges/DocumentRange

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:536)



Can anybody help?


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

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




Re: special characters for i18n

2002-04-23 Thread Konstantin Piroumian

Hi!

Thanks for sending this. I guess that this is Portuguese?
Could you also translate this line: Portuguese translation was made by
your-name / [your-email /] and the country name of Portugal?

Btw, the simple_dict_pt.xml is in the old dictionary format and it's not
supported any more. Why do you use it?

--
Konstantin Piroumian
[EMAIL PROTECTED]

 Thanks,
 All very useful information.
 Still the solution to my problem was that I (blind me!) did not realize
 that the stupid MS WordPad writes UTF-16.
 Now I am aware of saving my files in UTF-8 (with MS Notepad) and voila
 here goes another extension for the i18n sample.
 (gotta move over to Debian one of these days..)

 For anyone of the commiters who cares I have attached simple_dict_pt.xml
 and messages_pt.xml
 (Was not sure if I should direct this directly to Konstantin Piroumian)

 Horst



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

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




RE: two xml source files

2002-04-23 Thread TREGAN Fabien

Yet another solution to your problem (the one I choosed, don't know if it's
the fastest, but it's re-usable) :

-1 pipe make menu.xml + menu.xsl - xhtml
-2 another pipe make content.xml + menu.xsl - xhtml
-3 another pipe make template.xml + cincludetransformer + html serializer -
html

and, of course, the template.xml file contains an xhtml table and in the
cells of the table a cinclude src=cocoon://xxx / tag.

Main advantage is that it's easy to reuse your menu.xsl in a new webapp
(each html component have its own separated entry DTD and XSL, you do not
have 1 big xsl that handles every data types)

(btw, if someone have cons for this method, let me know)

fabien.

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

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




Re: two xml source files

2002-04-23 Thread Derek Hohls

Slightly away from what you wanted but still useful- 
have a look at the 'Bonebreaker' tutorial at :
http://www.cocooncenter.org/cc/documents/resources/navigation/index.html

It also has an approach for a separate menu and body file
(makes use of the document() function in xsl AFAIK)

Derek

 [EMAIL PROTECTED] 23/04/2002 01:15:27 
I have two xml files. One is for the menu content, the other is for
the
body content. I want to read from these two different files with one
xsl
file, and serialize html.
 
The menu file is to be used with each page.
 
I couldn't solve the problem. Do I need a special pipeline in the
sitemap?
 
 
Arda Balci
It Consultant
 

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

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




RE: two xml source files

2002-04-23 Thread Arda Balci

Thank you both, I am giving more detail:

I would like to see your approach, I tried to use the param but I was
unsuccessful. I used the cocooncenter.org navigation menu example as a
pointer.

I can pass the parameter contaning the menufile name to the xsl file
(the parameter is defined on the sitemap)

the sitemap contains:
   map:match pattern=mutekv112/*.html
map:generate src=mutekv112/{1}.xml/
map:transform src=mutekv112/stylesheets/page2html01.xsl
map:parameter name=menu-file value=mutekv112/menu.xml/
/map:transform
map:serialize type=html/
   /map:match

but I can't call the content from the menu.xml file using document()
function.

I just want to process the menu.xml content to the *.html file.

The menu.xml simply contains:

content
main label=Corporate href=profile.html/main
main label=Industry href=industry.html/main
main label=Trading Philosophy href=tradingp.html/main
main label=Trading Strategy href=strategy.html/main
main label=Markets href=markets.html/main
main label=Advisory Services href=topics.html/main
/content


what should be the correct syntax on the page2html01.xsl to display the
menu.xml content next to the *.xml content?

Or should I use something else?

I just received the third approach from fabien, I will take a look at
that also,

Arda Balci
It Consultant

-Original Message-
From: Venkatachalapathi [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 2:45 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: two xml source files

You may also use this type if xsl processor can be used on this place

 xsl:param name=MenuFile/ at the top.  and build the xsl params at
run
time using any xsl processor.  Inside xsl you can refer with
MenuFile/... so
on..

Actually I don't know the exact situation where you are using.  But in
one
of our project we solved this using param pattern.

If this is the way you want I will elaborate the things...
Sorry for incontinence cause if this approach diverts..

GVPathi



- Original Message -
From: Luca Morandini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 4:54 PM
Subject: RE: two xml source files


 Arda,

 you may use a number of solution:

 1) Aggregate (using map:aggregate) those XML fiels and feed them to
the
 XSLT transformer
 2) Use document() function inside the stylesheet

 Best regards,

 P.S.
 Plain rext posting next time, please.

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

 -Original Message-
 From: Arda Balci [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 1:15 PM
 To: [EMAIL PROTECTED]
 Subject: two xml source files


 I have two xml files. One is for the menu content, the other is for
the
body
 content. I want to read from these two different files with one xsl
file,
 and serialize html.

 The menu file is to be used with each page.

 I couldn't solve the problem. Do I need a special pipeline in the
sitemap?


 Arda Balci
 It Consultant



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

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
Please check that your question has not already been answered in the
FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Antwort: Problem with special german characters and LDAP-Transformer

2002-04-23 Thread Christoph . Oberle

Hi,

 I use the LDAP-Transformer. It's works fine. But I have a Problem with
 special german characters. I must use the character set ISO-8859-1.
 The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion
 from xml to html using xslt occurs no Problems with special german
 characters.
 What can I do?

We had a similar problem with our Oracle database when we used html forms.
Everything worked fine, when we typed data in the form and sent it to the xsp
page for processing.
But when we read data from the database and used it to initialize the form data,
it got encrypted.
Our solution - which, in my opinion, is not really good - is to tell the html
serializer to generate output in the ISO-8859-1 character set instead of the
normal UTF-8 character set. Then all the data, which is serialized to html
stays in the ISO-8859-1 character set, which has been read from the database.

You can achieve this by including the following definition for the html
serializer in the map:serializers section of your sitemap:

   map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
doctype-public-//W3C//DTD HTML 4.01 Transitional//EN/doctype-public
encodingISO-8859-1/encoding
omit-xml-declarationyes/omit-xml-declaration
   /map:serializer

We did not put this into the main sitemap. We use it only in some sub-sitemaps,
where we need it.

Greetings | Viele Grüße
Christoph



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

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




Re: i18n in xslt

2002-04-23 Thread KOZLOV Roman

Hello,

Do you specify request parameter locale with value for which
messages_lng.xml exists?

Roman

Jerzy Kut wrote:

 Sorry - of course. But it don't helps. I paste only abbrewiated snippets
 into post.
 But thank You.
 Trouble is located somewhere in component.xslt i think, but i don't
 understand why nullpointerexception is throwed...

 - Original Message -
 From: TREGAN Fabien [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 23, 2002 1:09 PM
 Subject: RE: i18n in xslt

  not sure this will help but...
 
  my-space.xsl - logicsheet processing tag for other tags
  template match=my-space:component
  missing an
 
  here
   struct
item1any_link/item1
item2/
   /struct
  /template
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: two xml source files

2002-04-23 Thread TREGAN Fabien

but I can't call the content from the menu.xml file using document()
function.

the document() function can be used in an xpath inside the xslt :

template match=document(foo.xml)/root

fabien.

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

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




Re: i18n in xslt

2002-04-23 Thread Jerzy Kut

No. I have messages.xml only. If i think properly when i have no specialized
message_locale.xml file general message.xml will be used - am i right? So i
needn't specify locale request parameter...?
When i try to use i18n tags in my any.xml all works good.
But i want to avoid this and try to use i18n in transformer:

transformer pipe is:

map:generate type=serverpages src=any.xml/ !-- here runs logicsheets
that insert component data processed on by XSLT transformers --
map:transform type=xslt src=component.xsl/ !-- any component XSLT
transformer --
map:transform type=i18n/
map:serialize type=xml/

My main idea is to transformer component.xsl insert internationalization
information in XHTML like:
- button labels,
- comment,
- help text for user
in my component only. But i want to avoid insertion this information in file
processed by generator and passing it on. But maybe it is better (simpler)
way?

- Original Message -
From: KOZLOV Roman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 2:02 PM
Subject: Re: i18n in xslt


 Hello,

 Do you specify request parameter locale with value for which
 messages_lng.xml exists?

 Roman

 Jerzy Kut wrote:

  Sorry - of course. But it don't helps. I paste only abbrewiated snippets
  into post.
  But thank You.
  Trouble is located somewhere in component.xslt i think, but i don't
  understand why nullpointerexception is throwed...
 
  - Original Message -
  From: TREGAN Fabien [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 23, 2002 1:09 PM
  Subject: RE: i18n in xslt
 
   not sure this will help but...
  
   my-space.xsl - logicsheet processing tag for other tags
   template match=my-space:component
  
missing an
  
   here
struct
 item1any_link/item1
 item2/
/struct
   /template
  
   -
   Please check that your question has not already been answered in the
   FAQ before posting. 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. 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. 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. http://xml.apache.org/cocoon/faqs.html

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





Re: i18n in xslt

2002-04-23 Thread Konstantin Piroumian

 No. I have messages.xml only. If i think properly when i have no
specialized
 message_locale.xml file general message.xml will be used - am i right? So
i
 needn't specify locale request parameter...?

Yes, exactly like that!

 When i try to use i18n tags in my any.xml all works good.
 But i want to avoid this and try to use i18n in transformer:

 transformer pipe is:

 map:generate type=serverpages src=any.xml/ !-- here runs
logicsheets
 that insert component data processed on by XSLT transformers --
 map:transform type=xslt src=component.xsl/ !-- any component XSLT
 transformer --
 map:transform type=i18n/
 map:serialize type=xml/

This should work.


 My main idea is to transformer component.xsl insert internationalization
 information in XHTML like:
 - button labels,
 - comment,
 - help text for user
 in my component only. But i want to avoid insertion this information in
file
 processed by generator and passing it on. But maybe it is better (simpler)
 way?

What is the exact problem with it? Have you looked at logs?

--
Konstantin


 - Original Message -
 From: KOZLOV Roman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 23, 2002 2:02 PM
 Subject: Re: i18n in xslt


  Hello,
 
  Do you specify request parameter locale with value for which
  messages_lng.xml exists?
 
  Roman
 
  Jerzy Kut wrote:
 
   Sorry - of course. But it don't helps. I paste only abbrewiated
snippets
   into post.
   But thank You.
   Trouble is located somewhere in component.xslt i think, but i don't
   understand why nullpointerexception is throwed...
  
   - Original Message -
   From: TREGAN Fabien [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, April 23, 2002 1:09 PM
   Subject: RE: i18n in xslt
  
not sure this will help but...
   
my-space.xsl - logicsheet processing tag for other tags
template match=my-space:component
   
 missing an
   
here
 struct
  item1any_link/item1
  item2/
 /struct
/template
   
  
 -
Please check that your question has not already been answered in the
FAQ before posting. 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. 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. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




AW: problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4

2002-04-23 Thread Jörn Heid

I think there were some posts for it before.
And I hope I'm right ;)

The problem is Java 1.4. It has older versions of the xml libs.

So, create a dir in jre/lib/ext of your java installation named
endorsed. There you should put the removed jars in order to replace
the Java 1.4 xml libs.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Gregor Neu E1
Gesendet: Dienstag, 23. April 2002 13:44
An: [EMAIL PROTECTED]
Betreff: problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4


Hi all,

I rebuilt cocoon under jdk1.4 and tried to install it under tomcat4.0.3
(both the full and the light edition)

I carefully followed the installation instructions in
http://xml.apache.org/cocoon/installing/index.html; (except for the bit

 ...3.Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and
xml-apis.jar from the cocoon.war archive

which I still don't know how to do.

starting the full tomcat and opening http://localhost:8080/cocoon/;
gave the following error message:

+
Cocoon 2 - Internal server error

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

...

+++

and trying the light edition gave:

+++

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling
sitemap: java.lang.NoClassDefFoundError:
org/w3c/dom/ranges/DocumentRange

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:536)



Can anybody help?


-
Please check that your question has not already been answered in the FAQ
before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Re: problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4

2002-04-23 Thread Gerhard Hipfinger

Hi Gregor,

I use the same components like you, and it works fine for me. The 
modification of the war file seems to be nessesary. You can use zip or 
jar to extract the war file, remove the xalan, xerxes and batik jar 
files, and produce a war file again.

if you don't know to handle jar (the command line utility that comes 
with jdk), you can simply remove the jar files from the src distribution 
(make a backup before) in the build webapp directory and produce the war 
file with the standard cocoon build process.

or just copy the webapp directory to you $TOMCAT_HOME/webapps dir (don't 
forget to rename the dest directory to cocoon if you want to use the url 
http://yourhost/cocoon/)

hope this will help.

regards,
Gerhard

Gregor Neu E1 wrote:
 Hi all,
 
 I rebuilt cocoon under jdk1.4 and tried to install it under tomcat4.0.3
 (both the full and the light edition)
 
 I carefully followed the installation instructions in
 http://xml.apache.org/cocoon/installing/index.html; (except for the bit
 
  ...3.Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and
 xml-apis.jar from the cocoon.war archive
 
 which I still don't know how to do.


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

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




Re: Antwort: Problem with special german characters and LDAP -Transformer

2002-04-23 Thread Berin Loritsch

[EMAIL PROTECTED] wrote:
 Hi,
 
 
I use the LDAP-Transformer. It's works fine. But I have a Problem with
special german characters. I must use the character set ISO-8859-1.
The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion
from xml to html using xslt occurs no Problems with special german
characters.
What can I do?
 
 
 We had a similar problem with our Oracle database when we used html forms.
 Everything worked fine, when we typed data in the form and sent it to the xsp
 page for processing.
 But when we read data from the database and used it to initialize the form data,
 it got encrypted.
 Our solution - which, in my opinion, is not really good - is to tell the html
 serializer to generate output in the ISO-8859-1 character set instead of the
 normal UTF-8 character set. Then all the data, which is serialized to html
 stays in the ISO-8859-1 character set, which has been read from the database.
 

This is an issue with your database vendor not supporting other encoding
standards.  Bear in mind that old Netscape 4.x browsers do not handle
UTF-8 encodings well at all.  The newer browsers all do support it.

That said, Readers are supposed to make the conversions for you...


-- 

They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
 - Benjamin Franklin


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

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




RE: Exception in creating Transform Handler

2002-04-23 Thread Vadim Gritsenko

 From: Andreas Buschka (tops.net) [mailto:[EMAIL PROTECTED]]
 
 Hello!
 
 I have the following setup:
 
 - SuSE 8.0 Base System with the bundled Apache
 - Cocoon 2.0.2 Binary installation in /opt/jakarta/webapps/cocoon
 
 The base installation works fine, but I cannot add a directory to put
my own
 XML/XSL files in. I have added the following to the sample
sitemap.xmap in
 the root directory:
 
map:match pattern=topsnet/hcu.xml
  map:generate src=topsnet/documents/hcu.xml/
  map:transform src=topsnet/stylesheets/topsnet2html.xsl
type=xslt
  /map:transform
  map:serialize type=html/
/map:match
 
 The directory topsnet/ exists below the cocoon directory, and both the
xml
 and xsl files exist.
 
 When I access the URL http://myserver:8080/cocoon/topsnet/hcu.xml , I
get
 the following error:
 
 An error occurred The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 
 Exception in creating Transform Handler
 
 More precisely:
 
 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler

 The stacktrace is:
 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler
 at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandle
r(XS
 LTProcessorImpl.java:271)
 at

org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandle
r(XS
 LTProcessorImpl.java:204)
 at

org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.j
ava:
 295)
 at

...


You have an error in the topsnet/stylesheets/topsnet2html.xsl.

Vadim



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

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




RE: question concerning cocoon.war

2002-04-23 Thread Vadim Gritsenko

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gregor Neu
E1
 
 Hi all,
 
 somwhere on the install page
 http://xml.apache.org/cocoon/installing/index.html; under the heading
 Installing on Tomcat 4.0.3  it says:
 
 ...
   3.Remove xalan-XXX.jar, xercesImpl-XXX.jar,
 batik-libs-XXX.jar, and xml-apis.jar from the cocoon.war archive.
 
 How does that work?

What do you mean? I did not get your question.

Vadim


 Thanks,
 Gregor
 


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

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




RE: [Problem]sendmail - reference to Session is ambiguous

2002-04-23 Thread Vadim Gritsenko

 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 
 On 18.Apr.2002 -- 10:02 AM, Vadim Gritsenko wrote:
   From: Ehms, Jurgen [mailto:[EMAIL PROTECTED]]
  
   Here is the Bugfix to Sendmail.xsl
  
   - long Path to javax.mail.Session on account of ambiguous to
   org.apache.cocoon.environment.Session
   - changes on Template get-nested-string to prevent ERROR on
   String.getValue()  with missing Argument;
   - added Tags sendmail:bcc,sendmail:cc,sendmail:charset
  
   usage with
  
   xmlns:sendmail=http://apache.org/cocoon/sendmail/1.5
 
 changed that back to version 1.0 since it is compatible with 1.0
 
   in Head
   ...
   sendmail:send-mail
 sendmail:smtphostMailserver/sendmail:smtphost  !-- default
is
   127.0.0.1 --
 sendmail:from[EMAIL PROTECTED]/sendmail:from !-- required --
 sendmail:to[EMAIL PROTECTED]/sendmail:to !-- required --
 sendmail:cc[EMAIL PROTECTED]/sendmail:cc
 sendmail:bcc[EMAIL PROTECTED]/sendmail:bcc
  sendmail:charsetADRFROM/sendmail:charset
 sendmail:subjectTXTSubjekt/sendmail:subject
 sendmail:bodyTXTMSG/sendmail:body
 sendmail:charsetISO-8859-1/sendmail:charset
   /sendmail:send-mail
  
   I testet with  jdk1.3.1 tomcat-4.0.4-dev2  cocoon-2.0.3-dev
  
   I hope it will help
 
  Thanks,
 
  I will take a look at it sometime.
 
  PS Next time (if any), please don't change formatting too much - it
  makes it harder to track changes.
 
 I've normalized both current version and patched version using emacs
 indentions. I have committed both a reformated current version and a
 modified version of Jürgen's patch to make actual differences more
 visible.
 
 Jürgen, please cross check with CVS if it still solves your problem. I
 was facing similar problems which disappeared with the new version so
 I think it should do for you as well.
 
 Vadim, sorry for butting in but I was in need of sendmail as well.

That's all right, and even thanks. This was not bugging me, so it could
lie dormant quite a while.

Could you please also fix 2.0.3 branch? ;)


Vadim


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


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

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




Re: question concerning cocoon.war

2002-04-23 Thread Gregor Neu E1

I am a newbie and didn't know how to handle war-files (until somebody
told that they work like jars...)

Gregor


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

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




Disposed ComponentSelector error?

2002-04-23 Thread Derek Hohls

I am having problems connecting to a database from Cocoon
(mySQL).  I have added all the usual entries in cocoon.xconf
(and have used other databases in a similar way - so its not
the driver..)  The same setup works fine on the test machine.

The root.log reports the following problem (as the first entry):

WARN(2002-04-23) 15:06.19:309   [root]
(/cocoon/indicators/reports/indlisttest)
HttpProcessor[8080][4]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: You cannot select a
Component from a disposed ComponentSelector:
java.lang.IllegalStateException: You cannot select a Component from a
disposed ComponentSelector
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:175)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.process(AbstractEventPipeline.java:101)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStreamPipeline.java:140)



What could cause this error?

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

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




Re: sendmail

2002-04-23 Thread Martin Mauri

Hi, I have Cocoon 1.8.2 with its source code but I cannot find the
SendMailTransformer source, what could be happening??

- Original Message -
From: Liam Morley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 5:52 PM
Subject: Re: sendmail


 Take a look at the SendMailTransformer (included in the source, but not in
 the binary). That might help. (It has a little bit of documentation on how
 to use it.)

 Liam Morley


 On Wed, 10 Apr 2002, Sharat Koya wrote:

  I was looking through the cocoon src files today and spotted the
  sendmail.xsl file for sending e-mail. How do I implement this and is
there
  any documentation on it?
 
  Bobby Koya
 
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




Re: i18n in xslt

2002-04-23 Thread Jerzy Kut

My stylesheet:

component.xsl:

?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

 xsl:template match=test-navi

  xsl:param name=action select=action/

  TABLE
   FORM METHOD=post NAME=batch
xsl:attribute name=ACTIONxsl:value-of
select=$action//xsl:attribute
TR
 TD
  A
   xsl:attribute name=HREFxsl:value-of
select=$action//xsl:attribute
   xsl:attribute name=ONCLICKdocument.batch.submit(); return
(false)/xsl:attribute
   xsl:texti18n:text i18n:key=goGO!/i18n:text/xsl:text
  /A
 /TD
/TR
   /FORM
  /TABLE

 /xsl:template

 xsl:template match=node()|@* priority=-1
  xsl:copy
   xsl:apply-templates select=node()|@*/
  /xsl:copy
 /xsl:template

/xsl:stylesheet

messages.xml
catalogue xml:lang=pl
 message key=goIDZ/message
/catalogue

in error.log is:
ERROR   (2002-04-23) 14:56.55:129[core.xslt-processor](/cocoon/my/employees)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
file:/E:/tomcat/webapps/cocoon/my/stylesheets/component.xsl; Line 64; Column
99;
; SystemID: file:/E:/tomcat/webapps/cocoon/my/stylesheets/component.xsl;
Line#: 64; Column#: 99
javax.xml.transform.TransformerException: i18n:text is not allowed in this
position in the stylesheet!

sitemap.log and rest have something like (i can send if it will be needed):
ERROR   (2002-04-23) 14:56.55:149   [sitemap](/cocoon/my/employees)
HttpProcessor[8080][4]/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: java.lang.NullPointerException

Trouble is that my stylesheet need to insert i18n tag which will be
processed on. Then i get error. When i have i18n in serverpages generator
all work ok.
I suppose i have trouble with namespaces but where i need insert it (xmlns)?
I have it in xsl:stylesheet.

- Original Message -
From: Konstantin Piroumian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 2:28 PM
Subject: Re: i18n in xslt


  No. I have messages.xml only. If i think properly when i have no
 specialized
  message_locale.xml file general message.xml will be used - am i right?
So
 i
  needn't specify locale request parameter...?

 Yes, exactly like that!

  When i try to use i18n tags in my any.xml all works good.
  But i want to avoid this and try to use i18n in transformer:
 
  transformer pipe is:
 
  map:generate type=serverpages src=any.xml/ !-- here runs
 logicsheets
  that insert component data processed on by XSLT transformers --
  map:transform type=xslt src=component.xsl/ !-- any component XSLT
  transformer --
  map:transform type=i18n/
  map:serialize type=xml/

 This should work.

 
  My main idea is to transformer component.xsl insert internationalization
  information in XHTML like:
  - button labels,
  - comment,
  - help text for user
  in my component only. But i want to avoid insertion this information in
 file
  processed by generator and passing it on. But maybe it is better
(simpler)
  way?

 What is the exact problem with it? Have you looked at logs?

 --
 Konstantin

 
  - Original Message -
  From: KOZLOV Roman [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 23, 2002 2:02 PM
  Subject: Re: i18n in xslt
 
 
   Hello,
  
   Do you specify request parameter locale with value for which
   messages_lng.xml exists?
  
   Roman
  
   Jerzy Kut wrote:
  
Sorry - of course. But it don't helps. I paste only abbrewiated
 snippets
into post.
But thank You.
Trouble is located somewhere in component.xslt i think, but i don't
understand why nullpointerexception is throwed...
   
- Original Message -
From: TREGAN Fabien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 1:09 PM
Subject: RE: i18n in xslt
   
 not sure this will help but...

 my-space.xsl - logicsheet processing tag for other tags
 template match=my-space:component

  missing an

 here
  struct
   item1any_link/item1
   item2/
  /struct
 /template

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

Re: Problem with special german characters and LDAP -Transformer

2002-04-23 Thread Berin Loritsch

[EMAIL PROTECTED] wrote:
 Hello,
 
 I have still Problems with the special german characters and the
 LDAP-Transformer.
 When I write
 map:serializer name=html mime-type=text/html src
 =org.apache.cocoon.serialization.HTMLSerializer
 doctype-public-//W3C//DTD HTML 4.01 Transitional//EN/doctype-public
 encodingISO-8859-1/encoding
 omit-xml-declarationyes/omit-xml-declaration
 /map:serializer
 nothing happens.
 
 When I make in the xsp-page  between xsp:logic a ldap-query, the
 characters return fine. Why return the LDAP-Transformer false characters?
 
 Thank you in advance
 
 Katrin Seiffert
 
 

:/

Unfortunately I can't hope to tell you.  I looked at the LDAPTransformer
code, and it is a royal mess.  It is difficult to figure out what is
going on, and where the real pulling of the information is done.


-- 

They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
 - Benjamin Franklin


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

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




RE: how to use the RequestGenerator

2002-04-23 Thread Sreedhar Chintalapaty

See Andreas Hartman's excellent article
http://www.cocooncenter.de/cc/documents/resources/request-params/index.html

Sreedhar

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of LEBRETON Philippe
Sent: Tuesday, April 23, 2002 11:36 AM
To: Cocoon User
Subject: how to use the RequestGenerator


I want to use the RequestGenerator with a parameter.
on my sitemap how i can declare some parameter to post with the request?

Thank

Philipe LEBRETON


-
Please check that your question has not already been answered in the
FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




i18n in api session cookie

2002-04-23 Thread Alexander Smirnoff

Hi,

Two questions,

1. I would like to use i18n transformation within proprietary 
Java API with cocoon framework on top. How could I do that? 
If any have a code example for it?

2. When creating session if client disabled cookies how to 
enable URL session tracking? Just need a hint.

Thanks,
Alex.



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

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




Re: i18n in api session cookie

2002-04-23 Thread Konstantin Piroumian

 Hi,

 Two questions,

 1. I would like to use i18n transformation within proprietary
 Java API with cocoon framework on top. How could I do that?
 If any have a code example for it?

Have seen org.apache.cocoon.transformation.I18nTransformer? Is it what you
are looking for or you need something else?

--
Konstantin


 2. When creating session if client disabled cookies how to
 enable URL session tracking? Just need a hint.

 Thanks,
 Alex.



 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Re: i18n in api session cookie

2002-04-23 Thread Alexander Smirnoff


- Original Message - 
From: Konstantin Piroumian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 12:32 PM
Subject: Re: i18n in api  session cookie


  Hi,
 
  Two questions,
 
  1. I would like to use i18n transformation within proprietary
  Java API with cocoon framework on top. How could I do that?
  If any have a code example for it?
 
 Have seen org.apache.cocoon.transformation.I18nTransformer? Is it what you
 are looking for or you need something else?

Yes that what I want to do - call his *private* getString() helper method...
But then I have to repeat all initialization and setup logic... Is there a more clean 
way to do it?

 --
 Konstantin
 
 
  2. When creating session if client disabled cookies how to
  enable URL session tracking? Just need a hint.
 

What about disabled cookies? I'm not getting valid session on return calls...

  Thanks,
  Alex.
 
 
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: i18n in xslt

2002-04-23 Thread Piroumian Konstantin

 From: Jerzy Kut [mailto:[EMAIL PROTECTED]] 
 
 Sorry - of course. But it don't helps. I paste only 
 abbrewiated snippets
 into post.
 But thank You.
 Trouble is located somewhere in component.xslt i think, but i don't
 understand why nullpointerexception is throwed...

The stylesheet itself seems Ok to me. See logs in WEB-INF/logs for the exact
problem.

--
Konstantin Piroumian 
[EMAIL PROTECTED]


 
 - Original Message -
 From: TREGAN Fabien [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 23, 2002 1:09 PM
 Subject: RE: i18n in xslt
 
 
  not sure this will help but...
 
  my-space.xsl - logicsheet processing tag for other tags
  template match=my-space:component
 
  missing an
 
  here
   struct
item1any_link/item1
item2/
   /struct
  /template
 
  
 -
  Please check that your question has not already been answered in the
  FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: xslt transformer caching

2002-04-23 Thread Vadim Gritsenko

 From: Stephen Ng [mailto:[EMAIL PROTECTED]]
 
 The xslt transformer doesn't know if a file that is being imported has
 changed and needs to be reloaded instead of using the cached version.
 
 I.e.:
 
 map:transform src=foo.xslt/
 
 If foo.xslt xsl:import's bar.xslt, Cocoon doesn't check to see if
 bar.xslt has changed. Is there a way in the sitemap to explicitly
 specify that foo.xslt depends on bar.xslt?

No.

Vadim


 Stephen Ng
 
 Lumigent


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

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




Iteration inside xsp

2002-04-23 Thread Volker Schneider

Dear colleagues,

I want to use xsp to retrieve data from the session. The only problem is,
that I cannot put list content out to the xsp page.

If I want to write out a list of names which are stored in a vector, how can
I produce an xsp-page like this:

...
nameVolker/name
namePeter/name
nameBetty/name
...

an so on. Sure I can iterate in java, but then there must be a chance to
select what data should be put out.

Where can I find a more detailed xsp-tutorial, where every xsp-tag is
declared. The things I found mostly were incomplete.

Best regards
- Volker -


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

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




RE: Iteration inside xsp

2002-04-23 Thread Lai, Harry

Hi Volker,

I'm sure there are better tutorials, but this article comparing JSP and XSP
actually has a decent table of XSP tags on page 3.

http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html

Also, with regards to your question, there's an example on page 2 of this
article that iterates through an array and outputs each element within its
own xhtml element.  Here's the example:

table
  xsp:logic
for (int i = 0; i lt; items.length; i++) {
  tr
td
  xsp:expritems[i].getName()/xsp:expr
/td
  /tr
}
  /xsp:logic
/table

Anyway, hope that helps!

Harry

-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: Iteration inside xsp


Dear colleagues,

I want to use xsp to retrieve data from the session. The only problem is,
that I cannot put list content out to the xsp page.

If I want to write out a list of names which are stored in a vector, how can
I produce an xsp-page like this:

...
nameVolker/name
namePeter/name
nameBetty/name
...

an so on. Sure I can iterate in java, but then there must be a chance to
select what data should be put out.

Where can I find a more detailed xsp-tutorial, where every xsp-tag is
declared. The things I found mostly were incomplete.

Best regards
- Volker -


-
Please check that your question has not already been answered in the
FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: Iteration inside xsp

2002-04-23 Thread Artur Bialecki

Look at xsp.xsl in org/apache/cocoon/components/language/xsp/java for
list of all xsp tags.

To solve your problem:
xsp:logic
  for( Iterator iter = v.iterator; iter.hasNext();) {
   namexsp:expr(String)iter.next()/xsp:expr/name
  }
/xsp:logic

You can also use xsp:element if you don't know what the name
tag will be.

Artur...



 -Original Message-
 From: Volker Schneider [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 2:15 PM
 To: [EMAIL PROTECTED]
 Subject: Iteration inside xsp
 
 
 Dear colleagues,
 
 I want to use xsp to retrieve data from the session. The only problem is,
 that I cannot put list content out to the xsp page.
 
 If I want to write out a list of names which are stored in a vector, how can
 I produce an xsp-page like this:
 
 ...
 nameVolker/name
 namePeter/name
 nameBetty/name
 ...
 
 an so on. Sure I can iterate in java, but then there must be a chance to
 select what data should be put out.
 
 Where can I find a more detailed xsp-tutorial, where every xsp-tag is
 declared. The things I found mostly were incomplete.
 
 Best regards
 - Volker -
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: Iteration inside xsp

2002-04-23 Thread Volker Schneider

Hi Harry,

thank you, this helps. But there is another question coming up, maybe you
know the answer as well:

How can I access the session or request object whithin the xsp logic
sheet(xsp:logic). Inside the xsp:expr I can access it using the
session-namespace. But inside the logic sheet I have no ObjectModel.

Thank you, best regards
- Volker -

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 23. April 2002 20:46
To: '[EMAIL PROTECTED]'
Subject: RE: Iteration inside xsp


Hi Volker,

I'm sure there are better tutorials, but this article comparing JSP and XSP
actually has a decent table of XSP tags on page 3.

http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html

Also, with regards to your question, there's an example on page 2 of this
article that iterates through an array and outputs each element within its
own xhtml element.  Here's the example:

table
  xsp:logic
for (int i = 0; i lt; items.length; i++) {
  tr
td
  xsp:expritems[i].getName()/xsp:expr
/td
  /tr
}
  /xsp:logic
/table

Anyway, hope that helps!

Harry

-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: Iteration inside xsp


Dear colleagues,

I want to use xsp to retrieve data from the session. The only problem is,
that I cannot put list content out to the xsp page.

If I want to write out a list of names which are stored in a vector, how can
I produce an xsp-page like this:

...
nameVolker/name
namePeter/name
nameBetty/name
...

an so on. Sure I can iterate in java, but then there must be a chance to
select what data should be put out.

Where can I find a more detailed xsp-tutorial, where every xsp-tag is
declared. The things I found mostly were incomplete.

Best regards
- Volker -


-
Please check that your question has not already been answered in the
FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: Iteration inside xsp

2002-04-23 Thread Lai, Harry

Hi Volker,

In an XSP doc (or logicsheet), there are a set of built-in variables that
you can use to access servlet objects (taken from the comments in the java
file derived from an XSP doc):

/* Built-in parameters available for use */
// context- ServletContext
// request- org.apache.cocoon.environment.Request
// response   - org.apache.cocoon.environment.Response
// parameters - parameters defined in the sitemap

Here's an example that accesses the request:

xsp:logic
  String name = request.getParameter(name);

  if (name != null) {
pbHello, xsp:exprname/xsp:expr!/b/p
  }
/xsp:logic

Anyway, I think that's what you were asking about, but if it wasn't, let me
know, and I'll take another shot.  =)

Harry

PS  If you don't want to access the servlet objects directly, Cocoon also
provides some logicsheets that you can use (xsp-request, xsp-response,
xsp-session, xsp-cookie).


-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Iteration inside xsp


Hi Harry,

thank you, this helps. But there is another question coming up, maybe you
know the answer as well:

How can I access the session or request object whithin the xsp logic
sheet(xsp:logic). Inside the xsp:expr I can access it using the
session-namespace. But inside the logic sheet I have no ObjectModel.

Thank you, best regards
- Volker -

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 23. April 2002 20:46
To: '[EMAIL PROTECTED]'
Subject: RE: Iteration inside xsp


Hi Volker,

I'm sure there are better tutorials, but this article comparing JSP and XSP
actually has a decent table of XSP tags on page 3.

http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html

Also, with regards to your question, there's an example on page 2 of this
article that iterates through an array and outputs each element within its
own xhtml element.  Here's the example:

table
  xsp:logic
for (int i = 0; i lt; items.length; i++) {
  tr
td
  xsp:expritems[i].getName()/xsp:expr
/td
  /tr
}
  /xsp:logic
/table

Anyway, hope that helps!

Harry

-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: Iteration inside xsp


Dear colleagues,

I want to use xsp to retrieve data from the session. The only problem is,
that I cannot put list content out to the xsp page.

If I want to write out a list of names which are stored in a vector, how can
I produce an xsp-page like this:

...
nameVolker/name
namePeter/name
nameBetty/name
...

an so on. Sure I can iterate in java, but then there must be a chance to
select what data should be put out.

Where can I find a more detailed xsp-tutorial, where every xsp-tag is
declared. The things I found mostly were incomplete.

Best regards
- Volker -


-
Please check that your question has not already been answered in the
FAQ before posting. 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. 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. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: special characters for i18n

2002-04-23 Thread Piroumian Konstantin
Title: Message




Hi!

Thanks for sending this. I guess that this is 
Portuguese?
Could you also translate this line: "Portuguese translation was made by 
your-name / [your-email /]" and 
the name of Portugal?

Btw, 
the simple_dict_pt.xml is in the old dictionary format and it's not supported 
any more.Why do you use 
it?
-- 
Konstantin 
Piroumian kpiroumian@apache.org 


  
  -Original Message-From: Horst Rutter 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:49 
  AMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Re: special characters for 
  i18n
  Thanks,
  All very useful information.
  Stillthe solution to my problem was that I (blind me!) 
  did not realize that the stupid MS WordPad writes UTF-16.
  Now I am aware of saving my files inUTF-8 (with MS 
  Notepad) and voila here goes another extension for the i18n 
  sample.
  (gotta move over to Debian one of these days..)
  
  For anyone of the commiterswho caresI have 
  attached simple_dict_pt.xml and 
  messages_pt.xml
  (Was not sure if I should direct this directly to Konstantin 
  Piroumian)
  
  Horst
  


RE: two xml source files

2002-04-23 Thread Piroumian Konstantin
Title: Message



Use 
aggregation. Add something like this to a matcher:
...
map:aggregate element="site" 
map:part 
src="cocoon:/menu/main.xml"/ map:part src="cocoon:/content/{1}.xml" label="content"//map:aggregatemap:transform src="site2html.xsl"/map:serialize/
...

You should define also 
separate matchers for /content/*.xml and 
/menu/*.xml.

See 
Cocoon samples sitemap to get the idea 
(/src/webapp/samples).

-- 
Konstantin 
Piroumian kpiroumian@apache.org

  
  -Original Message-From: Arda Balci 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:15 
  PMTo: [EMAIL PROTECTED]Subject: two xml source 
  files
  
  I have two xml files. One is for 
  the menu content, the other is for the body content. 
  I want to read from these two different files with one xsl file, and serialize 
  html.
  
  The menu file is to be used with 
  each page.
  
  I couldn't solve the problem. Do I 
  need a special pipeline in the sitemap?
  
  
  Arda 
  Balci
  It 
  Consultant
  


Does stylesheet can take/keep sessionid from outside?

2002-04-23 Thread Peng, Meimin
Title: Does stylesheet can take/keep sessionid from outside? 






Hi, 
I've a question here. Please help. 
Does stylesheet can take/keep session id from outside?? 
Thanks.
--Zoe


CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately.




Re: Iteration inside xsp

2002-04-23 Thread Christian Haul

On 23.Apr.2002 -- 08:50 PM, Volker Schneider wrote:
 Hi Harry,
 
 thank you, this helps. But there is another question coming up, maybe you
 know the answer as well:
 
 How can I access the session or request object whithin the xsp logic
 sheet(xsp:logic). Inside the xsp:expr I can access it using the
 session-namespace. But inside the logic sheet I have no ObjectModel.

You can happily mix java and logicsheet tags. E.g.

xsp:logic
String somevalue = xsp-request:get-parameter name=somevalue/;
/xsp:logic

mind the ; at the end of the line!

Chris.

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

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

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




RE: How to pass parameters to stylesheet from sitemap

2002-04-23 Thread Stephen Ng

Sorry; you are right, it works fine, this looks like a bug in my
stylesheet somewhere.

Thanks,

Steve

 -Original Message-
 From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, April 23, 2002 12:04 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: How to pass parameters to stylesheet from sitemap
 
 
  Is there a way to pass in a parameter to a stylesheet run 
 by the xslt 
  transformer?
 
  I want to do something like this:
 
  map:transform src=paginate.xslt
  map:parameter name=pageLength value=5/
  /map:transform
 
  But it doesn't seem to work.
 
 It works here. Did declare xsl:param name=pageLength / in 
 your stylesheet?
 
 Konstantin
 
 
  Thanks,
 
  Steve
 
 
  
 -
  Please check that your question has not already been 
 answered in the 
  FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




RE: sendmail

2002-04-23 Thread Mathews, Silvy (HQP)
Title: RE: sendmail





Hi Everybody,


Could anybody send me the updated files for sending the mail from cocoon. I am not able to get it from the cvs since my proxy settings do not allow http tunnelling. If you have the complete example, that would be wonderful ( from sending an email using cocoon). I am doing a Proof Of Concept for this.

Any help is appreciated.
Thanks,


Silvy


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:49 AM
To: [EMAIL PROTECTED]
Subject: Re: sendmail



On 23.Apr.2002 -- 08:30 AM, Derek Hohls wrote:
 Any idea why SendMailTransformer is NOT in the binary??
 Are there problems with it, or is it just the lack of documentation??


I reckon it's because you need javamail and jaf for it which is not
part of j2se (at least for 1.3.1). (Well, this goes for sendmail.xsl
-- but I reckon it holds for the SendMailTransformer as well).


Anyway, to use sendmail.xsl you need to include the logicsheet in your
cocoon.xconf, have the aforementioned packages from Sun and


 xsp:page language=java
 xmlns:xsp=http://apache.org/xsp
 xmlns:xsp-request=http://apache.org/xsp/request/2.0
 xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0
 
 
 page


 xsp:logic
  String text = 
Hi,\n+
this mail has been send through a web form ...\n;
 /xsp:logic


 sendmail:send-mail
  sendmail:from[EMAIL PROTECTED]/sendmail:from
  sendmail:to[EMAIL PROTECTED]/sendmail:to
  sendmail:subjectsubject/sendmail:subject
  sendmail:smtphostmail.your.domain/sendmail:smtphost
  sendmail:bodyxsp:exprtext/xsp:expr/sendmail:body
 /sendmail:send-mail


Unfortunately, some had problems using sendmail.xsl -- me too :-| 
There has been a patch posted on this list a couple of days ago. I
have modified it a bit and will commit it right now. So, check out CVS
in a couple of minutes.


 Chris.


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


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


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





RE: Iteration inside xsp

2002-04-23 Thread Volker Schneider

Hi Harry,

thank you for your reply. It tried the request variable. I tried to get
the session from the request but it didn't work.
?xml version=1.0?

xsp:page xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  create-session=true

xsp:structure
  xsp:includeorg.apache.cocoon.environment.Request/xsp:include
  xsp:includeorg.apache.cocoon.environment.Session/xsp:include
/xsp:structure

  xsp:logic
// get the request
request.getSession();

  /xsp:logic

/xsp:page

The error message was:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
ShowRoute_xsp:
Line 70, column 22: identifier expected
Line 70, column 12: cannot access class getSession; file
request\getSession.class not found
Line 0, column 0:
2 errors

Do you have an idea, what could be the reason for this?

Thank you, best regards
- Volker -

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 23. April 2002 21:17
To: '[EMAIL PROTECTED]'
Subject: RE: Iteration inside xsp


Hi Volker,

In an XSP doc (or logicsheet), there are a set of built-in variables that
you can use to access servlet objects (taken from the comments in the java
file derived from an XSP doc):

/* Built-in parameters available for use */
// context- ServletContext
// request- org.apache.cocoon.environment.Request
// response   - org.apache.cocoon.environment.Response
// parameters - parameters defined in the sitemap

Here's an example that accesses the request:

xsp:logic
  String name = request.getParameter(name);

  if (name != null) {
pbHello, xsp:exprname/xsp:expr!/b/p
  }
/xsp:logic

Anyway, I think that's what you were asking about, but if it wasn't, let me
know, and I'll take another shot.  =)

Harry

PS  If you don't want to access the servlet objects directly, Cocoon also
provides some logicsheets that you can use (xsp-request, xsp-response,
xsp-session, xsp-cookie).


-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Iteration inside xsp


Hi Harry,

thank you, this helps. But there is another question coming up, maybe you
know the answer as well:

How can I access the session or request object whithin the xsp logic
sheet(xsp:logic). Inside the xsp:expr I can access it using the
session-namespace. But inside the logic sheet I have no ObjectModel.

Thank you, best regards
- Volker -

-Original Message-
From: Lai, Harry [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 23. April 2002 20:46
To: '[EMAIL PROTECTED]'
Subject: RE: Iteration inside xsp


Hi Volker,

I'm sure there are better tutorials, but this article comparing JSP and XSP
actually has a decent table of XSP tags on page 3.

http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html

Also, with regards to your question, there's an example on page 2 of this
article that iterates through an array and outputs each element within its
own xhtml element.  Here's the example:

table
  xsp:logic
for (int i = 0; i lt; items.length; i++) {
  tr
td
  xsp:expritems[i].getName()/xsp:expr
/td
  /tr
}
  /xsp:logic
/table

Anyway, hope that helps!

Harry

-Original Message-
From: Volker Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: Iteration inside xsp


Dear colleagues,

I want to use xsp to retrieve data from the session. The only problem is,
that I cannot put list content out to the xsp page.

If I want to write out a list of names which are stored in a vector, how can
I produce an xsp-page like this:

...
nameVolker/name
namePeter/name
nameBetty/name
...

an so on. Sure I can iterate in java, but then there must be a chance to
select what data should be put out.

Where can I find a more detailed xsp-tutorial, where every xsp-tag is
declared. The things I found mostly were incomplete.

Best regards
- Volker -


-
Please check that your question has not already been answered in the
FAQ before posting. 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. 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. http://xml.apache.org/cocoon/faqs.html

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


Stylesheet directed termination(newbie)

2002-04-23 Thread Kenny Chow


cocoon
  /project
   browse.xsp
   browse-test.xsl

sitemap
map:match pattern=browse.xsp
 map:generate  src=browse.xsp/
 map:serialize/
/map:match

browse.xsp generates the following xml file
?xml version=1.0 encoding=UTF-8?
page xmlns:xsp=http://apache.org/xsp;
xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:card=http://deibcres.com/card/1.0;
  
titleBrowse card/title

content
 
   card
 authorsomeAuthor/author
   /card   
/content
!-- end browse.xsp --

The generation is ok, but once I add 
map:transformer src=browse-test.xsl/ 
to the sitemap, Stylesheet directed termination
occurs and the error.log doesn't report the actual
error.

browse-test.xsl looks like this
?xml version=1.0?
  xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
version=1.0

  xsl:template match=content
xsl:apply-templates/
  /xsl:template


  xsl:template match=card
h1xsl:value-of select=author//h1
  /xsl:template
!-- end browse-test.xsl --

Please give a hint if anything here is/are wrong and
thanks for getting this far. :)

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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

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




Does HSSF Serializer work?

2002-04-23 Thread Seth Ladd

Hello everyone,

Before I go delving into everything, I wanted to ask if people were
successful with using the HSSF Serializer.  Currently it generates XLS
files that crash Excel.

I am using the latest (as in tonight) nightly build of Cocoon, Resin
2.0.2 and JDK 1.4 on Linux 2.4.17.  The gnumeric XML file was created by
Gnumeric 1.04.  I recently saw a patch for HSSF serializer that said it
now works with 1.04+.  So far, it doesn't seem to make a difference.

Any hints or prior experience?

I'll keep looking into it.

Thanks very much for your help,
Seth




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

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




RE: Iteration inside xsp

2002-04-23 Thread Vadim Gritsenko

 From: Volker Schneider [mailto:[EMAIL PROTECTED]]
 
 Hi Harry,
 
 thank you for your reply. It tried the request variable. I tried to
get
 the session from the request but it didn't work.
 ?xml version=1.0?
 
 xsp:page xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
   create-session=true
 
 xsp:structure
   xsp:includeorg.apache.cocoon.environment.Request/xsp:include
   xsp:includeorg.apache.cocoon.environment.Session/xsp:include
 /xsp:structure

  xsp:logic
// Class declarations
private static int counter = 0;
  /xsp:logic

  my-doc-root
 
   xsp:logic
 // get the request
 request.getSession();
 
   /xsp:logic

  /my-doc-root

 /xsp:page
 
 The error message was:
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error
compiling
 ShowRoute_xsp:
 Line 70, column 22: identifier expected
 Line 70, column 12: cannot access class getSession; file
 request\getSession.class not found
 Line 0, column 0:
 2 errors
 
 Do you have an idea, what could be the reason for this?

Yes. See above.

Vadim


 Thank you, best regards
 - Volker -
 


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

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




Problems with XSP

2002-04-23 Thread cyril vidal



HY!

Iwould liketo execute a 
very simple XSP sample. Here is my sitemap:

map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0" 
map:components map:generators 
default="file" map:generator name="file" 
src="org.apache.cocoon.generation.FileGenerator"/ 
map:generator name="serverpages" 
src="org.apache.cocoon.generation.ServerPagesGenerator"//map:generators

map:transformers 
default="xslt" map:transformer name="xslt" 
src="org.apache.cocoon.transformation.TraxTransformer"//map:transformers

map:readers 
default="resource" map:reader name="resource" 
src="org.apache.cocoon.reading.ResourceReader"//map:readers

map:serializers 
default="html" map:serializer name="xml" mime-type="text/xml" 
src="org.apache.cocoon.serialization.XMLSerializer"/ 
map:serializer name="html" mime-type="text/html" 
src="org.apache.cocoon.serialization.HTMLSerializer"/ 
map:serializer name="svg2png" 
src="org.apache.cocoon.serialization.SVGSerializer" 
mime-type="image/png"/ map:serializer name="fo2pdf" 
src="org.apache.cocoon.serialization.FOPSerializer" 
mime-type="application/pdf"//map:serializers

map:matchers 
default="wildcard" map:matcher name="wildcard" 
src="org.apache.cocoon.matching.WildcardURIMatcher"//map:matchers

/map:components

map:pipelines 
map:pipeline map:match 
pattern="index.html" 
map:read src="static/index.html" 
mime-type="text/html"/ 
/map:match /map:pipeline

 
map:pipeline map:match 
pattern="CinemaFO.pdf" map:generate 
src="static/CinemaFO.xml"/ 
map:transform 
src="transforms/CinemaFO.xsl"/ 
map:serialize type="fo2pdf"/ 
/map:match /map:pipeline

map:pipeline map:match 
pattern="compteur.xsp" map:generate 
type="serverpages" 
src="transforms/compteur.xsp"/ 
map:transform 
src="transforms/page-html.xsl"/ 
map:serialize/ /map:match 
/map:pipeline

/map:pipelines 
/map:sitemap

Unfortunately, when I execute the 
file compteur.xsp, I get the following error message:

type 
fatal
message 
Language Exception
description org.apache.cocoon.ProcessingException: 
Language Exception: org.apache.cocoon.components.language.LanguageException: 
Could not load class for program 'org\apache\cocoon\www\transforms\compteur_xsp' 
due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.transforms.compteur_xsp
sender 
org.apache.cocoon.servlet.CocoonServlet
source 
Cocoon servlet
request-uri/essai/compteur.xsp

path-infocompteur.xspSomeone could help me, please?Thanks,Cyril.


RE: Stylesheet directed termination(newbie)

2002-04-23 Thread Vadim Gritsenko

 From: Kenny Chow [mailto:[EMAIL PROTECTED]]
 
 
 cocoon
   /project
browse.xsp
browse-test.xsl
 
 sitemap
 map:match pattern=browse.xsp
  map:generate  src=browse.xsp/
  map:serialize/
 /map:match
 
 browse.xsp generates the following xml file
 ?xml version=1.0 encoding=UTF-8?
 page xmlns:xsp=http://apache.org/xsp;
 xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
 xmlns:esql=http://apache.org/cocoon/SQL/v2;
 xmlns:card=http://deibcres.com/card/1.0;
 
 titleBrowse card/title
 
 content
 
card
  authorsomeAuthor/author
/card
 /content
 !-- end browse.xsp --
 
 The generation is ok, but once I add
 map:transformer src=browse-test.xsl/


map:transform src=browse-test.xsl/



 to the sitemap, Stylesheet directed termination
 occurs and the error.log doesn't report the actual
 error.

It does. Search for sentence:

Sitemap contains invalid tag


Vadim

 
 browse-test.xsl looks like this
 ?xml version=1.0?
   xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 
   xsl:template match=content
 xsl:apply-templates/
   /xsl:template
 
 
   xsl:template match=card
 h1xsl:value-of select=author//h1
   /xsl:template
 !-- end browse-test.xsl --
 
 Please give a hint if anything here is/are wrong and
 thanks for getting this far. :)
 


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

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




RE: passing request parameters to xsl using cocoon 2.x: Null Pointer

2002-04-23 Thread Zachary A Lendon


I got it working!  Thanks for your help - was a struggle but got
there...more fun to be had!  Glad to be apart of the group...



   

Zachary A 

Lendon  To: [EMAIL PROTECTED]   

zalendon@JonesD cc:   

ay.com  Subject: RE: passing request parameters 
to xsl using cocoon 2.x: Null 
Pointer

   

04/23/2002 12:44   

PM 

Please respond 

to cocoon-users

   

   






Thank you for the info.  I get the below error even when accessing the
samples in cocoon.  I've tried various map permutations, and even taken out
everything else (pipeline related) out of my framework dir's sitemap.  It
looks like from below that the issue is with my main sitemap, but I've
changed it back to the original!  From the java source, it appears to be
getting null when creating a new instance of EventPipeline...

Here is my sitemap log error msg:
ERROR   (2002-04-23) 12:34.08:457
[sitemap](/cocoon/framework/framework.xml) web-13/sitemap_xmap: Processing
of resource failed
java.lang.NullPointerException
 at
org.apache.cocoon.www.sitemap_xmap.process(/opt/JRun31/servers/default/tmp/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3105)

 at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1416)
 at
allaire.jrun.session.JRunSessionService.service(JRunSessionService.java:1082)

 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:1270)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:89)

 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1552)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1542)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:364)
 at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:115)
 at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

Here is my pipeline entry:
map:pipelines
  map:pipeline

 map:match pattern=**
 map:generate src=framework.xml/
 map:transform type=xslt src=framework.xsl/
 map:parameter name=use-request-parameters value=true/
 map:serialize/
   /map:match
map:handle-errors
 map:transform src=context://stylesheets/system/error2html.xsl/
 map:serialize status-code=404/
   /map:handle-errors

   !-- samples automount --

  /map:pipeline
 /map:pipelines




Vadim Gritsenko

vadim.gritsenko@ve To:
[EMAIL PROTECTED]
rizon.net  cc:

Subject: RE: passing
request parameters to xsl using cocoon 2.x

04/23/2002 12:16 AM

Please respond to

cocoon-users







 From: Zachary A Lendon [mailto:[EMAIL PROTECTED]]


 My sitemap entry is in there.

These are transformer's declarations, I meant pipeline entry.


 The page.xml file tells me what logicsheet
 to use.

There is no way in Cocoon 2 you could do this.


  I'm not doing mapping persay in the sitemap file,

You must.


 only trying to
 make sure it transforms my xsl properly.  And it seems to not be
processing
 my requests properly,

Exactly my point - you must have appropriate pipeline entry.


 and my syntax appears proper so I feel it must be a
 setting thing.  Documentation is not clear on how to 

Simple esql problem, I think

2002-04-23 Thread jsexton


I working with on a simple database query with cocoon 2.  I've done
this with the older cocoon, but here I'm having a processing problem
of some sort with the taglib.

The connection pool is fine, that's working, however something goes
wrong with the esql.  It just sents the client back the xml without an
attempt to do the query.  I can even add an xsl and that works too,
but the database action never happens.  Again, I know the connection
pool is active because I can see it's logins in the database (I'm
using Sybase ASE).

Details


I created an xml file as follows:

?xml version=1.0?
xsp:page language=java
  xmlns:xsp=http://www.apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;

page
esql:connection
  esql:poolmy_pool/esql:pool
  transactions
  esql:execute-query
esql:queryselect 123450/esql:query
esql:results
  headerheader info/header
  esql:row-results
n
  idesql:get-int column=Number//id
/nr
  /esql:row-results
  footerfooter info/footer
/esql:results
  /esql:execute-query
  /transactions
/esql:connection
/page
/xsp:page

And a sitemap entry as follows:

map:pipeline
 map:match pattern=**myfile.xml
   map:generate type=file src=docs/myfile.xml/
   map:serialize type=xml/
 /map:match
/map:pipeline

This all works, except that the raw xml (the file as-is) is all that
is sent to the browser, as type xml as expected.  But it's as though
the esql tag were just any tag.  Nothing is executed.  The cocoon
error file contains the following lines:

ERROR   (2002-04-23) 13:03.48:207   [sitemap.generator.velocity] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/VelocityGenerator: ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-04-23) 13:03.48:239   [sitemap.generator.velocity] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/VelocityGenerator: ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-04-23) 13:03.48:266   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: There was a problem setting up the connection
ERROR   (2002-04-23) 13:03.48:266   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-04-23) 13:03.48:272   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: There was a problem setting up the connection
ERROR   (2002-04-23) 13:03.48:273   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-04-23) 13:03.48:296   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: There was a 
problem setting up the connection
ERROR   (2002-04-23) 13:03.48:296   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: Make sure that 
your driver is available
ERROR   (2002-04-23) 13:03.48:301   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: There was a 
problem setting up the connection
ERROR   (2002-04-23) 13:03.48:301   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: Make sure that 
your driver is available
ERROR   (2002-04-23) 13:04.04:087   [sitemap.generator.velocity] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/VelocityGenerator: ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-04-23) 13:04.04:121   [sitemap.generator.velocity] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/VelocityGenerator: ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-04-23) 13:04.04:129   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: There was a problem setting up the connection
ERROR   (2002-04-23) 13:04.04:129   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-04-23) 13:04.04:133   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: There was a problem setting up the connection
ERROR   (2002-04-23) 13:04.04:134   [sitemap.generator.xmldb] (/cocoon/myfile.xml) 
HttpProcessor[8080][0]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-04-23) 13:04.04:138   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: There was a 
problem setting up the connection
ERROR   (2002-04-23) 13:04.04:139   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) HttpProcessor[8080][0]/XMLDBCollectionGenerator: Make sure that 
your driver is available
ERROR   (2002-04-23) 13:04.04:142   [sitemap.generator.xmldbcollection] 
(/cocoon/myfile.xml) 

question about using custom tags in coccon

2002-04-23 Thread Jayashri Visvanathan

Hi All,
   I am new to coccon. I have the following question. 
   Is it possible to use custom tags ( user defined tags) intermixed with the 
tags provided by cocoon framework ? If so could you please point me to some 
documentation on how to do that ?
   
   I would greatly appreciate if you could email me directly as I am not 
subscribed to the alias.
   
   Thanks lot
   -Jayashri


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

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




Problem using xpath parameter with HTMLGenerator

2002-04-23 Thread Jeremy Crosbie

I am trying to use the HTMLGenerator and the optional xpath parameter,
similar to how the Yahoo screenscrape example works. However, the XPath
expression I need is determined by a URL parameter, below is the map:match
section I am using:

map:match pattern=content.xml
  map:act type=request
map:generate 
  type=html
  src=http://www.somesite.com/xml;
  map:parameter name=xpath value=/html//font/p[text() = '{id}'] /
/map:generate
  /map:act
  map:serialize type=xml /
/map:match

The {id} parameter I specify does not appear to get expanded. When I look at
the HTMLGenerator code, by the time the expression is passed here the XPath
expression looks like this:

html//font/p[text() = '']

It looks like it wants to be expanded but something is missing. Is this a
bug? Thanks for your help.

--jeremy


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

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




Re: special characters for i18n

2002-04-23 Thread Horst Rutter

Sorry for not mentioning..
Yes, this is portuguese, but I don't want to mislead anybody, because I am not.
The translation was provided by my wife who speaks native Portuguese.

Send me your (latest) version of simple_dict.xml unless it's in cvs and I fill in the 
blanks.

As far as providing simple_dict_pt.xml..
The reason I did this is I thought you are supposed to:
Maintain a master dictionary that keeps growing (simple_dict.xml in this case)
and then whenever you add a new locale or make corrections,
extract out simple_dict_xx.xml using merge.xsl. (the template)
Make the changes and merge back into the big one.
Then use convert.xsl to generate the resource bundle messages_xx.xml used by Cocoon.
This is what I concluded based on whatever documentation there was.
;(

So how is this supposed to work now?
you edit simple_dict.xml and then use convert.xsl to regenerate the message catalog 
for the locale in question?
That's it? 

Horst

- Original Message - 
From: Konstantin Piroumian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 4:50 AM
Subject: Re: special characters for i18n


 
 Hi!
 
 Thanks for sending this. I guess that this is Portuguese?
 Could you also translate this line: Portuguese translation was made by
 your-name / [your-email /] and the country name of Portugal?
 
 Btw, the simple_dict_pt.xml is in the old dictionary format and it's not
 supported any more. Why do you use it?
 
 --
 Konstantin Piroumian
 [EMAIL PROTECTED]
 
  Thanks,
  All very useful information.
  Still the solution to my problem was that I (blind me!) did not realize
  that the stupid MS WordPad writes UTF-16.
  Now I am aware of saving my files in UTF-8 (with MS Notepad) and voila
  here goes another extension for the i18n sample.
  (gotta move over to Debian one of these days..)
 
  For anyone of the commiters who cares I have attached simple_dict_pt.xml
  and messages_pt.xml
  (Was not sure if I should direct this directly to Konstantin Piroumian)
 
  Horst
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. 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. http://xml.apache.org/cocoon/faqs.html

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




Re: Does HSSF Serializer work?

2002-04-23 Thread Andrew C. Oliver

I'm on RHL 7.2, kernel 2.4.17/2.4.9-RH, JDK 1.3.1, Tomcat 4.0.1/4.0.4b2,
Have Gnumeric 1.0.4.  Do the samples not work?  Can you open a bug and
attach defective sheets and/or the xml/xsl you're using to generate it. 
Are any exceptions thrown?  Version of Excel?  (97+ is required)

-Andy

On Tue, 2002-04-23 at 15:52, Seth Ladd wrote:
 Hello everyone,
 
 Before I go delving into everything, I wanted to ask if people were
 successful with using the HSSF Serializer.  Currently it generates XLS
 files that crash Excel.
 
 I am using the latest (as in tonight) nightly build of Cocoon, Resin
 2.0.2 and JDK 1.4 on Linux 2.4.17.  The gnumeric XML file was created by
 Gnumeric 1.04.  I recently saw a patch for HSSF serializer that said it
 now works with 1.04+.  So far, it doesn't seem to make a difference.
 
 Any hints or prior experience?
 
 I'll keep looking into it.
 
 Thanks very much for your help,
 Seth
 
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


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

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




Does xsl:attribute-set work? Cocoon-2.0.2

2002-04-23 Thread Steven Punte

Dear Cocoon User Group:

  Is anyone sucessfully using the Xsl tag
  attribute-set with Cocoon 2.0.2 sucessfully.

  I always get a null pointer expection even
  when I just boil it down to the one line:

xsl:attribute-set name=foo/

  Hmm:  pretty hard to wrong here, but maybe.

  Steve Punte

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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

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




Stupid installation/config problem HELLLLLPPPPP

2002-04-23 Thread Gal Nitzan



Just finished upgrading from 2.0.1 - 2.0.2 with 
Tomcat 4.0.4 b2 on win2k and my old code doesn't seem to be found by 
Cocoon.

I keep on getting:

WARN (2002-04-24) 
01:45.44:507 [sitemap.generator.serverpages](/cocoon/dealtime) 
HttpProcessor[8080][2]/ServerPagesGenerator: Failed to load class: 
java.lang.NoClassDefFoundError: 
com/dealtime/test/TestClassWARN (2002-04-24) 
01:45.44:507 [sitemap](/cocoon/dealtime) 
HttpProcessor[8080][2]/PipelineNode: Resource not found in pipeline at 
file:/F:/Projects/Java/TestNewCocoon/cocoon/sitemap.xmap:402:17org.apache.cocoon.ResourceNotFoundException: 
com/dealtime/test/TestClassat 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:212)
in my sitemap.log


can someone help me on this?

Regards,

Gal


RE: ComponentException fatal error

2002-04-23 Thread Kari Whitcomb

I tried using Tomcat 4.0.4 b2 with Cocoon 2.0.2 as was suggested and got it working 
for a brief moment.  But then I tried removing the cocoon webapp and re-deploying it, 
and now I'm getting the same errors as before with Tomcat 4.0.3. I've even tried 
reinstalling Tomcat 4.0.4 and Cocoon 2.0.2 again.  And I'm still stuck.  Any more 
thoughts on how to fix this?

Thanks,
Kari
- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
Date: Tue, 23 Apr 2002 10:23:42 -0400
To:  [EMAIL PROTECTED]
Subject: RE: ComponentException fatal error


  From: Kari Whitcomb [mailto:[EMAIL PROTECTED]]
  
  You seem to be suggesting that there is no way to fix it with Tomcat
 4.0.3.
  Is that correct? 
 
 No, I was able to make it run. It more or less documented in install
 instructions. However, for the newcomers I suggest first to try with
 something stable, and only then (if still there is time/desire) try
 troublesome combinations.
 
 
  What in particular is causing the incompatibility?
 
 AFAIU, changes in the XML API class loading in the servlet spec and the
 way it is implemented in the 4.0.2-4.0.3 is the major PITA. Tomcat 4.0.4
 looks to be working without issues, as Tomcat 4.0.1 was.
 
 Vadim
 
  
  Thanks,
  Kari
  
  - Original Message -
  From: Vadim Gritsenko [EMAIL PROTECTED]
  Date: Tue, 23 Apr 2002 09:37:36 -0400
  To:  [EMAIL PROTECTED]
  Subject: RE: ComponentException fatal error
  
  
From: Kari Whitcomb [mailto:[EMAIL PROTECTED]]
   
If at all possible, I would rather not use Tomcat 4.0.4 since it
 is
   still
beta.  Is there any way to work around the problem using Tomcat
 4.0.3?
  
   Tomcat 4.0.1 is second choice. Stable, and installation is a snap.
  
   Vadim
  
  
-Kari
- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
Date: Tue, 23 Apr 2002 00:38:12 -0400
To:  [EMAIL PROTECTED]
Subject: RE: ComponentException fatal error
   
   
  From: Kari Whitcomb [mailto:[EMAIL PROTECTED]]
 
  Hello all,
 
  I'm trying to get an installation of Cocoon 2.0.2 working on a
   Tru64
 server
  running Tomcat 4.0.3 and Java 1.3.1.  I've followed all the
 instructions in

 Have you tried Tomcat 4.0.4?

 Vadim

  the cocoon docs (including copying certain jar files to
 tomcat/common/lib,
  etc.)  When I try and access the top level page  (/cocoon/)
 I'm
 getting an
  Internal server error with the message 'markup-languages:
 ComponentSelector
  could not access the Component for hint: sitemap'.  I saw one
   relevent
 thread
  in the mailinglist archives, but with no resolution.  I've
   included
 the
  relevant error message from the cocoon log files with the
 stack
   trace.
 If you
  need all the debug messages, let me know and I'll send them
 too.
   Any
 help
  sorting out what is going on will be greatly appreciated.
 
  Thanks,
  Kari Whitcomb
  [EMAIL PROTECTED]
 
  ERROR   (2002-04-22) 17:22.12:804   [access](/cocoon/)
 Thread-5/CocoonServlet:
  Problem with servlet
 org.apache.avalon.framework.component.ComponentException:
  markup-languages: ComponentSelector could not access the
 Component
   for
 hint:
  sitemap
  at
 

  
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select
  (ExcaliburComponentSelector.java:293) (pc 257)
  at
 

  
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
 d
  (ProgramGeneratorImpl.java:289) (pc 333)
  at org.apache.cocoon.sitemap.Handler.run
   (Handler.java:270)
 (pc 47)
  at java.lang.Thread.run  (Thread.java:484)
   (pc
 11)
  java.lang.Exception: Could not create enough Components to
 service
 your
  request.
  at org.apache.avalon.excalibur.pool.DefaultPool.get
  (DefaultPool.java:133) (pc 110)
  at

 org.apache.avalon.excalibur.component.PoolableComponentHandler.get
  (PoolableComponentHandler.java:126) (pc 38)
  at
 

  
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select
  (ExcaliburComponentSelector.java:283) (pc 191)
  at
 

  
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
 d
  (ProgramGeneratorImpl.java:289) (pc 333)
  at org.apache.cocoon.sitemap.Handler.run
   (Handler.java:270)
 (pc 47)
  at java.lang.Thread.run  (Thread.java:484)
   (pc
 11)
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 

___

RE: Stylesheet directed termination(newbie)

2002-04-23 Thread Kenny Chow

Got it. Very appreciate it Vadim.

--- Vadim Gritsenko [EMAIL PROTECTED]
wrote:
  From: Kenny Chow [mailto:[EMAIL PROTECTED]]
  
  
  cocoon
/project
 browse.xsp
 browse-test.xsl
  
  sitemap
  map:match pattern=browse.xsp
   map:generate  src=browse.xsp/
   map:serialize/
  /map:match
  
  browse.xsp generates the following xml file
  ?xml version=1.0 encoding=UTF-8?
  page xmlns:xsp=http://apache.org/xsp;
  xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;
  xmlns:card=http://deibcres.com/card/1.0;
  
  titleBrowse card/title
  
  content
  
 card
   authorsomeAuthor/author
 /card
  /content
  !-- end browse.xsp --
  
  The generation is ok, but once I add
  map:transformer src=browse-test.xsl/
 
 
 map:transform src=browse-test.xsl/
 
 
 
  to the sitemap, Stylesheet directed termination
  occurs and the error.log doesn't report the actual
  error.
 
 It does. Search for sentence:
 
 Sitemap contains invalid tag
 
 
 Vadim
 
  
  browse-test.xsl looks like this
  ?xml version=1.0?
xsl:stylesheet
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  version=1.0
  
xsl:template match=content
  xsl:apply-templates/
/xsl:template
  
  
xsl:template match=card
  h1xsl:value-of select=author//h1
/xsl:template
  !-- end browse-test.xsl --
  
  Please give a hint if anything here is/are wrong
 and
  thanks for getting this far. :)
  
 
 

-
 Please check that your question has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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

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




Pure txt as ouput

2002-04-23 Thread Ariel Bender
Title: Pure txt as ouput





Hi all. 
I'm a newbie in these technologies, and I've got a problem that I don't know how to resolve. May be be someone can help me.

I am using cocoon1, xml, xsl...
I want to get a pure txt as output file, obviosly whithout a hedar, and also with no xml tags. 
I'm using this code: 
 xsl:output method=text media-type=text omit-xml-declaration=yes indent=no encoding=ISO-8859-1/
but it doesn't work propely.


 The generated file is this:
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN http://www.w3.org/TR/REC-html40/strict.dtd
 contentTHE EXPECTED TEXT
 /content
 !-- This page was served in 538 milliseconds by Cocoon 1.8.2 --


More information: when I try to save the file, the window dialog expects to save as html file, when I explicitly say that the filename is txlog.txt.

Any ideas?
Ariel