filesize (RE: KrysalIDE for Cocoon2)

2002-04-17 Thread Manos Batsis


Just a quick question folks and please forgive my ignorance.
What is the typical file size of a cocoon sitemap?

Thanks,

Manos 

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




esql based logicsheet get-row-count

2002-04-17 Thread Jerzy Kut

Hi cocooners!
I know that esql:get-row-count is unavailable yet. But I need to get this
information from my DB.
I try:

dbman.xsl
 !--
- get employees count from database
   --
 xsl:template match=dbman:employees-count

  count

   esql:connection
esql:poolmydb/esql:pool
esql:execute-query
 esql:query
  select count(*) CNT
  from EMP
 /esql:query

 esql:results
  esql:row-resultsesql:get-string column=CNT//esql:row-results
 /esql:results
 esql:no-results0/esql:no-results
/esql:execute-query
   /esql:connection

  /count

 /xsl:template

in my logicsheet.
But I have trouble when I try to pass this value by using
dbman:employees-count/ as an attribute or xml entity to another
logicsheet:

any.xml
  batch:navigator wrap=no
   batch:actionemployees/batch:action
   batch:batchxsp-session:get-attribute
name=employee-batch//batch:batch
   batch:batch-sizexsp-session:get-attribute
name=employee-batch-size//batch:batch-size
   batch:element-countdbman:employees-count//batch:element-count
  /batch:navigator
in my XML/XSP document.

batch and dbman are my own logicsheets registered in cocoon.xconf -
dbpool is registered too and dbdriver of course in web.xml.

batch.xsl
 xsl:template match=batch:navigator

  xsl:param name=element-count select=batch:element-count/

  batch-navigator

   batch-count
xsp:expr
 (Long.parseLong(xsl:value-of select=$element-count/) - 1) /
 Long.parseLong(xsl:value-of select=$batch-size/.toString()) + 1
/xsp:expr
   /batch-count

   element-count
xsp:exprxsl:value-of select=$element-count//xsp:expr
   /element-count

  /batch-navigator

 /xsl:template

When I see into compiled java files I have NOTHING:

this.contentHandler.startElement(
  ,
  element-count,
  element-count,
  xspAttr
);
xspAttr.clear();

/*
 * AND? HERE SHOULD BE xsl:value-of select=$element-count/!!
 * why it isn't???
 */

this.contentHandler.endElement(
  ,
  element-count,
  element-count
);

What is the trouble with passing parameters between logicsheets?

Please help.

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: esql based logicsheet get-row-count

2002-04-17 Thread Christian Haul

On 17.Apr.2002 -- 09:10 AM, Jerzy Kut wrote:
 Hi cocooners!
 I know that esql:get-row-count is unavailable yet. But I need to get this
 information from my DB.
 I try:
 
batch:element-countdbman:employees-count//batch:element-count

 batch.xsl
  xsl:template match=batch:navigator
   xsl:param name=element-count select=batch:element-count/

  (Long.parseLong(xsl:value-of select=$element-count/) - 1) /

OK, this is no briliant analysis of your code and certainly will not
readily solve your problem, however, you have an XSL problem here:

The last line is going to be expanded to something like

 (Long.parseLong(countesql:connectionesql:query./esql:connection/count)-1

which certainly was not your intention.

If you pass parameters this way, make sure that your templates really
expand to a single text node (in the end). This is not like calling
functions but programming with macros. Bear that in mind!

You might want to use java beans to communicate.

Anyway, this is not a trivial problem and I bet most new-comers hit
this wall at some time.

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: Encoding question

2002-04-17 Thread Matthieu Benéteau

Hi Heike,

I use these declarations in my sitemap :

  map:serializer name=xmlmime-type=text/xml
logger=sitemap.serializer.xml
  src=org.apache.cocoon.serialization.XMLSerializer
  pool-max=32 pool-min=16 pool-grow=4
encodingiso-8859-1/encoding
  /map:serializer

  map:serializer name=html   mime-type=text/html
logger=sitemap.serializer.html
  src=org.apache.cocoon.serialization.HTMLSerializer
encodingiso-8859-1/encoding
  /map:serializer

and it's all perfect.

Matthieu



 -Message d'origine-
 De : Franosch, Heike [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 16 avril 2002 18:33
 Objet : Encoding question


 Hi all,

 is it possible to set the output encoding?
 I always get a UTF-8, even if I set output encoding to iso-8859-1
 in my stylesheet. Can I influence it somehow in the sitemap?

 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]




Still problems with i18n for FRENCH

2002-04-17 Thread Hahn Kurt (CHA)

Hi,
 sorry to bother again with i18n. Strange thing: I got it working, but only
for the languages that are predefined (the ones in the sample). However, I
created a messages_fr.xml file for french translations, but calling the
...?locale=fr URL gives me untranslated text again. (whereas the other
prefixes do work) Do I have to change the sitemap in order to be able to use
fr? Or do I need to add a key for French in messages.xml? Though it
seems to me that this file isn't used at all, I'll try to remove it once
everything's working as I want it. 

Thanks for any hints

Kurt

-
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: Encoding question

2002-04-17 Thread Franosch, Heike

Hi,

thank you all for your help. You have all been right and
it works fine now ;-)
I am just wondering, is there some more documentation on
the sitemap.xmap, when to use what element with what
consequences?

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]




RE: accessing session context from stylesheet

2002-04-17 Thread Franosch, Heike

Hi all,

sorry to repost my question, but I am still wondering should
this work?
I am creating a session in my servlet and want to access it
from my stylesheet. I found this nice tag use-session-info.
Does it work the way I am thinking it does or am I totally
on the wrong way?
The session-available is always false. Is it just a question
of configuration?

Thanks for any help.

