Re: Redirect after Generation/Transformation

2001-11-30 Thread Christian Haul

On 29.Nov.2001 -- 06:02 PM, [EMAIL PROTECTED] wrote:
 Hello,
 
 I look for a possibility to redirect the processing of a resource in C2
 after a generator- and a transformer-call to another resource, the
 obvious solutions would be map:redirect-to or map:read at the
 end of the resource.
 I think of something like this:
 
  map:match pattern=**
   map:generate src=statistics.xml/
   map:transform type=statistics/
   map:redirect-to uri=barrier/{1}/
  /map:match
 
 But both alternatives do not work after generator- and transformer-calls.
 Do I oversee something ? Or do I have to implement an action...

Beware: resource != resource

resource = any URI = map:redirect-to uri=/ = not possible after generate

resource = map:resource/ = map:redirect-to resource=/ = possible everywhere 
in pipeline

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: C2 Using Datasources for DEV, TEST, PROD...

2001-11-30 Thread Adrian Geissel

Hi,

We have a similar configuration, and have addressed it using a small little
XSLT stylesheet to rewrite the cocoon.xconf on tomcat based on a
xsl:param/ that is passed into the transformation. This is then run as an
Ant task - et, Viola!

Regards,
Adrian

- Original Message -
From: Nuno José Pires dos Santos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 3:15 PM
Subject: RE: C2 Using Datasources for DEV, TEST, PROD...


 Have diferent cocoon.xconf

 -Mensagem original-
 De: SANSONE, AARON M [Non-Pharmacia/1000]
 [mailto:[EMAIL PROTECTED]]
 Enviada: quarta-feira, 28 de Novembro de 2001 14:51
 Para: Cocoon-Users (E-mail)
 Assunto: C2 Using Datasources for DEV, TEST, PROD...

 I am preparing to implement a Cocoon 2 Web Site for Production purposes.
 Like many organizations, we have a Development, Test and Production
 environment.  Each environment has it's own web server and oracle
 database.
 What is the best way to automate having Cocoon 2 use the appropriate
 datasource depending on which web server it is located on?

 Thanks,
 Aaron

 -
 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: Redirect after Generation/Transformation

2001-11-30 Thread Nick Entin

Hi Nico,

You might be surprised to know that your generator and transformers are
not executed either!

I had your problem sometime ago and finished investigations on
sitemap_xmap.xsl (transformer of sitemap.xmap to java) - you might find
there that pipeline.execute is invoking only when serializer is
presented. From other side serializer is the last action in pipeline, so
you could not redirect after serialization.

The solution I found is 

  map:match pattern=**
   map:generate src=statistics.xml/
map:transform type=statistics2html
map:parameter name=redirecturi
value=barrier/{1} /
/map:transformer
...
map:serialize type=html /
  /map:match

And statistics2html is a little bit modified statistics:
...
xsl:param name=redirecturi /
...
html
...
meta http-equiv=refresh content=1; url={$redirecturi}/
/html

So when the pipeline is executed, the results will be shown for 1 sec
and then redirected to the desired uri...

Best wishes,
Nick

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, November 29, 2001 6:02 PM
 To: [EMAIL PROTECTED]
 Subject: Redirect after Generation/Transformation
 
 
 Hello,
 
 I look for a possibility to redirect the processing of a 
 resource in C2 after a generator- and a transformer-call to 
 another resource, the obvious solutions would be 
 map:redirect-to or map:read at the end of the resource. I 
 think of something like this:
 
  map:match pattern=**
   map:generate src=statistics.xml/
   map:transform type=statistics/
   map:redirect-to uri=barrier/{1}/
  /map:match
 
 But both alternatives do not work after generator- and 
 transformer-calls. Do I oversee something ? Or do I have to 
 implement an action...
 
 Ciao
   Nico Dirks
 
 sn AG
 netBank solutions
 Klingenderstr. 5
 D-33100 Paderborn
 Tel:  +49 (0)5251 / 1581 - 42
 Fax:  +49 (0)5251 / 1581 - 71
 mailto:[EMAIL PROTECTED]
 Internet  http://www.sundn.de
 
 
 
 -
 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]




already defined in logicsheets

2001-11-30 Thread Igor Sazhnev