Heike

 I tried:
  map:pipelines
   map:pipeline
  map:match pattern=testpackage/*/* 
map:act type=request
  map:parameter name=parameters value=true/
  map:generate
 src=http://localhost:8080/heike/servlet/testpackage.{../2}{re
 questQuery}/
/map:act
map:transform type=xslt src=testpackage/{1}/{2}.xsl
map:use-session-infotrue/map:use-session-info
map:parameter name=session-id value={session-id}/
map:parameter name=session-is-new value={session-is-new}/
/map:transform
map:serialize type=xml/
  /map:match
 
   /map:pipeline
  /map:pipelines
 
 But I get no session. What's wrong?
 One more question: If I get this running, do I get the same 
 session id as
 used from tomcat (this is essential)?
 
 Thank you very much for your help.
 
 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]




RE: How to clear the jar_cache files ?

2002-04-17 Thread Peter Schwenke


I've seen it, as well.  In fact, having a look, I see it on one of my
machines at the moment.

[peter@epiphone peter]$ ls -l /opt/tomcat/temp/
total 578
-rw-rw-r--1 root root   587776 Apr 16 12:44 jar_cache62255.tmp

I very clearly remember coming across it.  My /tmp is small on that
machine.  I kept running out of disk space.  

I needed to put

 -Djava.io.tmpdir=/opt/tomcat/temp

in my CATALINA_OPTS (and create that directory).  The stuff is created
in your temporary directory.

I think there is some other stuff that ends up in that directory, but it
doesn't appear when you do a listing in *nix systems. The numbers
weren't adding up for me.  Probably the old trick where you create a
temporary file and unlink it straight away (or whatever, it's been a
while since I've done that). 

I'm on build 1.3.1_03-b03 on Linux.

...Peter

Luca Morandini writes:
  Vadim,
  
  I've found evidence of a bug like this under JRE 1.2... but I'm using 1.3.1
  and those files are still there :(
  
  Anyway, I'm wondering if I'm the only one with this problem
  
  Best regards,
  
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
  
  
   -Original Message-
   From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, April 16, 2002 9:53 PM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: RE: How to clear the jar_cache files ?
  
  
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
   
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 16, 2002 9:08 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: How to clear the jar_cache files ?


   
  They're located in the temp directory of my server and have names
 like:
  jar_cache35350.tmp, jar_cache35354.tmp... and so on at the tune of
 about 50
  a day.

 I have some files named like this, but in totally different
   directory:
 %USERPROFILE%\Local Settings\Temp\jar_cache14163.tmp

 I'm 90% sure that they were created neither by Tomcat, nor by JDK.

   
I beg to differ, since I removed Cocoon and they 're still produced
   (though
in much smaller numbers).
Regarding the different location in the file system, it dependes on
   the
different setting of the $TEMP directory.
   
Any other clue ?
  
   :-/
  
   Yes. I have got one. Here it is: rt.jar has string jar_cache inside. I
   don't think it is coincidence. This means, JRE is responsible for
   creating these files.
  
   Vadim
  
  
Best regards,
   
-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-
   
  
  
   -
   Please check that your question has not already been answered in the
   FAQ before posting. 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: Still problems with i18n for FRENCH Solution found

2002-04-17 Thread Hahn Kurt (CHA)

Sorry, it was a stupid fault of mine, I had an french caracter in the
messages_fr file which made unreadable for the parser.
Problem solved 
So please ignore my previous messages

K.

-Message d'origine-
De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Date: mercredi, 17. avril 2002 09:35
á: '[EMAIL PROTECTED]'
Objet: Still problems with i18n for FRENCH


Hi,
 sorry to bother again with i18n. Strange thing: I got it working, but only
for the languages that are predefined (the ones in the sample). However, I
created a messages_fr.xml file for french translations, but calling the
...?locale=fr URL gives me untranslated text again. (whereas the other
prefixes do work) Do I have to change the sitemap in order to be able to use
fr? Or do I need to add a key for French in messages.xml? Though it
seems to me that this file isn't used at all, I'll try to remove it once
everything's working as I want it. 

Thanks for any hints

Kurt

-
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: esql based logicsheet get-row-count

2002-04-17 Thread Torsten Curdt

On Wed, 17 Apr 2002, Christian Haul wrote:
 On 17.Apr.2002 -- 09:10 AM, Jerzy Kut wrote:
  Hi cocooners!
  I know that esql:get-row-count is unavailable yet. But I need to get this
  information from my DB.

Well, not exactly... as soon as you use the JDBC limit clause it *is*
available to the esql helper classes... but I IIRC we have not a esql tag
for this... feel free to send a patch ;-)
--
Torsten


-
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: KrysalIDE for Cocoon2

2002-04-17 Thread Cédric Viaud

On this particular point of IDEs for XML/XSLT people often talk about XMLSpy
which is quite good, but is not the only good commercial product. I would
like to mention TurboXML (from Tibco) wich is a good XML éditor (the one i
prefer, in fact).

For the specific XSL-T creation, you have to look at Excelon stylus studio.
It's amazing how it becomes easy to write and test XSL-T code.

This three products can be downloaded for evaluation, so you could try
before investing money. In fact, they are not very expansive in regards of
what they do.

A+ Cédric

NB : i have no commercial arrangement with any of this editors, it is just
for information :-)

- Original Message -
From: Mike Haarman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 7:04 PM
Subject: RE: KrysalIDE for Cocoon2


On 16 Apr 2002, Alexandru COSTIN wrote:

 It was a very unpleasant experience, and I would like to know where are
 those tools, because it might help us a lot ...

  Developers of components/stylesheets are well-served by
  various IDEs already.
 Can you write a list?


There are (SG|X)ML, XSL and DTD Emacs modes for editing with syntax
highlighting, tag completion, DTD awareness, etc.  There is even a package
by Ovidiu Predescu (Thanks, OP) which does processing of stylesheets via
Saxon or Xalan from within Emacs.  Results can be previewed there or your
favorite browser.  I believe this tool allows for the processing of XSP
with command-line Cocoon, but I haven't used this feature.  I've used this
set-up under Windows, Linux and Solaris and found it quite solid.  Since
Emacs with JDE is my principal Java development environment this is a very
convenient setup.

Of the commercial tools, XMLSpy is quite well known.  Never used it.


Mike HaarmanMinnesota Population Center,
[EMAIL PROTECTED]  University of Minnesota,
537 Heller Hall,
Minneapolis, MN 55455
Co-Architect, Programmer,
  National Historical GIS -- http://www.nhgis.org/
Maintainer,
  DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/


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




ResourceReader crash

2002-04-17 Thread KOZLOV Roman

Hello all,

Can somebody answer is it a bug of Cocoon (v 2.0.1, server Tomcat
4.01) or not?
When browser, in particular IE 5.0 or 5.5, reads some data, in
particular css file, several times it sometimes severs the connection if
the data are old and cashed (IE does it even reread page every time
option is set). Cocoon's servlet after several such requests generates
error reports in logs and server console. For example, in sitemap.log it
prints at the beginning:

ResourceReader: Received an IOException, assuming client severed
connection on purpose

However after several such messages it begins printing of following
messages:

DEBUG   (2002-04-17) 11:19.02:999   [sitemap.transformer.xslt]
(/cocoon/mycss.css) HttpProcessor[8080][3]/TraxTransformer: Using
stylesheet:
'file:/W:/jakarta-tomcat-4.0/webapps/cocoon/stylesheets/system/error2html.xsl'
in org.apache.cocoon.transformation.TraxTransformer@63de4e, last
modified: 1015492495836

And in the server's console:

java.lang.RuntimeException: java.net.SocketException: Connection aborted
by peer
: socket write error
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3174)
at java.lang.Thread.run(Thread.java:484)

Meantime, no error messages are appears in the browser and it seems to
be displaying data correctly.

So is it a bug of Cocoon?

I've attached a zip archive with some pieces of logs and with files
csstest.html, mycss.css and sitemap.xmap with which I've reproduced this
error on three different server stations.

Thank you for response.
Roman




css_err.zip
Description: application/compressed

-
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: KrysalIDE for Cocoon2

2002-04-17 Thread Andreas Kuehne

Hello on the tool-thread !

If it comes to XSLT-Tools, don't miss to look at 'cooktop' :

http://www.xmlcooktop.com/

It's free ! It works with several XSLT engines ! It's fast !
It's my favorite XSLT-editor !

Greetings

andreas

--- Cédric_Viaud [EMAIL PROTECTED] wrote:
 On this particular point of IDEs for XML/XSLT people often talk about XMLSpy
 which is quite good, but is not the only good commercial product. I would
 like to mention TurboXML (from Tibco) wich is a good XML éditor (the one i
 prefer, in fact).
 
 For the specific XSL-T creation, you have to look at Excelon stylus studio.
 It's amazing how it becomes easy to write and test XSL-T code.
 
 This three products can be downloaded for evaluation, so you could try
 before investing money. In fact, they are not very expansive in regards of
 what they do.
 
 A+ Cédric
 
 NB : i have no commercial arrangement with any of this editors, it is just
 for information :-)
 
 - Original Message -
 From: Mike Haarman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 16, 2002 7:04 PM
 Subject: RE: KrysalIDE for Cocoon2
 
 
 On 16 Apr 2002, Alexandru COSTIN wrote:
 
  It was a very unpleasant experience, and I would like to know where are
  those tools, because it might help us a lot ...
 
   Developers of components/stylesheets are well-served by
   various IDEs already.
  Can you write a list?
 
 
 There are (SG|X)ML, XSL and DTD Emacs modes for editing with syntax
 highlighting, tag completion, DTD awareness, etc.  There is even a package
 by Ovidiu Predescu (Thanks, OP) which does processing of stylesheets via
 Saxon or Xalan from within Emacs.  Results can be previewed there or your
 favorite browser.  I believe this tool allows for the processing of XSP
 with command-line Cocoon, but I haven't used this feature.  I've used this
 set-up under Windows, Linux and Solaris and found it quite solid.  Since
 Emacs with JDE is my principal Java development environment this is a very
 convenient setup.
 
 Of the commercial tools, XMLSpy is quite well known.  Never used it.
 
 
 Mike HaarmanMinnesota Population Center,
 [EMAIL PROTECTED]  University of Minnesota,
 537 Heller Hall,
 Minneapolis, MN 55455
 Co-Architect, Programmer,
   National Historical GIS -- http://www.nhgis.org/
 Maintainer,
   DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/
 
 
 -
 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]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.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]




RE: ResourceReader crash

2002-04-17 Thread Hahn Kurt (CHA)

I'm not sure if I understood everything in your post, but I sometimes have a
similar entry in the console, though I didn't pay much attention to it since
I'm developing and do sometime try things that could generate errors... 
Anyway, I always thought it was a browser problem, since it should reload
the URL if you hit refresh or re-enter the URL, but many times it doesn't.
Maybe at this moment, it severs the connection. If you think taht could be
your case as well, try this: someone gave me pretty useful hint: On Windows
and IE, Ctrl-[F5] empties the browser-cache, thus ensuring that if you hit
Refresh, the page will be loaded again.

Does that anything have to do with your problem at all?

Kurt


-Message d'origine-
De: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Date: mercredi, 17. avril 2002 10:45
À: Cocoon users mail list
Objet: ResourceReader crash


Hello all,

Can somebody answer is it a bug of Cocoon (v 2.0.1, server Tomcat
4.01) or not?
When browser, in particular IE 5.0 or 5.5, reads some data, in
particular css file, several times it sometimes severs the connection if
the data are old and cashed (IE does it even reread page every time
option is set). Cocoon's servlet after several such requests generates
error reports in logs and server console. For example, in sitemap.log it
prints at the beginning:

ResourceReader: Received an IOException, assuming client severed
connection on purpose

However after several such messages it begins printing of following
messages:

DEBUG   (2002-04-17) 11:19.02:999   [sitemap.transformer.xslt]
(/cocoon/mycss.css) HttpProcessor[8080][3]/TraxTransformer: Using
stylesheet:
'file:/W:/jakarta-tomcat-4.0/webapps/cocoon/stylesheets/system/error2html.xs
l'
in org.apache.cocoon.transformation.TraxTransformer@63de4e, last
modified: 1015492495836

And in the server's console:

java.lang.RuntimeException: java.net.SocketException: Connection aborted
by peer
: socket write error
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3174)
at java.lang.Thread.run(Thread.java:484)

Meantime, no error messages are appears in the browser and it seems to
be displaying data correctly.

So is it a bug of Cocoon?

I've attached a zip archive with some pieces of logs and with files
csstest.html, mycss.css and sitemap.xmap with which I've reproduced this
error on three different server stations.

Thank you for response.
Roman



-
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: Cocoon 2 powered training site

2002-04-17 Thread Matthew Langham

Hi,


I'd also like to announce the first (to my knowledge) publicly-available
Cocoon training classes. We are giving two classes this summer: Cocoon
Fundamentals and Advanced Cocoon. If you are interested, check out
http://www.galatea.com/training/courses.


this is great news and hopefully we will see more offers like this appear in
different parts of the world.

We are currently planning something similar here in Europe - based in part
on our book - for late Summer.

Although we are still finalizing the details - please feel free to contact
the following email-address: [EMAIL PROTECTED] for more information as we
move forward.

I also think it is time we set up somewhere to actually advertise this sort
of stuff instead of just using the mailing-list :-).

Best regards

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
 Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-Original Message-
From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: Cocoon 2 powered training site


Hi all -

I'd like to add my site, galatea.com, to the list of sites powered by
Cocoon 2.

I'd also like to announce the first (to my knowledge) publicly-available
Cocoon training classes. We are giving two classes this summer: Cocoon
Fundamentals and Advanced Cocoon. If you are interested, check out
http://www.galatea.com/training/courses.


Regards,

Lajos Moczar
galatea.com
800.711.4901



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




No valid JdbcConnection class available :(

2002-04-17 Thread Hiloliddin Karimov

I have changed the driver info in my web.xml file;
oracle.jdbc.driver.OracleDriver
has created tables by user scott; sql-page.xml.sql
has changed the dburl info in cocoon.xconf, userscott;
jdbc.jar is in classpath;

Web Applications return error:
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:
Exception in ServerPagesGenerator.generate() 
More precisely:
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get
the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: 
No valid JdbcConnection class available 

What's wrong?
I didn't found solution for my problem in FAQ

Cocoon 2.0; Tomcat 4.0; JDK SDK 1.4; OS WinNT 4.0;
Thanks,
Hill

-
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 use a WebApp named something other than cocoon in Weblogic?

2002-04-17 Thread William Bagby



I was able to 
successfully (more or less) install Cocoon 2.0.2 on Weblogic 6.0sp2, using the 
webapp "cocoon". Now, I want to use an existing webapp, let's call it 
"MyWebApp", and put cocoon in there, but I'm having 
problems.

For some reason, 
Cocoon is using org/apache/cocoon/www/sitemap_xmap.java from the "cocoon" webapp 
rather than "MyWebApp", and it's giving me the following 
error:


java.lang.NullPointerException
at org.apache.cocoon.www.sitemap_xmap.process(myWeblogicServer/applications/cocoon/WEB-INF/_tmp_war_myserver_myserver_cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3094)	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 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)	at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)	at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)	at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)	at 
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Why is it 
trying to load the "cocoon" sitemap? Is there a way to override this? Is it 
required for the webapp tp be named "cocoon"?

Thanks,

William Bagby.



RE: accessing session context from stylesheet

2002-04-17 Thread Franosch, Heike

Hi Vadim,

thanks for your answer. I did a lot of more testing trying to figure it out.
But, I still just can't get it run.
 
 This is wrong and never will work. You either specify this parameter
 when declaring transformer like this:
 
 map:transformer name=xslt src=org.apache...
   use-session-infotrue/use-session-info
 
 
 or here, but only supported syntax is map:parameter:
 
 map:transform type=xslt src=testpackage/{1}/{2}.xsl
   map:parameter name=use-session-info value=true/

I tried your suggestion. But with no success.
When I query the parameters in my stylesheet the session-id is
empty.
use-session-info is true
session-available is false

When I do some ugly hardcoding and put the encoded URL to the
xml and copy it to the output, and then reaccess my servlet
the session is also null. Is it possible that the jsessionid is
stripped off the URL from cocoon? Is there a way to get it?

I have attached my coding. Maybe I am just using it wrong.
I am really greatful for further help.

Thanks, Heike

--
Here is my snippet from sitemap:

!-- test servlet --
 map:pipelines
  map:pipeline
  !--
   map:match pattern=
map:redirect-to session=true uri=testpackage/nuance/SessionTest2/
   /map:match
--

 map:match pattern=testpackage/*/*
   map:act type=request
 map:parameter name=parameters value=true/

 map:generate
src=http://localhost:8080/heike/servlet/testpackage.{../2}{requestQuery}/

   map:transform type=xslt src=testpackage/{../1}/{../2}.xsl
   map:parameter name=use-session-info value=true/
   map:parameter name=session-id value={session-id}/
   map:parameter name=session-is-new value={session-is-new}/
   map:parameter name=session-available
value={session-available}/
   map:parameter name=no value={no}/
   /map:transform
   /map:act
   map:serialize type=html
 encodingISO-8859-1/encoding
   /map:serialize
 /map:match

  /map:pipeline
 /map:pipelines

!-- transformer --
   map:transformer name=xsltlogger=sitemap.transformer.xslt
src=org.apache.cocoon.transformation.TraxTransformer
pool-max=32 pool-min=16 pool-grow=4
use-request-parametersfalse/use-request-parameters
use-browser-capabilities-dbfalse/use-browser-capabilities-db
   use-session-infotrue/use-session-info
use-delifalse/use-deli
   /map:transformer




SessionTest.java
Description: Binary data


SessionTest2.java
Description: Binary data


SessionTest.xsl
Description: Binary data


SessionTest2.xsl
Description: Binary data

-
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: Help Requested!!!!

2002-04-17 Thread Marty McClelland

I have seen this error when there is an error in the table name.  Check
the spelling of the table name in the database and make sure it matches
the name in the query including upper/lower case. 