Hi all!
Can anyone help me?
i have logicsheets implementing calendar which inserted in xsp page like
this:
xsp:page ...

ratty:calendar/
/xsp:page
all work fine - but i need two calendar on page, so:
...
ratty:calendar/
...
ratty:calendar/
...
then i get java already defined in this method error on all my object from
logicsheets
how can it would be done? - several instance of my object in xsp page?

best regards, Igor Sazhnev


-
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: already defined in logicsheets

2001-11-30 Thread Andrei Zudin

 ...
 then i get java already defined in this method error on all my object
from
 logicsheets
 how can it would be done? - several instance of my object in xsp page?

Seems so. What's the template for ratty:calendar/ in your logicsheet?


 best regards, Igor Sazhnev


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




Installation problem

2001-11-30 Thread maarten

Hi,
I'm trying to install the latest version of cocoon (1.8.2) with tomcat 3.3 
running under Windows XP with JDK 1.3.1, and I'm running into an error.  I 
follow the installation instructions to the letter, and then, when I try to 
load the Cocoon.xml page, I get a NoClassDefFoundError saying it can't find 
org/w3c/dom/Node.class.  I've tracked this file to xml.jar, which is in the 
tomcat/lib/apps directory, just like all the other cocoon jars, so it's 
definitely there, it's just not being found for some reason.  Anybody got any 
ideas?
Thanks in advance,
Maarten Dirkse.

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

2001-11-30 Thread Max Larsson

Hi,

if you are not fiex to cocoon 1 i would suggest
to gte the latest version vom cocoon 2.0. It is
much somther to install. And if you don't depend
on Tomcat 3, install instead Tomcat 4. Than is the
cocoon installation apiece of cake. YOu just has to
drop the cocoon.war file contained in the cocoon
zip archive into the webapps folder of tomcat and
restart tomcat.
If you are fixed to Tomcat 3 and cocoon1 the 
prolem is all i still know has to do something
with the xml parser xerces from cocoon interfering
with the oine from tomcat. This issue is described
in the FAQ (at least i think so).

HTH

Max

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 30. November 2001 13:28
 To: [EMAIL PROTECTED]
 Subject: Installation problem
 
 
 Hi,
 I'm trying to install the latest version of cocoon (1.8.2) 
 with tomcat 3.3 
 running under Windows XP with JDK 1.3.1, and I'm running into 
 an error.  I 
 follow the installation instructions to the letter, and then, 
 when I try to 
 load the Cocoon.xml page, I get a NoClassDefFoundError saying 
 it can't find 
 org/w3c/dom/Node.class.  I've tracked this file to xml.jar, 
 which is in the 
 tomcat/lib/apps directory, just like all the other cocoon 
 jars, so it's 
 definitely there, it's just not being found for some reason.  
 Anybody got any 
 ideas?
 Thanks in advance,
 Maarten Dirkse.
 
 -
 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]




XSP

2001-11-30 Thread Ferran Urgell
Hi!
I'm looking for some XSP references, and XSP tutorial or manual, (I've seenthe http://www.suranyami.com/XSPtutorial/but I would to know more about this...)
Can you help me?
Ferran
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.

Antwort: caching

2001-11-30 Thread gcasper


Did you implement getLastModified() ?

Guido


jr schrieb:
 Hi all,
 I have a system where i have a servlet generating xml from some ejb's
 I use cocoon to apply xsl to the xml and produce the various outputs.
 I have tried two methods, and both works fine, but i need to cache the
 result ans the servlet is QUITE slow and rarely changes its output.

 i have tried this:

   map:match pattern=test
 map:generate src=http://server/genXML/
 map:transform src=stylesheets/transform.xsl/
 map:serialize/
/map:match

 and this
   map:match pattern=readXML
 map:read src=http://server/genXML;  mime-type=text/xml/
/map:match

   map:match pattern=test2
 map:generate src=readXML/
 map:transform src=stylesheets/transform.xsl/
 map:serialize/
/map:match

 as stated it all work fine but is not cached as far as i can tell.
 Is there a way for me to monitor the cache. but im quite sure it is not
 cached as it is still very slow.

 I have striped my sitemap.xmap to the minimum and is deploying the
 application with all the libs from cocon. so im not as such using
 cocoon.war

 I guess my problem is that i need something more in either sitemap og
 xconf

 sitemap:

  map:components

   map:generators default=file