marty

 -Original Message-
 From: Muhammad Irfan [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, April 17, 2002 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: Help Requested
 
 
 
   Dear All,
 
 I am trying a simple process to execute the sql query that 
 should give me the output in xml, but It seems to me that I 
 am stuckup with this. Below is the detailed description of 
 what I have done:- I have created a file named sql-test.xml 
 under test folder within tomcat/cocoon that just consist of 
 a single query:- ?xml version=1.0? test 
 xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 titleHello/title
 content
 paraThis is SQL Test/para
 sql:execute-query
 query
   select * from employee
 /query
 /sql:execute-query
 /content
 /test
 
 I have updated the entries for driver and db within the 
 web.xml and cocoon.xconf file to use with MS Access database. 
 Having done that, I have inserted the following lines within 
 the main sitemap:- map:pipeline map:match pattern=test/*
 map:generate src=test/sql-test.xml/
 map:transform type=sql
 map:parameter name=use-connection value=mydb/
 /map:transform
 map:serialize type=xml/
 /map:match
 /map:pipeline
 
 I am getting the following errors:-
 
  System can't find the specified resource
  java.sql.SQLException: [Microsoft][ODBC Microsoft Access 
 Driver]Invalid use of null pointer 
 
 I will be grateful for your kind help
 
 Regards
 
 Irfan.
 
 
 
 
 
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp.
 
 
 
 -
 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: Still problems with i18n for FRENCH

2002-04-17 Thread Matthieu Sozeau

Le Wed, 17 Apr 2002 09:35:06 +0200, Hahn Kurt (CHA) a écrit:

Hi,
 sorry to bother again with i18n. Strange thing: I got it working, but only
for the languages that are predefined (the ones in the sample). However, I
created a messages_fr.xml file for french translations, but calling the
...?locale=fr URL gives me untranslated text again. (whereas the other
prefixes do work) Do I have to change the sitemap in order to be able to use
fr? Or do I need to add a key for French in messages.xml? Though it
seems to me that this file isn't used at all, I'll try to remove it once
everything's working as I want it. 

Thanks for any hints

Kurt

I18n works for every language, and mine(french) too. Perhaps you missed xml:lang=fr 
in messages_fr.xml?

-- 
Black holes are where God divided by zero. - Steven Wright

MaT|TaM


msg11141/pgp0.pgp
Description: PGP signature


Re: How to integrate a transformation pipeline in a standalone java application

2002-04-17 Thread Cédric Viaud

What is the way or where can we found some information on this topic ?

Regards,

Cédric

- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 1:57 PM
Subject: RE: How to integrate a transformation pipeline in a standalone java
application


 From: Martin Henke [mailto:[EMAIL PROTECTED]]

 Hi,

 I want to integrate a transformation pipeline for xml documents in a
 standalone java application.
 Can anybody point me to a howto or example where the integration and
 configuration of such a cocoon pipeline is shown ?

org.apache.cocoon.Main does it.

Vadim


 With kind regards
 Martin



-
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: How to use a WebApp named something other than cocoon in Weblog ic?

2002-04-17 Thread Bert Van Kets

Give more info please!
How did you configure your webapp?
Did you copy the cocoon.war file to MyWebApp.war or did you configure a 
webapp in Weblogic?
Bert
At 12:38 17/04/2002 -0400, you wrote:
I was able to successfully (more or less) install Cocoon 2.0.2 on Weblogic 
6.0sp2, using the webapp cocoon. Now, I want to use an existing webapp, 
let's call it MyWebApp, and put cocoon in there, but I'm having problems.

For some reason, Cocoon is using org/apache/cocoon/www/sitemap_xmap.java 
from the cocoon webapp rather than MyWebApp, and it's giving me the 
following error:


java.lang.NullPointerException
at 
org.apache.cocoon.www.sitemap_xmap.process(myWeblogicServer/applications/cocoon/WEB-INF/_tmp_war_myserver_myserver_cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3094)
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 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Why is it trying to load the cocoon sitemap? Is there a way to override 
this? Is it required for the webapp tp be named cocoon?

Thanks,

William Bagby.



-
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: No valid JdbcConnection class available :(

2002-04-17 Thread Vadim Gritsenko

 From: Hiloliddin Karimov [mailto:[EMAIL PROTECTED]]
 
 I have changed the driver info in my web.xml file;
 oracle.jdbc.driver.OracleDriver
 has created tables by user scott; sql-page.xml.sql
 has changed the dburl info in cocoon.xconf, userscott;
 jdbc.jar is in classpath;
 
 Web Applications return error:
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:
 Exception in ServerPagesGenerator.generate()
 More precisely:
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
get
 the datasource
 org.apache.avalon.excalibur.datasource.NoValidConnectionException:
 No valid JdbcConnection class available
 
 What's wrong?

Use JDK1.3.1

Vadim

 I didn't found solution for my problem in FAQ
 
 Cocoon 2.0; Tomcat 4.0; JDK SDK 1.4; OS WinNT 4.0;
 Thanks,
 Hill
 


-
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: accessing session context from stylesheet

2002-04-17 Thread Vadim Gritsenko

 From: Franosch, Heike [mailto:[EMAIL PROTECTED]]
 
 Hi Vadim,
 
 thanks for your answer. I did a lot of more testing trying to figure
it out.
 But, I still just can't get it run.
 
  This is wrong and never will work. You either specify this parameter
  when declaring transformer like this:
 
  map:transformer name=xslt src=org.apache...
use-session-infotrue/use-session-info
 
 
  or here, but only supported syntax is map:parameter:
 
  map:transform type=xslt src=testpackage/{1}/{2}.xsl
map:parameter name=use-session-info value=true/
 
 I tried your suggestion. But with no success.
 When I query the parameters in my stylesheet the session-id is
 empty.

Then, it means, you did not passed this parameter to the stylesheet.


 use-session-info is true
 session-available is false
 
 When I do some ugly hardcoding and put the encoded URL to the
 xml and copy it to the output, and then reaccess my servlet
 the session is also null. Is it possible that the jsessionid is
 stripped off the URL from cocoon? Is there a way to get it?

(IIRC) response.encodeUrl() will return you URL with the jsessionid
parameter if cookies are not enabled.


 I have attached my coding. Maybe I am just using it wrong.
 I am really greatful for further help.
 
 Thanks, Heike
 
 --
 Here is my snippet from sitemap:
 
 !-- test servlet --
  map:pipelines
   map:pipeline
 
  map:match pattern=testpackage/*/*
map:act type=request
  map:parameter name=parameters value=true/
 
map:generate

src=http://localhost:8080/heike/servlet/testpackage.{../2}{requestQuery
}/
 