map:generator  name=file
 src=org.apache.cocoon.generation.FileGenerator
pool-max=32 pool-min=16 pool-grow=4/
   /map:generators

   map:transformers default=xslt
map:transformer name=xslt
 src=org.apache.cocoon.transformation.TraxTransformer
 pool-max=32 pool-min=16 pool-grow=4
 use-storetrue/use-store
 use-request-parametersfalse/use-request-parameters
 use-browser-capabilities-dbfalse/use-browser-capabilities-db
/map:transformer
   /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=html
mime-type=text/html
   src=org.apache.cocoon.serialization.HTMLSerializer/
   /map:serializer
   /map:serializers

 and the pipline with the above lines.


 in cocoon.xconf i have:

   stream-pipeline
 class=org.apache.cocoon.components.pipeline.CachingStreamPipeline
pool-max=32 pool-min=16 pool-grow=4/

   stream-cache
 class=org.apache.cocoon.components.store.MRUMemoryStore
  parameter name=freememory value=100/
  parameter name=heapsize value=6000/
  parameter name=cleanupthreadinterval value=10/
  parameter name=maxobjects value=100/
  parameter name=usecleanupthread value=true/
  parameter name=threadpriority value=5/
  parameter name=filesystem value=true/
   /stream-cache


   event-pipeline
 class=org.apache.cocoon.components.pipeline.CachingEventPipeline
pool-max=32 pool-min=16 pool-grow=4/

   event-cache
 class=org.apache.cocoon.components.store.MRUMemoryStore
  parameter name=freememory value=100/
  parameter name=heapsize value=6000/
  parameter name=cleanupthreadinterval value=10/
  parameter name=maxobjects value=100/
  parameter name=usecleanupthread value=true/
  parameter name=threadpriority value=5/
  parameter name=filesystem value=true/
   /event-cache

 I have read the docs on caching, an i think what i do is right, but i
 dont quite understand the xmlserilization part, but i have tried to
 include
 xml-serializer
 class=org.apache.cocoon.components.sax.XMLByteStreamCompiler/

 xml-deserializer
 class=org.apache.cocoon.components.sax.XMLByteStreamInterpreter/

 but to no avail.

 The bedst would be if it was cached at the html setilization step, but
 at xml generation step would be ok. I have also tried to generate the
 xml with generate / xml seriliaze instead of read.

 Thanks alot for any inputs. Thanks.
 I really hope to solve this, as the system cant go live till i have
 solved the performance problem.

 thanks again
 Jesper



 -
 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: already defined in logicsheets

2001-11-30 Thread Igor Sazhnev


- Original Message -
From: Andrei Zudin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 30, 2001 2:11 PM
Subject: Re: already defined in logicsheets


  ...
  then i get java already defined in this method error on all my object
 from
  logicsheets
  how can it would be done? - several instance of my object in xsp page?

 Seems so. What's the template for ratty:calendar/ in your logicsheet?

Hi all!
thanx to all - i solve this problem by including my variable and etc
declaration in xsp:page template of my logicsheet - not inside
page../page part
this generate java code, where my declaration is inside class derived from
XSPGenerator, not inside generate method - and its work fine!

Igor Sazhnev


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




util:include-uri

2001-11-30 Thread Ritzmann, Heiko

Hi,

I would like use util:include-uri href=http://.../. Where can I find a
good example? There isn't one in the standard cocoon, is it?

Thanks a lot

Heiko


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




XInclude and cocoon-protocol

2001-11-30 Thread Torsten Knodt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
I've got xinclude working. It seems to only work with a xml:base attribute. 
But now there is a new problem.
Is it possible to use the cocoon:-Protocol?
I wrote
xinclude:include xml:base=cocoon:/svg/static/fonts href={@name} / and 
it doesn't work.
xinclude:include xml:base=http:127.0.0.1:8080/LCARS/svg/static/fonts 
href={@name} / works.

WKR Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8B5Z3vxZktkzSmiwRAjs3AJ0XSsEWvXhEEgDMjcJc2zd+B33G2gCfTXT6
BUZmitXAcB8fFOjZzqfP5Cg=
=GzLN
-END PGP SIGNATURE-

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