map:transform type=xslt src=testpackage/{../1}/{../2}.xsl
map:parameter name=use-session-info value=true/

This looks ok. Take a look at TraxTransformer if you want to know how it
works.


map:parameter name=session-id value={session-id}/
map:parameter name=session-is-new value={session-is-new}/
map:parameter name=session-available
 value={session-available}/
map:parameter name=no value={no}/

How do you know that these four variables you use are set? Check log
file, if you have DEBUG level, it will have log entries saying what
values were used to substitute variables.


/map:transform
/map:act
map:serialize type=html
  encodingISO-8859-1/encoding
/map:serialize
  /map:match
 
   /map:pipeline
  /map:pipelines
 
 !-- transformer --
map:transformer name=xslt
logger=sitemap.transformer.xslt

src=org.apache.cocoon.transformation.TraxTransformer
 pool-max=32 pool-min=16 pool-grow=4
 use-request-parametersfalse/use-request-parameters
 use-browser-capabilities-dbfalse/use-browser-capabilities-db
use-session-infotrue/use-session-info
 use-delifalse/use-deli
/map:transformer

This is also ok.

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]




i18n repost

2002-04-17 Thread Alexander Smirnoff

I know that this question maybe is not for Cocoon list. Nevertheless,

I've set 

META http-equiv=Content-Type content=text/html; charset=UTF-8

in the html form. 

When submitting the form with national characters (Russian) I recieve 
parameters in unreadable charset. I'm not good neither in HTTP  nor in
internationalization. Could anybody explain how to parse it correctly to
convert whatever it is into correct UTF8 string?

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: Using Docbook With Cocoon 2.0.2

2002-04-17 Thread Vadim Gritsenko

 From: Carlos [mailto:[EMAIL PROTECTED]]
 
 Vadim:
 
 In the error.log I get either a:
 
 FATAL_E (2002-04-17)
 08:32.19:079[core.xslt-processor](/cocoon/writing/stories.html)
 HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
 javax.xml.transform.TransformerException: Stylesheet directed
termination

Before that, search for a message from Xalan. It should have stylesheet
systemID, line number, and a message. It might be marked as DEBUG.

Vadim



 
 Or a
 
 ERROR (2002-04-16) 18:23.42:914[access](/cocoon/writing/stories.html)
 HttpProcessor[8080][4]/CocoonServlet: Problem with servlet
 java.lang.RuntimeException: Stylesheet directed termination
 
 The sitemap.log shows several instances of:
 
 DEBUG (2002-04-17) 08:32.12:513
[sitemap](/cocoon/writing/stories.html)
 HttpProcessor[8080][4]/Handler: Beginning sitemap regeneration
 ERROR (2002-04-17) 08:32.19:087
[sitemap](/cocoon/writing/stories.html)
 HttpProcessor[8080][4]/Handler: Error compiling sitemap
 java.lang.RuntimeException: Stylesheet directed termination
 
 
 I have the dtd pointing to the right page, can it be because I am not
using
 the catalog?
 
 Carlos
 
 
 On 04/16/02 18:54, Vadim Gritsenko [EMAIL PROTECTED]
wrote:
 
  From: Carlos [mailto:[EMAIL PROTECTED]]
 
  I'm getting the following error with Cocoon 2.0.2 and the following
  pipeline
  to transform Docbook documents. The pipeline is served from a
  sub-sitemap:
 
  Carlos:
 
  java.lang.RuntimeException: Stylesheet directed termination
 
  One of the stylesheet does not like your input. Search through
Cocoon
  logs, usually there is a message from a stylesheet there.
 
 
  These two lines:
 
 
 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.gen
  erat
  eCode(LogicsheetCodeGenerator.java:175)
 
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
 
  suggest that stylesheet we are talking here about is sitemap.xsl. It
can
  terminate itself if you have an error in your sitemap.xmap file. If