2001-11-30 Thread David Rosenstrauch

Try these too:

http://www.plenix.com/xsp/doc/xsp-primer.html
http://www.intranetjournal.com/articles/27/jxml5.html
http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html

And of course the apache working draft for xsp (they're trying to turn it into a 
standard, and not just for java code but any language).  That doc used to be at 
http://xml.apache.org/cocoon/wd-xsp.html but it got moved as a result of rearranging 
the docs.  (Maybe someone on the list knows where it is now.)


DR




At 05:04 AM 11/30/01 -0800, you wrote:

Hi!

I'm looking for some XSP references, and XSP tutorial or manual, (I've seen the 
http://www.suranyami.com/XSPtutorial/http://www.suranyami.com/XSPtutorial/ but I 
would to know more about this...)

Can you help me?

Ferran


-
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: Unable to show images in IE 5.5 and IE 6.0 (slightly OT)

2001-11-30 Thread Jörn Heid

I have had a similar problem.
That time the problem was the caching of Resin.
Perhaps this might help as I do not know if Tomcat has such a feature to be
disabled.

JOERN

-Ursprüngliche Nachricht-
Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 30. November 2001 15:46
An: Cocoon-users
Betreff: Unable to show images in IE 5.5 and IE 6.0 (slightly OT)


Folks,

My Cocoon app behaves erraticaly when I try to load images (actually a lot
of them, about 100, but each of them small) using IE 5.5 or IE 6.0, while
everything is fine on IE 5.0.

Not every image is shown, though they are loaded, since I can suddenly see
them with the Show picture right-mouse command.

The status of images (shown/not shown) keeps changing at every refresh, but,
on average, almost half are NOT shown.

For displaying them in my sitemap I use the map:read element.

I was just wondering whether anyone is experiencing this problem. Which is
probably not due to Cocoon in itself.

My configuration is:

- Windows 2000 SP2 pre-SP3
- IIS 5.0
- Tomcat 3.2
- Cocoon 2.0rc2

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]




Re: Installation problem

2001-11-30 Thread Carlos Araya

To be more precise, and quoting from the installation instructions:

Instead, a hack which some people have found to work is (in the case of
Tomcat 3.2) renaming xml.jar as zxml.jar and parser.jar as zparser.jar. For
other versions try renaming crimson.jar.

Also, as Max suggested, you may want to consider upgrading to Cocoon 2.

HTH,
Carlos

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 G | California Virtual Campus
 - | C/O De Anza College
 P | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Paradoxically, a refusal to 'put a monetary value on life' means that
life is often undervalued.
-- Artificial Intelligence: A Modern Approach


 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 30 Nov 2001 13:28:00 +0100 (CET)
 To: [EMAIL PROTECTED]
 Subject: Installation problem
 
 Hi,
 I'm trying to install the latest version of cocoon (1.8.2) with tomcat 3.3
 running under Windows XP with JDK 1.3.1, and I'm running into an error.  I
 follow the installation instructions to the letter, and then, when I try to
 load the Cocoon.xml page, I get a NoClassDefFoundError saying it can't find
 org/w3c/dom/Node.class.  I've tracked this file to xml.jar, which is in the
 tomcat/lib/apps directory, just like all the other cocoon jars, so it's
 definitely there, it's just not being found for some reason.  Anybody got any
 ideas?
 Thanks in advance,
 Maarten Dirkse.
 
 -
 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]




Help Me fop in Cocoon2 !!! embedded font Problem

2001-11-30 Thread

When I used a Shell script that is added fop-0_20_1-dev.jar of C2 to
CLASSPATH for runing FOP , I had a successful test to build a pdf file
inclued Korean fonts.

But, when I built a pdf file with a web browser, I had a unrecognized
characters, like , in the pdf.

Both user-config file and metrics files were used in a Shell script for
building a pdf file.

I had a test to make a Shell script with merics files included a missed
path,  and to build a pdf file. and then,  I had a error message below.

Failed to read font metrics file
./../webapps/cocoon/hangul-fonts/gulim.ttf.xml : File
file:///x-mas/applications/uiControl/Fop-0.20.2/tests/webapps/cocoon/hangul
-fonts/gulim.ttf.xml not found.