you
  want to know what error - look in the logs.
 
  Vadim
 
 
 map:match pattern=
  map:redirect-to uri=welcome/
 /map:match
 
 map:match pattern=*.pdf
  map:generate src=docs/{1}.xml/
  map:transform src=xsl/fo/cal.xsl/
  map:serialize type=fo2pdf/
 /map:match
 
 map:match pattern=*.html
  map:generate src=docs/{1}.xml/
  map:transform src=xsl/xhtml/cal.xsl/
  map:serialize type=xml/
 /map:match
 
  -- Error Message--
  type fatal
 
  message Stylesheet directed termination
 
  description java.lang.RuntimeException: Stylesheet directed
  termination
 
  sender org.apache.cocoon.servlet.CocoonServlet
 
  source Cocoon servlet
 
  request-uri
 
  /cocoon/writing/stories.html
 
 
  path-info
 
  writing/stories.html
 
 
  stack-trace
 
  java.lang.RuntimeException: Stylesheet directed termination
  at
 
 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:32
  31)
  at
 
 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Transfor
  merH
  andlerImpl.java:436)
  at org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
  at org.xml.sax.helpers.XMLFilterImpl.endDocument(Unknown
Source)
  at
 
 
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParse
  r.ja
  va:724)
  at
 
 
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder
  .jav
  a:704)
  at
 
 
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.j
  ava:
  997)
  at
 
 
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScann
  erIm
  pl.java:437)
  at
 
 
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:
  1150
  )
  at
 
 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityMana
  ger.
  java:3195)
  at
 
 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEnti
  tyMa
  nager.java:2867)
  at
 
 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dis
  patc
  h(XMLDocumentScannerImpl.java:987)
  at
 
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
  cume
  ntFragmentScannerImpl.java:333)
  at
 
 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
  erCo
  nfiguration.java:525)
  at
 
 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
  erCo
  nfiguration.java:581)
  at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
  at
 
 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
  :115
  7)
  at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
  at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
  at
 
 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.gen
  erat
  eCode(LogicsheetCodeGenerator.java:175)
  at
 
 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
  rate
  Code(AbstractMarkupLanguage.java:390)
  

Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-17 Thread Yuri Gadow

Diana,

Counter-intuitive: XSLT sheet with output method declared as HTML
ostensibly prevents the HTMLSerializer from serializing as HTML (XML is
used instead.)

Just to clarify, I should point out that there were several XSLT sheets
in different pipelines, some declaring output method as HTML, some as
XHTML. In all cases, the HTMLSerializer was used, and XML output was
created. Removing the entire output-method declaration from the XSLT
sheets resulted in the correct behavior.

For example:

xsl:output method=html
doctype-public=-//W3C//DTD HTML 4.01 Transitional//EN
doctype-system=http://www.w3.org/TR/html4/loose.dtd;
omit-xml-declaration=yes
indent=yes/

I don' know whether this is a consistent behavior of C2/Xalan or a
symptom of our local integration approach.

Thanks,

Yuri Gadow

On Wed, 2002-04-17 at 06:04, Diana Shannon wrote:
 Yuri,
 
  As it turns out, the XSLT sheets in the pipeline before the
  HTMLSerializer where, themselves, setting the output to be HTML and
  XHTML (via output method and namespace mappings.) I removed the NS
  mappings and output elements from them, and am now seeing correct
  serialization of HTML and XHTML. Seems a bit counter-intuitive, but it
  works.
 
 There are efforts underway to improve the user docs. Your input is 
 important. Can you explain what you believe to be counter-intuitive 
 about the solution to your original problem?
 
 Thanks a lot.
 
 Diana Shannon
 
 
 
 -
 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]
-- 
Yuri Gadow 0x6D21BAAE


-
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 integrate a transformation pipeline in a standalone java application

2002-04-17 Thread Vadim Gritsenko

 From: C§Ûdric Viaud [mailto:[EMAIL PROTECTED]]
 
 What is the way or where can we found some information on this topic ?

0. Run build docs, see how it works.
1. Run Main, look at parameters it takes.
2. Try two-three times to generate something.
3. Read code.
4. Write your own code.

Regards,
Vadim


 Regards,
 
 C¨¦dric
 
 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 16, 2002 1:57 PM
 Subject: RE: How to integrate a transformation pipeline in a
standalone java
 application
 
 
  From: Martin Henke [mailto:[EMAIL PROTECTED]]
 
  Hi,
 
  I want to integrate a transformation pipeline for xml documents in a
  standalone java application.
  Can anybody point me to a howto or example where the integration and
  configuration of such a cocoon pipeline is shown ?
 
 org.apache.cocoon.Main does it.
 
 Vadim
 
 
  With kind regards
  Martin



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




Dynamic forms

2002-04-17 Thread Cocoon Newbie

Has anyone been able to create a form where the validation rules for 
some fields dynamically change based on selections made in other fields? 
For example, postalcode would be validated differently based on the 
choice of country? Any ideas would be appreciated.

Thanks,

Ed


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




Getting rid of namespaces in result

2002-04-17 Thread Cocoon Newbie

I am trying to get rid of namespaces in my HTML output produced by 
Cocoon2. I searched the web/archives and found exclude-result-prefixes 
attribute to xsl:stylesheet element. However, if prior to using this 
attribute only HTML element had prefixes in the result, after using it 
HTML element does not but all its child nodes do. Is there a way to get 
rid of these prefixes short of defining XSLT templates for all possible 
XML elements?

Thanks,

Ed


-
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 integrate a transformation pipeline in a standalone java application

2002-04-17 Thread Martin Henke

Hi,

i want to integrate a transformation pipeline for xml documents in a standalone java 
application.
Can anybody point me to a howto or example where the integration and configuration of 
such a cocoon pipeline is shown ?

With kind regards 
Martin

Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



-
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 in pipelines

2002-04-17 Thread Phil Shafer

Hi, I'm just starting with Cocoon and had a newbie question:

Does Cocoon have a mechanism for iteration in the sitemap file? An
example would be running some sort of pipeline with the results of a
xmldb query. The SQLTranformer has something like this, but only
for additional SQL queries. If a query returned something that
needed fetched from a different source/transformer/etc, how would
one turn the list of queries into the invocations of the pipelines?

I'm imagining something like:

   map:match pattern=query/**
 map:generate src=xmldb:xindice://localhost:4080/db/{1}/
 map:iterate element=link
   map:generate src=cocoon:/{link}/
   map:transform src=getstuff.xsl/
 /map:iterate
 map:serialize/
   /map:match

I think I could do this with CIncludes, but that would hide the
iteration in an XSLT file. Is that the best way to do something
like this? Is putting this sort of stuff in the sitemap a bad
idea? Or am I just way off?

Thanks,
 Phil

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

2002-04-17 Thread Alexander Smirnoff

OK. I found the problem:

Tomcat by default uses ISO-8859-1 encoding when you submitting 
a form. So to correct the problem you have to translate it :

String newstr = new String(xsp-request:get-parameter 
name=par/.getBytes(ISO-8859-1));

Well, the question is : 

Is there any way to do this automaticly from the sitemap/cocoon.xconf
or etc.?

I'm using Tomcat 4.0.1, Cocoon 2.0

Alex.

 I know that this question maybe is not for Cocoon list. Nevertheless,
 
 I've set 
 
 META http-equiv=Content-Type content=text/html; charset=UTF-8
 
 in the html form. 
 
 When submitting the form with national characters (Russian) I recieve 
 parameters in unreadable charset. I'm not good neither in HTTP  nor in
 internationalization. Could anybody explain how to parse it correctly to
 convert whatever it is into correct UTF8 string?
 
 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 repost

2002-04-17 Thread Vadim Gritsenko

 From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
 
 OK. I found the problem:
 
 Tomcat by default uses ISO-8859-1 encoding when you submitting
 a form. So to correct the problem you have to translate it :
 
 String newstr = new String(xsp-request:get-parameter
 name=par/.getBytes(ISO-8859-1));
 
 Well, the question is :
 
 Is there any way to do this automaticly from the sitemap/cocoon.xconf
 or etc.?

I sense FAQ in here... Couple of days ago I suggested to other guy to
use
  
  request.setCharacterEncoding(utf-8);

In XSP this will look like:

  request.setCharacterEncoding (check spelling with JavaDoc)
  String param = xsp-request:get-parameter name=par/

(Note: setCharacterEncoding must be called before any access to
request's parameters! But you will read this in javadoc anyway)

Or you can put setCharacterEncoding call into an action, and it will set
character encoding for all XSPs at once.


And there is another solution which exist since day one (or almost one
;) :

  String param = xsp-request:get-parameter name=par
form-encoding=utf-8 container-encoding=iso-8859-1/


Vadim


 I'm using Tomcat 4.0.1, Cocoon 2.0
 
 Alex.
 
  I know that this question maybe is not for Cocoon list.
Nevertheless,
 
  I've set
 
  META http-equiv=Content-Type content=text/html; charset=UTF-8
 
  in the html form.
 
  When submitting the form with national characters (Russian) I
recieve
  parameters in unreadable charset. I'm not good neither in HTTP  nor
in
  internationalization. Could anybody explain how to parse it
correctly to
  convert whatever it is into correct UTF8 string?
 
  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]




unparsed-entity-uri() function returning empty

2002-04-17 Thread Conal Tuohy

I have some xml documents with unparsed entity declarations for jpeg images.
For instance:

!DOCTYPE TEI.2 SYSTEM 'teilite.dtd'[
!NOTATION jpg SYSTEM JPEG
!ENTITY filename SYSTEM filename.jpg NDATA jpg

!ENTITY Ba01SpFC SYSTEM Ba01SpFC.jpg NDATA jpg
!ENTITY Ba01SpBC SYSTEM Ba01SpBC.jpg NDATA jpg
!ENTITY Ba01SpSp SYSTEM Ba01SpSp.jpg NDATA jpg
!ENTITY Ba01STOC SYSTEM Ba01STOC.jpg NDATA jpg
!ENTITY Ba01S000 SYSTEM Ba01S000.jpg NDATA jpg
!ENTITY Ba01S002 SYSTEM Ba01S002.jpg NDATA jpg
!ENTITY Ba01S023 SYSTEM Ba01S023.jpg NDATA jpg
!ENTITY Ba01S038 SYSTEM Ba01S038.jpg NDATA jpg
!ENTITY Ba01S050 SYSTEM Ba01S050.jpg NDATA jpg
!ENTITY Ba01S101 SYSTEM Ba01S101.jpg NDATA jpg
!ENTITY Ba01S102 SYSTEM Ba01S102.jpg NDATA jpg
!ENTITY Ba01S130 SYSTEM Ba01S130.jpg NDATA jpg
!ENTITY Ba01S131a SYSTEM Ba01S131a.jpg NDATA jpg
!ENTITY Ba01S131b SYSTEM Ba01S131b.jpg NDATA jpg
!ENTITY Ba01S133 SYSTEM Ba01S133.jpg NDATA jpg

]

The xml document then refers to these entities by name:

figure entity=Ba01S038
headPhoto: Robert Cross/head
figDescBlack and white photograph/figDesc
/figure

My stylesheet attempts to use the XSL function unparsed-entity-uri() to get
the uri of the entity for the @src attribute of an HTML IMG tag, but this
doesn't work - it returns empty. I get img src=/. The odd thing is that
when I run my stylesheet through Xalan from the command line, it works fine,
it's only inside Cocoon that the function doesn't work.

I can work around it by assuming that the value of the figure/@entity tag is
a filename without extension, but this is a kludge. Can anyway suggest
anything? Thanks!

Con

---
Conal Tuohy
[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]