Although I used same evironmental Shell script in a web browser test, I
never had a error message.
Moreover, I had a pdf file with Korean characters as unrecognized
characters, .

I wonder why Korean font is not built on a pdf.

I look forward to a good assistance.

Regards.


-
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 do I use logicsheets parameters

2001-11-30 Thread Christopher Watson

Christopher,

Many thanks for a model answer,

The missing penny has dropped because of your comment

remember that a logicsheet is just an XSL stylesheet that gets applied to
your XSP document to transform it into another XSP document.

I had forgotten-cum-misunderstood!

For your info C2 does things rather differently than C1, namely, instead of
using cocoon processing instructions,
you define pipelines in a sitemap.xmap file (an xml file that takes over a
lot of what was cocoon.properties),
which says how the xml file is generated (xsp, jsp, Tidied html, etc)
then how it is transformed (generally xslt, but there are also transformers
for log, sql, xinclude etc)
then how it is serialized (html, xml, wap, svg2png, etc)

That was for me the biggest change from the way C1 worked and it took a
while to get the hang of, though I sense it has more power
but the same thing can be achieved as you suggested from C1.

Christopher

-Original Message-
From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Sent: 29 November 2001 21:55
To: [EMAIL PROTECTED]
Subject: Re: How do I use logicsheets parameters



Christopher,

first, may I suggest some general strategies for developing logicsheets?
- start simple and extend by small increments, e.g., instead of trying to
get this working by passing either an attribute or a child element, get it
working one way, then get it working *seperately* the other way, then put
them together.  On another dimension, get it working first using a plain
text element, then get it working with a Java variable.

- remember that a logicsheet is just an XSL stylesheet that gets applied to
your XSP document to transform it into another XSP document.  You can take
advantage of this for debugging by simply changing your processing
instructions to pass your XSP through your logicsheet using the XSLT
processor only, then viewing the output.  (Some XML editors will also let
you do this pretty easily.)  This will give you insight into what the
final XSP code looks like before conversion to Java.  (This is easy to do
in C1; I assume you can do it in C2.)

- in addition to the above, write a plain XSP first, without using a
logicsheet, that produces the expected output.  In other words, write and
debug an XSP that looks like the XSP you want after your logicsheet is
applied.  This will help you develop your logicsheet.

Okay, so here's what I think you need to do what you are trying to do:

  XSP - Calling page  

?xml version=1.0?

xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:mytags=http://dummy.org/mytags;


  xsp:logic
String bag=56891;
  /xsp:logic
  page
 rasp
   xsp:attribute name=bagagexsp:exprbag/xsp:expr/xsp:attribute
   foo
 mytags:get_my_param
   mytags:passedxsp:exprbag/xsp:expr/mytags:passed
 /mytags:get_my_param
   /foo
   goo
!-- This just flat won't work, ever.  The xsp:attribute doesn't do anything
until
 *after* you run through the XSP processor and get converted to Java.
You want
 this attribute to be transformed by your logicsheet, which happens
*before* you
 are converted to Java.  So don't do
  --
!--
 mytags:get_my_param
   xsp:attribute name=passed23/xsp:attribute
 /mytags:get_my_param
--
!-- Instead, try this: --
mytags:get_my_param passed=bag/
  /goo
  hoo
mytags:get_my_param passed=23/
  /hoo
/rasp
  /page
/xsp:page

 Logicsheet 

?xml version=1.0?
xsl:stylesheet
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:mytags=http://dummy.org/mytags;
  version=1.0

xsl:template match=mytags:get_my_param
  myparam
!-- Note - you need to use xsp:attribute rather than xsl:attribute here
 since the xsl is applied *before* Java generation, but the value of
 the contents isn't available until the Java is running.  --
xsp:attribute name=horse
  xsp:exprxsl:call-template name=value-for-passed//xsp:expr
/xsp:attribute
  /myparam
/xsl:template

xsl:template name=value-for-passed
  xsl:choose
xsl:when test=@passedxsl:value-of select=@passed//xsl:when
xsl:when test=mytags:passed
  xsl:call-template name=get-nested-content
xsl:with-param name=content select=mytags:passed/
  /xsl:call-template
/xsl:when
  /xsl:choose
/xsl:template

xsl:template name=get-nested-content
  xsl:param name=content/
  xsl:choose
xsl:when test=$content/*
  xsl:apply-templates select=$content/*/
/xsl:when
xsl:otherwisexsl:value-of select=$content//xsl:otherwise
  /xsl:choose
/xsl:template

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

/xsl:stylesheet

 Results 

page
 rasp bagage=56891
   foo
 myparam horse=56891/myparam
   /foo
   goo
myparam horse=56891/myparam
  /goo
  hoo
myparam horse=23/myparam
  /hoo
/rasp
  /page

Hope this 

RE: How do I use logicsheets parameters

2001-11-30 Thread Christopher Painter-Wakefield


Christopher,

you're welcome; I'm glad it was helpful.  Good luck to you.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  RE: How do I use logicsheets parameters


Christopher,

Many thanks for a model answer,

The missing penny has dropped because of your comment

remember that a logicsheet is just an XSL stylesheet that gets applied to
your XSP document to transform it into another XSP document.

I had forgotten-cum-misunderstood!

For your info C2 does things rather differently than C1, namely, instead of
using cocoon processing instructions,
you define pipelines in a sitemap.xmap file (an xml file that takes over
a
lot of what was cocoon.properties),
which says how the xml file is generated (xsp, jsp, Tidied html, etc)
then how it is transformed (generally xslt, but there are also transformers
for log, sql, xinclude etc)
then how it is serialized (html, xml, wap, svg2png, etc)

That was for me the biggest change from the way C1 worked and it took a
while to get the hang of, though I sense it has more power
but the same thing can be achieved as you suggested from C1.

Christopher







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




Only a test (all the mails in my client have the same content)

2001-11-30 Thread Arno Illmann

Only a test (all the mails in my client since ca. 13:30 have the same content).

It is beginning with:

I've been watching both this thread and also the one on *sharing microsoft
experience*, and was prompted to contribute some experience.

...

and its from the developers mailing list.

Is this a problem with my client?


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




Mysql, Tomcat 3.2.3, Cocoon 1.8.2

2001-11-30 Thread Ivan Manuel Andrade Muñoz
Hello, from already thank you for their help:
If I have installed:
- Red Hat Linux 7.2
- JDK1.3
- Jakarta Tomcat 3.2.3
-Cocoon 1.8.2

Can you use mysql in Cocoon 1.8.2? If one can do I eat up I connect, like I carry out the consultations, like you relaziona with my it paginates xml?

Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com

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

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



Mysql

2001-11-30 Thread Ivan Manuel Andrade Muñoz




Hello, from already thank you for their help:
If I have installed:
- Red Hat Linux 7.2 
- JDK1.3
- Jakarta Tomcat 3.2.3
-Cocoon 1.8.2

Do I have to install the package JDBC, for you work him with cocoon.? Is Mysql to install it with some special options for cocoon?.
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com

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

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



Re: Mysql, Tomcat 3.2.3, Cocoon 1.8.2

2001-11-30 Thread Alexander Smirnoff



I guess JDBC is the only way you could make MySQL 
work with cocoon directly. I do not remember where to get JDBC driver, you 
better look into MYSQL web site there are few of them...

How to use them in cocoon is very clear from 
examples...

Good luck,
Alex.

  - Original Message - 
  From: 
  Ivan 
  Manuel Andrade Muñoz 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, November 30, 2001 4:55 
  PM
  Subject: Mysql, Tomcat 3.2.3, Cocoon 
  1.8.2
  
  
  
  
  Hello, from already thank you for their help:
  If I have installed:
  - Red Hat Linux 7.2 
  - JDK1.3
  - Jakarta Tomcat 3.2.3
  -Cocoon 1.8.2
  
  Do I have to install the package JDBC, for you work him with 
  cocoon.? Is Mysql to install it with some special options for 
  cocoon?.
  
  
  Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.com- 
  Please check that your question has not already been answered in the FAQ 
  before posting. To unsubscribe, e-mail: 
  <[EMAIL PROTECTED]>For additional commands, e-mail: 
  <[EMAIL PROTECTED]>