Re: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
Check out:

http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets

Regards, Upayavira


On 1 Jul 2003 at 16:06, Olivier GUCKERT wrote:



 Olivier Billard a écrit :
 
  Hi all !
 
  I'm trying to use a generated stylesheet for an xsl transformer and
  I get this error :
 
  org.apache.cocoon.ProcessingException: Unable to get transformer
  handler for cocoon:/picto-filter.xsl:
  org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
  creating Transform Handler
 
  Here is a snippet of my sitemap :
 
  map:match pattern=picto-filter.xsl
  map:generate src=context://WEB-INF/workflow.xconf/
  map:transform
  src=stylesheets/picto-filter-generator.xsl/
  map:serialize type=xml/
  /map:match
 
  ...
 
  map:match pattern=requestlist-part
  ...
  map:transform src=cocoon:/picto-filter.xsl/
  map:serialize type=xml/
  /map:match
 
  Isn't the cocoon protocol used in transformers ??
  Am I misunderstanding some things ?
  Thanks in advance !!

 Did youb try  :
 map:transform src=cocoon:picto-filter.xsl/

 (without the / before picto) ?

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





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



RE: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
On 1 Jul 2003 at 9:19, Orson Davis wrote:

 The stylesheet must be available before the pipeline is setup.  The
 setup, configure and compose methods for each component in a pipeline
 is called before the startdocument method is called.  In the case of
 the org.apache.cocoon.transformation.TraxTransformer the call to the
 stylesheet is made in before any XML gets generated from the generate
 portion of the pipeline.  
 
 The only way I can think to work around this is to write your own
 version of the org.apache.cocoon.transformation.TraxTransformer such
 that the getTransformerHandler(inputSource) is called from the
 startDocument.  I modified the TraxTransformer in such a way for my
 application.  It could probably be easily modified to meet your needs.
 
 If anyone knows a more graceful way to do this, please let me know.

Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you:



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



RE: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
On 1 Jul 2003 at 9:19, Orson Davis wrote:

 The stylesheet must be available before the pipeline is setup.  The
 setup, configure and compose methods for each component in a pipeline
 is called before the startdocument method is called.  In the case of
 the org.apache.cocoon.transformation.TraxTransformer the call to the
 stylesheet is made in before any XML gets generated from the generate
 portion of the pipeline.  
 
 The only way I can think to work around this is to write your own
 version of the org.apache.cocoon.transformation.TraxTransformer such
 that the getTransformerHandler(inputSource) is called from the
 startDocument.  I modified the TraxTransformer in such a way for my
 application.  It could probably be easily modified to meet your needs.
 
 If anyone knows a more graceful way to do this, please let me know.

Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you:

http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets

What you say may be correct, but the xsl for the TraxTransformer can be 
initialized from another pipeline before the main pipeline is fully set up. Surely?

(Sorry about last message - accidentally sent message before I'd finished writing 
it!)

Regards, Upayavira


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



Re: svgz to jpeg ?

2003-06-28 Thread Upayavira
Just use the svg2jpg serializer. That's it.

Regards, Upayavira

On 27 Jun 2003 at 22:26, rob wrote:

 Hi,
 
 does anyone know if it is possible to serialize a
 compressed svg file (svgz) to jpeg ?
 
 Thanks,
 
 Rob Gregory.
 



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



Re: svgz to jpeg ?

2003-06-28 Thread Upayavira
On 28 Jun 2003 at 8:39, rob wrote:

 Thanks for you reply,
 
 but how do I generate the source ?
 
 The file generator only seems to accept uncompressed
 svg. When I use a compressed svg as the source I get the
 following error message :

Ah. So your file on disc is compressed svg. Okay, so you need to uncompress it into 
XML and pass that into the SVG2JPG serializer. There's two ways to do that, either 
with a zip generator (I think there's an example of one in the Langham  Ziegler 
Cocoon book), or using the Jar protocol (see 
http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample).

Both should extract your zipped SVG ready for converting to JPG.

Hope that helps.

Regards, Upayavira


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



Re: Cocoon live site?

2003-06-27 Thread Upayavira
A quick look at their HTTP headers reports Cocoon 2.0.4.

Upayavira

On 27 Jun 2003 at 10:26, Darren Petrie wrote:

 Not sure but I think this redesigned site is running Cocoon.  
 http://www.ctg.albany.edu
 
 They mention Cocoon in their well written XML:A New Web Site 
 Architecture
 http://www.ctg.albany.edu/publications/reports/xml
 
 Darren
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Compilation of XSP on IDE only

2003-06-27 Thread Upayavira
On 27 Jun 2003 at 16:19, Joerg Heinicke wrote:

 No, because XSP files are transformed via xsp.xsl to an java file and
 will be compiled afterwards. Writing a build script doing the
 transformation and trying the compilation will be more useful I guess.

There is code within the CLI to compile XSPs. I've never used it, nor heard of anyone 
using it. I've no idea whether it works. But it is there.

Regards, Upayavira

 Joerg
 
 Nitin wrote:
   Hi,
 Is there any way to compile all xsp file of a site and get the 
 error
  results? just after amking changes in the XSP.
  thanks
  Nitin
 
 -- 
 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Cocoon to csv not excel

2003-06-27 Thread Upayavira
Using XSLT with the text serializer should do it. Just wrap your CSV content with a 
single node which will be ignored by the text serializer:

root
1,bill
2,sid
3,sue
/root

and
map:match pattern=xx
  map:generate ...
  map:transform...
  map:serialize type=text/
/map:match

Regards, Upayavira

On 27 Jun 2003 at 9:33, Tim Bachta wrote:

 Is there a way to create a csv file using cocoon?  I have looked
 through the developers handbook with no luck.  Thank you.
 
 
 
 Tim Bachta
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Cocoon to csv not excel

2003-06-27 Thread Upayavira
On 27 Jun 2003 at 9:55, Tim Bachta wrote:

 So can I use an xsl to create the node?  I have a xsp that creates an
 xml file that I don't want to change.

Yup. Use XSLT to transform your source XML into a CSV file wrapped by a single 
node, then pass it to the text serializer.

Regards, Upayavira

 -Original Message-
 From: Upayavira [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 27, 2003 9:32 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon to csv not excel
 
 Using XSLT with the text serializer should do it. Just wrap your CSV
 content with a single node which will be ignored by the text
 serializer:
 
 root
 1,bill
 2,sid
 3,sue
 /root
 
 and
 map:match pattern=xx
   map:generate ...
   map:transform...
   map:serialize type=text/
 /map:match
 
 Regards, Upayavira
 
 On 27 Jun 2003 at 9:33, Tim Bachta wrote:
 
  Is there a way to create a csv file using cocoon?  I have looked
  through the developers handbook with no luck.  Thank you.
  
  
  
  Tim Bachta
  
  
  
  
  
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Cocoon to csv not excel

2003-06-27 Thread Upayavira
On 27 Jun 2003 at 9:55, Tim Bachta wrote:

 So can I use an xsl to create the node?  I have a xsp that creates an
 xml file that I don't want to change.

Yup. Use XSLT to transform your source XML into a CSV file wrapped by a single 
node, then pass it to the text serializer.

Regards, Upayavira

 -Original Message-
 From: Upayavira [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 27, 2003 9:32 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon to csv not excel
 
 Using XSLT with the text serializer should do it. Just wrap your CSV
 content with a single node which will be ignored by the text
 serializer:
 
 root
 1,bill
 2,sid
 3,sue
 /root
 
 and
 map:match pattern=xx
   map:generate ...
   map:transform...
   map:serialize type=text/
 /map:match
 
 Regards, Upayavira
 
 On 27 Jun 2003 at 9:33, Tim Bachta wrote:
 
  Is there a way to create a csv file using cocoon?  I have looked
  through the developers handbook with no luck.  Thank you.
  
  
  
  Tim Bachta
  
  
  
  
  
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Invalid processing instruction name (saxon:warning) with the bonebreaker example

2003-06-27 Thread Upayavira
I've never tried bonebreaker, but if you've mounted it onto your root sitemap, then 
try 
accessing it via http://localhost:8080/cocoon/bonebreaker/   i.e. with a slash at the 
end. The mount probably mounts bonebreaker/ rather than just bonebreaker.

Regards, Upayavira


On 27 Jun 2003 at 17:09, Sliman Bouchareb wrote:

 hello,
 im a newbie and i just tried out the bonebreaker example from
 www.cocooncenter.de
 well i did all the changes in my sitemap to map bonebreaker like
 indicated on cocooncenter.de but everytime i get the error :
 http://www.bouchareb.de/error.htm
 
 in some postings here, i read that the source of the
 WildcardURIMatcher must be :
 
  map:matchers default=wildcard
   map:matcher name=wildcard
 src=org.apache.cocoon.matching.WildcardURIMatcher/
  /map:matchers
 
 instead of:
 
 map:matchers default=wildcard
   map:matcher name=wildcard
 src=org.apache.cocoon.matching.WildcardURIMatcherFactory/
  /map:matchers
 
 because its depricated, but the result is always the same when I call
 the api (http://localhost:8080/cocoon/bonebreaker)
 
 im using:
 w2k
 cocoon 2.0.4
 Tomcat/4.1.18
 jdk 1.4
 
 may be someone has an idea
 thank you very much
 
 Sliman
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: AW: Invalid processing instruction name (saxon:warning) with the bonebreaker example

2003-06-27 Thread Upayavira
Check all of the files that are used to generate that page exist in the right places. 
Have you put bonebreaker into a subfolder of the folder containing your main 
sitemap?

I can't guarantee to be so quick next time - time to head home now...

Regards, Upayavira

On 27 Jun 2003 at 17:21, Sliman Bouchareb wrote:

 Hi Upayavira,
 thanx for the rush response.
 Now im getting this error http://www.bouchareb.de/error2.html
 
 here is a small view of my main sitemap:
 
 map:pipeline
   !-- match the Bonebreaker homepage --
   map:match pattern=bonebreaker
 map:mount uri-prefix=bonebreaker check-reload=yes
   reload-method=synchron src=bonebreaker//
   /map:match
 
   !-- match all other Bonebreaker pages --
   map:match pattern=bonebreaker/**
 map:mount uri-prefix=bonebreaker check-reload=yes
   reload-method=synchron src=bonebreaker//
   /map:match
 /map:pipeline
 
 thanx
 
 -Ursprungliche Nachricht-
 Von: Upayavira [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 27. Juni 2003 17:13
 An: [EMAIL PROTECTED]
 Betreff: Re: Invalid processing instruction name (saxon:warning) with
 the bonebreaker example
 
 
 I've never tried bonebreaker, but if you've mounted it onto your root
 sitemap, then try accessing it via
 http://localhost:8080/cocoon/bonebreaker/   i.e. with a slash at the
 end. The mount probably mounts bonebreaker/ rather than just
 bonebreaker.
 
 Regards, Upayavira
 
 
 On 27 Jun 2003 at 17:09, Sliman Bouchareb wrote:
 
  hello,
  im a newbie and i just tried out the bonebreaker example from
  www.cocooncenter.de
  well i did all the changes in my sitemap to map bonebreaker like
  indicated on cocooncenter.de but everytime i get the error :
  http://www.bouchareb.de/error.htm
 
  in some postings here, i read that the source of the
  WildcardURIMatcher must be :
 
   map:matchers default=wildcard
map:matcher name=wildcard
  src=org.apache.cocoon.matching.WildcardURIMatcher/
   /map:matchers
 
  instead of:
 
  map:matchers default=wildcard
map:matcher name=wildcard
  src=org.apache.cocoon.matching.WildcardURIMatcherFactory/
   /map:matchers
 
  because its depricated, but the result is always the same when I
  call the api (http://localhost:8080/cocoon/bonebreaker)
 
  im using:
  w2k
  cocoon 2.0.4
  Tomcat/4.1.18
  jdk 1.4
 
  may be someone has an idea
  thank you very much
 
  Sliman
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: ASP generator

2003-06-25 Thread Upayavira
Just use either the HTML or the file (xml) generator, depending upon the output of the 
ASP page. I've done this, and it is pretty trivial.

Regards, Upayavira

On 25 Jun 2003 at 11:11, [EMAIL PROTECTED] wrote:

 Hello,
 
 Is there a way to read a dynamic HTML page generated by a Microsoft
 ASP application?
 
 Do I need the HTML generator or another asp generator?
 
 Thanks
 Sylvain
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: A tranformer for sxw files

2003-06-24 Thread Upayavira
Check out:

http://wiki.cocoondev.org/Wiki.jsp?page=OpenOfficeGeneration

On 24 Jun 2003 at 10:50, Denis Svishchev wrote:

 Hi!
 
  Is there a transformer for StarOffice sxw files?
 I want to use a StarOffice document in sxw format as a source and show
 its content as html or pdf.
 
  Thanks in advance.
 
 -- 
 Best regards,
 Denis Svishchev
 ZAO Mobicom-Kavkaz
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-24 Thread Upayavira

 What may be the cause of following ??
 Opening database: C:\Program Files\Apache Group\Tomcat
 4.1\webapps\cocoon\WEB-INF\db\cocoondb HSQLDB server 1.7.1 is running
 Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly

That is the HSQL database starting up that is integrated into Cocoon. You can switch 
it off if you want, but there is no reason to do so at first.

Upayavira

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



Re: Pass parameter to a transformer

2003-06-23 Thread Upayavira
Why don't you use the src attribute to pass in the XML file, much as any other 
transformer? Then you'd have a lot of transformers available to look at for code 
samples.

Regards, Upayavira

On 23 Jun 2003 at 16:25, Anna Afonchenko wrote:

 Hi all.
 I have written my own transformer, that gets in an XML file as a
 parameter. If I declare the parameter in the transformers bit:
 
 map:transformer name=xsl5complete
 src=com.ubaccess.xsl5.cocoon.XSL5Transformer
 parameter name=xsl5 value=xsl5new.xml/
 /map:transformer
 
 and then call it in the pipeline:
 map:transform type=xsl5complete/
 
 it works fine.
 But I wnat to pass the XMLfile name dynamically, and not when I
 declare the transformer, e.g., I want something like:
 
 map:transformer name=xsl5complete
 src=com.ubaccess.xsl5.cocoon.XSL5Transformer/
 
 map:transform type=xsl5complete
 parameter name=xsl5 value=xsl5new.xml/
 /map:transform
 
 But this doesn't work.
 How can I pass a dynamic parameter to my transformer, and what am I
 doing wrong here?
 
 Thank you very much for your help.
 
 Anna
 
 



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



Re: Upgrading Java

2003-06-20 Thread Upayavira
AFAIK the only areas where you are likely to have problems are:

1) XML/Xalan/Xerces files that are also in Java 1.4 (see 'endorsed libs problem' on 
Wiki)
2) JDBC changed from 1.3 to 1.4, so I think there are changes in terms of how that is 
handled. But you can probably work around that by replacing the excalibur-
datasource jar with the new one.

You shouldn't need to recompile anything. 

That _should_ be it. Others may choose to correct me.

I suggest you take a copy of your Cocoon installation and give it a go. (I'm regularly 
switching between 1.3 and 1.4 on the HEAD branch, and don't have 'too much' 
trouble with it).

Regards, Upayavira

On 20 Jun 2003 at 8:13, Derek Hohls wrote:

 I am wanting to upgrade my Java version from 1.3 to 1.4 
 in order to keep pace with new software that needs it
 - however, I have the '1.3 compatible' version of Cocoon
 installed.  Are then any issues in putting in the 1.4 version
 of Cocoon... can I just overwrite all the jars in the library
 and restart Tomcat - or is there some obscure and mystical
 procedure one has to follow?
 
 (I dont want to just overwrite my complete Cocoon installation
 as I have modified files in various places.)
 
 Thanks.
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 Mailscanner thanks transtec Computers for their support.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Table of contents

2003-06-20 Thread Upayavira
 I'm very newbie in cocoon. But before I very start in this nice
 framework. I want need to known something. After I read the book
 (Cocoon developper's handbook Moscar  Aston) I think it's possible,
 but I need a confirmation.
 
 I have many files in a directory :
 
   News:
news1.xml
news2.xml
.  
news100.xml
 

There are two ways you can do this:

1) Use a directory generator, which identifies the files in the directory. Use XSLT to 
prepare this into a form usable by either a CInclude or XInclude transformer, which 
will include the content from these files. Then use XSLT to strip out only the content 
you want.

2) Use the XPathDirectoryGenerator, which allows you to get specific XPath nodes 
out of the files in the directory. I'm not sure if the XPathDirectoryGenerator is 
available in 2.0.4, or just in 2.1 - I've never actually used it, but if you can find 
it, it 
would be your best approach.

If you need more explanation, please let me know.

Regards, Upayavira


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



RE: Exception when using copy-of

2003-06-20 Thread Upayavira
 I haven't seen in http://www.apache.org/dist/cocoon/ the existence of
 Cocoon 2.0.5!!!
 
 Does it really exist? What's new?

It is the current development version of the 2.0 branch, and can only be got directly 
from CVS. There'll probably be a status.xml file in with it that'll tell you what's 
new.

Regards, Upayavira


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



Re: pipeline dependencies

2003-06-20 Thread Upayavira
  If you can get pipeline B to cache, then it will only write if the
  source of that pipeline has changed.
  
  Then, if necessary, you can ignore the aggregated output from
  pipeline B, but it is just there to enforce the dependency.
  
  All depends upon the caching of the SourceWritingTransformer. 

 Thanks Upayavira. 
 I think with the current implementation that is the only
 possible way of doing it. Although it's not efficient (you dont
 actually want to aggregate), it serves the purpose.

Another way you can do it is read your original content from disc, then transform it 
into something like:

xml
  source:write
contentBlah/content
  /source:write
  contentBlah/content
/xml

This way you repeat your content twice, once to go into the SWT, and once to go on 
to the output. Your following transformer then just strips out any nodes in the SWT 
namespace.

Make sense?

Can you explain a little more _why_ you want to be writing to disk? That'll help me 
understand how best you can achieve your requirements.

Regards, Upayavira


map:match ...
  map:generate src=original source
  map:transform src=make_

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



Re: pipeline dependencies

2003-06-20 Thread Upayavira
 The thing is I generate a stylesheet in B which is used in A (and in
 other pipelines):
 
 match pattern=B
   map:generate src=resources/{filename}.xml/
   map:transform src=styles/Meta_output.xsl/
   map:serialize type=xml/
 /map:match
 
 Note that the output of B is a stylesheet (say output.xsl).
 
 Then the first thing that comes to mind is using the Cocoon protocol
 to read this output.xsl as the src of the transformer in A:
 
 match pattern=A
   map:generate src=resources/bla.xml/
   map:transform src=cocoon:/B/
   map:serialize type=html/
 /map:match
 
 But unfortunately this does not work. (I have posted messages on this
 matter a few days ago). The output of A is not what it should be at
 all. 
 
 So I thought a workaround is to write the output.xsl to file and then
 read it in A. But then I had the issue of dependencies
 
 I hope i have been clear enough. By the way have you ever tried to use
 cocoon:/ as the src of a Transformer?

Ah. Much clearer now. No you shouldn't use the SWT to do this - you should be able 
to rely upon Cocoon's caching to worry about that for you.

Yes, you can access stylesheets using the cocoon: protocol. No I haven't done it yet, 
but I will need to do so soon.

So, when you say you tried it and it doesn't work, what doesn't work? What happens?

Also, what version of Cocoon are you using?

Regards, Upayavira




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



Re: mounting, but with shared sitemap?

2003-06-20 Thread Upayavira

  Presumably what you're saying is that you want to be able to mount
  the common.xmap, but for that sitemap to be able to find out the
  name of the directory that it was mounted to, so that it can be used
  in locating other resources? Is that right?

 Yes. Exactly that. Is that possible?

Hmm. As I was writing that I was hoping you weren't going to say yes!!

Anyway, I have built something similar recently, although I didn't have the two 
sitemaps, I did it all with one.

I used stuff like:

map:match pattern=*/page.html
  map:generate src=skins/{1}/config.xml/
  map:transform src=common/prepare.xsl/
  map:transform src=skins/{1}/skin.xsl
map:parameter name=skin value={1}/
  /map:transform
  map:serialize type=html/
/map:match

There you have a site that'll work for the following structure:

root/
  sitemap.xmap
  skins/
foo/
  config.xml
  skin.xsl
bar/
  config.xml
  skin.xsl
  common/
prepare.xsl

With a system like that, you can have some files accessed from your 'skins' directory 
structure, and others from your common shared files, depending upon whether you 
want them shared or separate.

Then you just need an error handling pipeline to catch those situations where the 
URL doesn't match a valid skin.

Make sense? Does this do what you want?

Regards, Upayavira


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



Re: pipeline dependencies

2003-06-19 Thread Upayavira
 Is it possible to define pipeline dependencies in the sitemap? 
 
 Imagine I have two pipelines A and B. 
 Pipeline B has a SourceWritingTransformer and all it does is writing a
 generated document on the filesystem. Pipeline A has its own generator
 and transformer but it depends on the document written by B. So A
 denpends on B. In other words when A is called B has to be called
 first but the output of A sould be serialized to the browser (and not
 the output of B).

You could try just including pipeline B in with pipeline A using cocoon:, e.g.

map:match pattern=B
  map:generate...
  map:transform type=SWT
  map:serialize type=xml/
/map:match

map:match pattern=A
  map:aggregate element=foo
map:part src=cocoon:/B/
map:part src=a-src.xml/
  /map:aggregate
  map:transform...
  map:serialize...
/map:match

If you can get pipeline B to cache, then it will only write if the source of that 
pipeline 
has changed.

Then, if necessary, you can ignore the aggregated output from pipeline B, but it is 
just 
there to enforce the dependency.

All depends upon the caching of the SourceWritingTransformer. 

I may well be off track here...

Regards, Upayavira


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



Re: get request attribute in sitemap

2003-06-17 Thread Upayavira
Do you mean request parameters? There are three input modules that allow access 
to request details, request, request-param, and request-attr.

I've only used request param, with which you can get get/post parameters from the 
request, e.g: http://server/cocoon/page?name=peter

You can use 'peter' in your sitemap like this:

map:transform src=xsl/foo.xsl
  map:parameter name=name value={request-param:name}/
/map:transform

So, Peter will be passed to the transform as a parameter.

Is this what you're after?

Upayavira

On 17 Jun 2003 at 3:36, Hill Karimov wrote:

 Hi all,
 
 Is possible to get request attribute in sitemap?
 some like to get request parameter:
 
 map:match pattern=delete_account.html
   map:act set=process
 map:parameter name=descriptor
 value=descriptors/form_account.xml/
   /map:act
 
 !-- ??? some like it --
   map:act type=request
 map:parameter name=attributes
 value=true/
 map:redirect-to
 uri=account.html?account={my_request_attribute}/
   /map:act
 
   !-- 
   map:act type=request
 map:parameter name=parameters
 value=true/
 map:redirect-to
 uri=account.html?account={my_request_parameter}/
   /map:act
  --
 /map:match
 
 any advice, helps,
 
 Thanks,
 Hill
 ps: i use 2.1m3-dev
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: OOo and ZipArchive serializer

2003-06-16 Thread Upayavira
Matthias,

 unfortunately your patch doesn't work. The STORED method expects the
 file size and the crc code, which is not set. 

Is it possible to set the file size and CRC after the content has been written to the 
outputstream? If so, we can calculate/set them easily.

 Attached is a patch with
 a small sample for the ZipArchiveSerializer. The sample takes three
 files from the hello-world sample and returns a hello.zip file. AFAIK
 there's no example atm. The hello_zip.xml file should be put in
 src/webapp/samples/hello-world/content/. 

I've just committed your patch. Thanks.

Upayavira


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



Re: Writing to filesystem

2003-06-16 Thread Upayavira
 Hi,
 
 What is the best way to write the output of a Transformer (in a
 pipeline) into a file (e.g. /resources/bla.xml) on the filesystem?

Check out the SourceWritingTransformer.

Regards, Upayavira


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



Re: OOo and ZipArchive serializer

2003-06-12 Thread Upayavira
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

    File information ---
 File:  ZipSerializer.patch
 Date:  12 Jun 2003, 12:29
 Size:  1968 bytes.
 Type:  Unknown


ZipSerializer.patch
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: OOo and ZipArchive serializer

2003-06-12 Thread Upayavira
Georges,

 Well, I m not ready to post, because have some problems with
 ZipArchive serializer In OpenOffice Writer document (sxw) there is 4
 files: meta.xml styles.xml content.xml settings.xml and a directory
 META-INF/
 
 meta.xml  is not compressed  to allow easy searching and extraction of
 the meta data. Well, How can I do that, is there a ZipArchive
 parameter to fixe the compression level to 0% for this file?

Does meta.xml need to not be compressed? Won't it work with a compressed 
meta.xml?

I've just looked into the code for the ZipSerializer (which I've never used). It 
doesn't 
allow you to specify a compression level. 

Now, I'm assuming you're using Cocoon 2.1. I've attached an untested patch to the 
ZipSerializer that should make it do what you want by adding a 'method' attribute to 
the 'entry' node. Have a go at applying the patch (at worst by cutting and pasting the 
changes, marked by +) into the code for the ZipSerializer and rebuild Cocoon.

Do you think you can handle that?

If it works, I'll apply it to the latest CVS.

Regards, Upayavira


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



Persistent Cookies

2003-06-12 Thread Upayavira
I'm playing with using Cookies from flow, and I've got a basic system going, which 
is great.

However, I'd like to make the the cookie persistent (i.e. stays forever), but the 
servlet cookie class setMaxAge takes an int, which only allows me to persist for 27 
days

How can I extend beyond this?

Regards, Upayavira

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



Re: Persistent Cookies

2003-06-12 Thread Upayavira
 I'm playing with using Cookies from flow, and I've got a basic system
 going, which is great.
 
 However, I'd like to make the the cookie persistent (i.e. stays
 forever), but the servlet cookie class setMaxAge takes an int, which
 only allows me to persist for 27 days
 
 How can I extend beyond this?

Er. Um.

I've just seen that an int in Java is 32 bits, not 16, which means that, instead of 
lasting 
for a matter of days (or should it be hours), a cookie can be set to last for up to 68 
years. I suspect that should be long enough for me :-)

Oops. Upayavira

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



Re: OOo and ZipArchive serializer

2003-06-12 Thread Upayavira
Let me know what version of Cocoon you're using and I'll try to send a correct patch.

Upayavira

On 12 Jun 2003 at 19:49, Georges Roux wrote:

  Sorry, the patch fail I think, it's better to wait some time a next
 version, to have a Zip serializer more efficient.
 
 patch  ZipSerializer.patch
 patching file ZipArchiveSerializer.java
 Hunk #1 FAILED at 111.
 Hunk #2 FAILED at 288.
 2 out of 2 hunks FAILED -- saving rejects to file 
 ZipArchiveSerializer.java.rej
 
 
 Georges
 
 Upayavira wrote:
 
 The following section of this message contains a file attachment
 prepared for transmission using the Internet MIME message format. If
 you are using Pegasus Mail, or any another MIME-compliant system, you
 should be able to save it or view it from within your mailer. If you
 cannot, please ask your system administrator for assistance.
 
 File information ---
  File:  ZipSerializer.patch
  Date:  12 Jun 2003, 12:29
  Size:  1968 bytes.
  Type:  Unknown
   
 
 -
 ---
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: OOo

2003-06-11 Thread Upayavira
Georges,

Sounds great! Well done!

Now, would you be willing to write this up for the benefit of others on the Cocoon 
wiki?

If you go to:

http://wiki.cocoondev.org/Edit.jsp?page=OpenOfficeSerialization

You can create a page there.

That would be really helpful.

Regards, Upayavira

On 11 Jun 2003 at 2:23, Georges Roux wrote:

 It work perfectly now,
 but there is some error in the ZipArchive serializer documentation the
 end tag is wrong. /zip:archive:zip must be /zip:archive
 
 I am very happy cause now I can use this format to transform to OOo
 documents Thanks everybody
 
 Georges


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



RE: conditions in xsl

2003-06-11 Thread Upayavira
On 11 Jun 2003 at 10:41, [EMAIL PROTECTED] wrote:

 Just a question about your code, I try to use parameter like you, but
 from another page. What is wrong here???
 
 Sitemap :
 =
 map:transform type=xslt src=test.xsl
  map:parameter name=use-request-parameters value=true/
 /map:transform  
 
 XSL :
 =
 
 xsl:variable name=passwordxsl:param
 name=password//xsl:variable
 ...
  user
   namexsl:value-of select=cn//name
   passwordnormalize-space(password)/password
  /user

You should have 
xsl:stylesheet
  xsl:param name=password/

  xsl:template match=..
 ..
passwordxsl:value-of select=normalize-space($password)//password
...

But this is more of an XSLT question than a Cocoon one: perhaps you should be 
checking these things out on the Mulbery XSLT list.

Regards, Upayavira


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



Re: Gif image

2003-06-10 Thread Upayavira
 I am trying to show an image in my final file.  I am using the
 following code in my xsl file but when I go to the page as all I get
 is the blank image icon.  Can anyone please help me with my little
 issue here, I know it is probably a stupid mistake but I have not been
 able to find it anywhere.  Thanks.

Firstly, read:

http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles

 img src=C:\Program Files\Apache Group\Tomcat
 4.1\webapps\cocoon\vyzo\images/icons/disabled/keypad.gif /br
 /Keypad

Then,  in your code, use img src=vyzo/images.../ where whatever is in the src 
attribute is matched by a matcher in your pipeline.

Regards, Upayavira


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



Re: Cocoon: presentation tier + J2EE EJB business tier --- a

2003-06-09 Thread Upayavira
 
 I came across an article by Ovidiu Predescu 
 (http://www.webweavertech.com/ovidiu/weblog/index.html)  discussing a
 topic originated by Eric van der Vlist
 (http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html) which
 appears to address this design approach.  Are you familiar with this
 pattern?  What are your thoughts?

Very interesting reading. And, this approach can be extended, to ease the lives of 
Dreamweaver-bound designers.

Why use your own XML markup to add your XSLT elements? Why not use a 
combination of HTML and CSS? For example:

div class=repeat-books
   tr
 td
span id=book-titleBook Title/span
 /td
 td
span id=book-authorBook Author/span
 /td
 td
span id=book-priceBook Price/span
 /td
  /tr
/div

Then, your [EMAIL PROTECTED]'repeat-books'] node gets replaced with an xsl:for-each, 
and 
your [EMAIL PROTECTED]'book-title'] with an xsl:value-of, etc. The text within the 
spans will be 
discarded, and is provided simply for the designer's convenience.

Then, you use an HTML generator followed by an XSLT transform to make your 
XSLT stylesheet ready for use.

Now that strikes me as clever, and really useful.

What do the rest of you think?

Regards, Upayavira


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



Re: [patched livesites.xml] Re: CVS livesites.xml - what is couldn't

2003-06-09 Thread Upayavira
 i have a file (livesites.xml)  marked with - or +
 
 the next step is to remove all (-) lines and send you the rest ?
 
 (sorry but its the first time i do something like this using cvs)

Sounds like you have exactly what you want. Leave the file as is and send it. Don't 
remove anything.

Regards, Upayavira


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



Re: AW: Can't seem to load Firebird driver

2003-06-06 Thread Upayavira
Nikolai,

 OK, I've added a page, could somebody please check it as it is my
 first wiki entry? Just for the record, there is a firebirdsql-full.jar
 which contains all the necessary classes, so it can be used instead of
 firebirdsql.jar + [mini-]concurrent.jar + [mini-]j2ee.jar + jaas.jar
 (for pre-1.4 JDKs). Not sure about the jta.jar and connector.jar that
 Edison mentioned, though. These aren't mentioned in the in the jaybird
 instructions and mine seems to work fine without them.

Looks good to me (can't vouch that the content works yet, though).

I tried to get Firebird working some time ago, but gave up. So I've now got something 
to try at some future point. Thanks for that.

Regards, Upayavira


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



RE: Please take care a virus is near of us!

2003-06-06 Thread Upayavira
Dear All,

 Take care of the mail from Upayavira [EMAIL PROTECTED] with
 the subject : Re: commandline executes matching pipeline three times
 and an 038-001_DataDictionary.xls.exe file attached!

As you can see from the above, this email was not sent by me. My email address 
is [EMAIL PROTECTED], not [EMAIL PROTECTED]

I remember around six months ago receiving a lot of emails, obviously sent by 
some virus, where the sender's email address was made up of a couple of other 
people's email addresses, taken from the user's mailbox. Obviously, this virus, 
where-ever it is, randomly chose my name.

To explain how I know: I use Pegasus Mail, which does not execute attachments, 
so a virus could not have got in that way.

Also, McAfee virusscan (with latest definitions) has been running for 1 1/2 hours 
so far and has found nothing.

But at least this little incident has made me update (or should I say install) my 
virus software!

Regards, Upayavira

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



Using cookies

2003-06-05 Thread Upayavira
Dear All,

I have a small application that I want to be able to set and read a cookie from the 
user's browser. The cookie must be persistent.

In ASP, to set the cookie I would simply say:

Response.cookies(name)=request(name)

Then I can access it with:

Request.cookies(name) 

I would imagine that this should be easy with Cocoon - a combination of an Action to 
set the cookie and an input module to read it. I'm quite prepared to use flow if 
that'll 
help. 

But I can't find anything to point me in the right direction. 

Any pointers anyone?

Regards, Upayavira


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



Re: commandline executes matching pipeline three times

2003-06-05 Thread Upayavira

 thanks for the replies, it saves me a lot of frustration :)
 In the application, a transformer will be used to transfer the
 incoming XML to an FTP server. The resulting XML will contain info
 about the transfer, such as size, failure/success, ... So it is
 important that the transfer happens only once... If you have any other
 suggestions for doing this, it would be appreciated ! 

Can you explain more exactly what you're trying to achieve? What transformer will 
you use? If you're talking about writing your own transformer, I would recommend 
using the SourceWritingTransformer and creating an FTPSource that you can write 
to. Even better, write a VFS source (giving other protocols too). The source itself 
could probably be configured to record success/failure, and to only transfer once.

 (BTW, Cocoon2.1 is not an option at this point)

It's a real shame that you're not able to use 2.1, as it now can write directly to 
modifiable sources. Therefore, if you had an FTP source, you could generate a page 
and have the CLI send it straight to your FTP server.


 Thanks again !

You're welcome!

Upayavira

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



Re: Using cookies

2003-06-05 Thread Upayavira
  there is a cookie logikcheet in xsp

Thanks. I'll look into that.
 
 but i dont know if they are online information (examples) somewhere

Regards, Upayavira

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



Re: commandline executes matching pipeline three times

2003-06-05 Thread Upayavira
 Look at the Cocoon Wiki
 (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine):
 
 snip
 In order to follow links and rewrite URLs, Cocoon must generate pages
 multiple times:
 
  * once to extract links from the page, using the links view
  * once to check the mime type for URL rewriting
  * once for getting page contents
 /snip

And check out the CLI in 2.1. Much improved, and can be configured to only generate 
pages once.

Regards, Upayavira


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



Re: CLI problems (ComponentSelector, cocoon protocol)

2003-06-04 Thread Upayavira
Andreas,

  I'd suggest trying the CLI from 2.1. It has much greater
  functionality.
 
 OK, I could try that. But I guess it isn't possible to use the
 Main class from 2.1 for a 2.0.4 site, is it?

No, I very much doubt that would work.

Have you read the page on the Wiki on the 2.0.4 CLI?

http://wiki.cocoondev.org/Wiki?page=CommandLine

It might help you out.
 
 Actually, at the moment all I need is the functionality to generate
 static pages, and I won't have the time to test additional features.

Oh well!

 But I will follow the topic on the list - the CLI is a great feature!

I agree. But one that needs more work to get it to where it could really be.

 Maybe the Forrest guys are interested in more flexibility? I heard
 that they would like to move some functionality from Ant to Cocoon.

I'm sure they would be. No doubt they'll test it for me.
 
 Thanks for your help!

You're welcome.

Upayavira

 The following problems occur:
 
 - The ComponentSelector does not find default components
(could not find component for hint []). If I add type
attributes to all component references in the sitemap,
everything is fine.
 
 - The cocoon: protocol does not work properly (I forgot the
error message, but I can reproduce them if this helps).
 
 - One page produces a broken link. The debug messages look
OK (apart from the broken link one ...). The log files
don't contain any exceptions, only success messages for
all transformation steps.
 
 In Tomcat, everything works fine.
 
 Has anyone experienced similar problems?
 Could it help to update to a newer snapshot?
 Or should I try to use the batchfiles from the source
 distribution instead of the Ant project?
 
 Thanks in advance!
 Andreas



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



Re: Newbie: writing XML files with Cocoon

2003-06-04 Thread Upayavira
 Apologies if this is a basic question.
 
 I'm just starting with Cocoon really and am trying to produce a
 content management system using it to see whether it really is
 suitable for my needs.
 
 As part of this I need to edit xml files via the browser but it occurs
 to me this must be something that loads of people have done already.
 My question is therefore what content management projects exist or
 failing that what browser based XML editing tools exist.
 
 I'm using:
 Win98
 Tomcat 4.1.24
 JDK 1.3.1
 Cocoon 2.1

If you're using 2.1, you should try Stefano's Linotype. I haven't yet tried it (but 
will 
soon). It looks really cool. Unfortunately the download link is broken, so I can't 
tell you 
where to get it, and Stefano is apparently hiking up an inca trail towards Machu 
Picchu, which doesn't help! But it is well worth waiting for. It uses client side 
wysiwyg 
editing on IE6 and Moz6, and flow behind the scenes.

Hope that helps (and doesn't cause too much 'I can't find it' frustration).

Regards, Upayavira



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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-04 Thread Upayavira
Haven't done it yet myself, but have you read the Wiki page for Cocoon 2.1?

http://wiki.cocoondev.org/Wiki.jsp?page=LoadInEclipse

Regards, Upayavira

On 4 Jun 2003 at 10:51, Lionel Crine wrote:

 Sorry I'm lost :
 
 Whould you like me to send the configuration for eclipse to work with
 cocoon and tomcat and sdk 1.4 ? If yes, tell me.
 
 
 
 
 At 10:43 04/06/2003 +0400, you wrote:
 But who can send the solution about the using the eclipse in this
 configuration?
 
   I use tomcat cocoon and the sdk 1.4
  
   All is working fine.
  
   Do you have an error message ?
  
  
   At 07:27 03/06/2003 -0700, you wrote:
   Hi,
   
   I would like to debug cocoon with eclipse and tomcat.
   I have the blueskytime plugins for eclipse and tomcat but could
   not make them debug cocoon. May be there's something i'm not
   doing right?
   
   Galia
   
   
 
 --
 
 Best regards,
 Yury Mikhienko.
 IT engineer, ZAO Mobicom-Kavkaz
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: CLI problems (ComponentSelector, cocoon protocol)

2003-06-03 Thread Upayavira
Andreas,

 I'm running the Main class of Cocoon 2.0.4 from an Ant buildfile
 on Windows XP.

I'd suggest trying the CLI from 2.1. It has much greater functionality.

And, when I've summoned up the guts to make my first commit, it'll handle broken 
links much better and be more configurable as to what you can do with a page once 
you've generated it.

If you're interested in this, let me know and I'll tell you when I've committed it. 
I'd 
appreciate some help testing it!

(FYI, I've certainly had the cocoon: protocol working on sites I've got).

Regards, Upayavira

 The following problems occur:
 
 - The ComponentSelector does not find default components
(could not find component for hint []). If I add type
attributes to all component references in the sitemap,
everything is fine.
 
 - The cocoon: protocol does not work properly (I forgot the
error message, but I can reproduce them if this helps).
 
 - One page produces a broken link. The debug messages look
OK (apart from the broken link one ...). The log files
don't contain any exceptions, only success messages for
all transformation steps.
 
 In Tomcat, everything works fine.
 
 Has anyone experienced similar problems?
 Could it help to update to a newer snapshot?
 Or should I try to use the batchfiles from the source
 distribution instead of the Ant project?
 
 Thanks in advance!
 Andreas
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: Jscript in xml pages. Disaperas after file generation

2003-05-30 Thread Upayavira
On 30 May 2003 at 10:38, Rainer Ammermann wrote:

 Hallo Galia,
 try using lt; for  and gt; for .
 Since !--   -- defines a comment already at the XML/XSLT-level,
 it is ignored by the processor and thus not included into the HTML
 result tree. Best wishes Rainer

AFAIK doing that will result in lt; and gt; in your resultant HTML.

Instead, wrap the entire Javascript area, including !-- in an XML CDATA tag (sorry, 
can't remember syntax).

Regards, Upayavira

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



Re: SourceWrite error :|

2003-04-05 Thread Upayavira
 Yeah... but that way I can do it grabbing the new data in the
 generator pipeline, and in the transformer grab the local repository
 to merge with, or grab the local data in the generator, and then grab
 the remote data on by xslt... what's easier?

I would use an aggregator:

map:match pattern=x
  map:aggregate element=page
map:part src=newcontent.xml/
map:part src=originalsource.xml/
  /map:aggregate
  map:transform src=prepare-source.xsl/
  map:transform type=source-writing/
  map:transform src=source-result.xsl/
  map:serialize type=html/
/map:match

Here you aggregate your two xmls into a single stream wrapped with a page 
node. Then you transform these two xmls into a form ready for the source writing 
transformer. Then you do the source write. Then, finally, you convert the result of 
the write into html to present success or failure to the web user.

Make sense?

Regards, Upayavira


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



Re: map:redirect-to problem with source-write

2003-04-05 Thread Upayavira
 We have this code as below
 
 map:match pattern=do-search
 map:generate type=file src=xml/source-file.xml/
 map:transform type=xslt src=xsl/search2xml.xsl/
 map:transform type=tofile
 map:parameter name=serializer value=xml/
 /map:transform
 
 map:redirect-to uri=sucess/
 map:serialize/
 
 /map:match

As far as I know, redirect-to cannot be used with any other pipeline elements, so it 
won't work in the way you've described.

See my other mail as to how to achieve what you want. And by the way, XML is the 
default serializer for the source writing transformer, so you don't need to specify it.

Regards, Upayavira


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



Re: SourceWrite error :|

2003-04-05 Thread Upayavira
 We're thinking that you're a god (lol), because you're just telling us
 the problem we just had discovered, so we're thinking that you're a
 mindreader :) kidding :)

Gee. Maybe those years of meditation are working in ways I didn't expect!

 Actually, we we're empty the temporary internet files everytime we
 wanted to check if he was merging the files lolol But incredibly it is
 really working :) So, we're thinking that in the end, cocoon isn't to
 bad as we thought...

It is rather good, actually!

 Thanks once again

You're welcome.

Upayavira


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



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
 Hi all,
 
 We're getting this error on sourcewrite transformer:
 
 The src attribute doesn't resolve to a writeable source and failed to
 cancel 
 ...
source:write src=context://pubmed/repository/my.xml
 ...

The source you write to must be 'writable'. Obviously 'context:' does not refer to a 
source that is writable. If you wish to write to a file, try either 
src=pubmed/repository/my.xml or 
src=file:/path/to/context/pubmed/repository/my.xml

This should work as file: is writable.

Regards, Upayavira


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



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
Try adding  overwrite=true into the source:write node. Not sure if that is it, but 
it is
worth a try.

Upayavira

On 4 Apr 2003 at 16:53, João César wrote:


 Hi, first of all thanks for your prompt answer :)

 I've just changed to source:write src=repository/my.xml and the
 error still remains, but after I analyse the XML displayed in the
 browser we see:

 ?xml version=1.0 encoding=UTF-8?
 page xmlns:source=http://apache.org/cocoon/source/1.0;
source:write src=file:/C:/Program Files/Apache Group/Tomcat
 4.1/webapps/cocoon/pubmed/repository/my.xml action=none
 result=failed serializer=xmlThe src attribute doesn't resolve to
 a writeable source and failed to cancel/source:write
  /page

 And the file exist's on that computer directory.. Do we need to write
 something on the file for it to become writable, or can it be empty?

 Thanks in advance

 Joao Cesar
 [EMAIL PROTECTED]




 - Original Message -
 From: Upayavira [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 04, 2003 4:45 PM
 Subject: Re: SourceWrite error :|


   Hi all,
  
   We're getting this error on sourcewrite transformer:
  
   The src attribute doesn't resolve to a writeable source and
   failed to cancel  ...
  source:write src=context://pubmed/repository/my.xml
   ...
 
  The source you write to must be 'writable'. Obviously 'context:'
  does not
 refer to a
  source that is writable. If you wish to write to a file, try either
  src=pubmed/repository/my.xml or
  src=file:/path/to/context/pubmed/repository/my.xml
 
  This should work as file: is writable.
 
  Regards, Upayavira
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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





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



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
 No effect :(

Oh well.
 
 Perhaps we could use source:insert instead, we've tried but we get an
 XML output of what we wanted to insert, and no changes on the file :|

No, that is syntax for 2.1 AFAIK, not 2.0.4. You need source:write src=... as 
you had.
 
 There are no working examples on the documentation, just a scratchpad
 that we already tested with no results also...

Are you using 2.0.4?

 Why are we figuring that altought may appear easy to work with cocoon,
 everytime we atempt to do something simple there's always some problem
 :( And the documentation never tells all the options and tags
 available like the one you just gave us :(

Believe me, it does get easier as you get used to how to work with Cocoon. And 
there are discussions going on at the moment about how to improve 
documentation for people like yourself...check out the Wiki (wiki.cocoondev.org).
 
 Is there any other transformer to write to a file?

I've had it working, so it is possible.

I used the sample that was as a part of Cocoon 2.0.4. Have you tried moving the 
file out of the way and having another go?

Upayavira



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



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
 Yes, but the error keeps going on.. I'll check that later, and search
 a little more deep for help on documentation...

Okay. Check in your $COCOON-HOME/WEB-INF/cocoon.xconf and make sure 
you've got this entry:

  source-handler logger=core.source-handler
!-- file protocol : this is a WriteableSource --
protocol class=org.apache.cocoon.components.source.FileSourceFactory 
name=file/

  /source-handler

That being missing could cause the problem.

Upayavira

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



Re: TEI and cocoon

2003-04-04 Thread Upayavira
 I am having some issues using the TEI (http://www.tei-c.org/Lite/)
 stylesheets (http://www.tei-c.org/Stylesheets/teixsl.html) to convert
 the XML to HTML. After much searching I found a document on the cocoon
 wiki discussing the xsl:output tag and how it cannot be used in cocoon
 - http://wiki.cocoondev.org/Wiki.jsp?page=XSLT.

It's not that it won't work, more that you shouldn't be using it for certain 
functionality. 
Therefore, if it is in an existing stylesheet, you might well find it works anyway.

Can you say more about what the problems are that you're having?

Upayavira


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



Re: SourceWrite error :|

2003-04-04 Thread Upayavira
 thnks :)
 It worked :)

Great! It is pleasing when logic prevails!
 
 Now I just have one question: I use the source:write tag to write to
 the file, and overwriting it, but what if I want to append data to the
 existing file ? Can i use the source:insert tag? Or is it another
 way to do it ?

In 2.1, you can use insert. In 2.0.4, you'll need use XSLT to merge the data and then 
write the whole file back to disc. Make sense?

Upayavira

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



Re: Sample PDF

2003-04-04 Thread Upayavira
To my mind, the crucial bit:

 - Root Cause -
 java.lang.NoClassDefFoundError
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:232)
 at
 org.apache.avalon.excalibur.component.DefaultComponentFactory.newInsta
 nce(DefaultComponentFactory.java:163)
 at

There's a component that Cocoon can't find. Make sure that you've got an entry 
something like:

map:serializer name=fo2pdf 
src=org.apache.cocoon.serialization.FOPSerializer ...

in your sitemap. If not, get that line from the sitemap in the original package and 
try 
again.

HTH. 

Upayavira




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



Re: 2.1 dev - CVS whats the new steps to build

2003-03-31 Thread Upayavira
  This I downloaded today. I retrieved it from xml-cocoon2. I
 just looked at wincvs and it shows:
 
 cvs -z9 update -d -P -r HEAD xml-cocoon2
 
 If I didnt do the download right, what should it have been?  I
 think the instruction steps to download said xml-cocoon2 but
 perhaps those need updating.

You should now be using cocoon-2.1 instead of xml-cocoon2. This changed a 
number of weeks ago, in recognition of the fact that Cocoon is now an Apache 
project in its own right.

Regards, Upayavira

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



Re: problems with Forrest

2003-03-31 Thread Upayavira
 To Whom It May Concern:
 
 I am trying to setup Forrest on my MacOSX box using jboss and tomcat.
 Is anyone on this list familiar with Forrest?

There may be people here, but you're best of asking on the forrest-dev list.

Regards, Upayavira


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



Re: CLI output file names

2003-03-27 Thread Upayavira
 When running Cocoon as a command line tool, how does Cocoon determine
 what to name the resulting files?  I assume the URI you specify after
 the options is matched by one of the matchers in the sitemap, and so I
 know where processing starts, but since a serializer, when run as a
 web app, streams to a servlet/browser, where does output go when using
 the CLI?

The 2.0.4 CLI checks the mime type of the page, and derives the filename from the 
URI after ensuring that the file extension is correct. Thus, a text/html page called 
'foo' 
would become foo.html.

The 2.1 CLI in CVS has functions to prevent this extension checking, which means 
that the resulting filename is the URI (less ? and # characters, etc). [it does still 
have 
one or two bugs to be ironed out, though].

 I've searched all the web links, books, FAQs and mailing lists, but I
 can find very little on using the CLI.  I found an example in
 build.xml, but I still don't understand how the output filenames are
 determined.  For example, if I have a match element for
 usersguide.fo that passes it to the fo2pdf serializer (FOP), how do
 I indicate the output PDF filename?  

See http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine for more info.

The best way to handle filenames is to simply make the URI a valid filename, e.g. 
userguide.pdf, if you want to use the CLI.

Regards, Upayavira

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



Re: Are Continuations Expensive?

2003-03-27 Thread Upayavira
 I'm about to dive into Continutations and I'm wondering about their
 scalability.  I don't know much about the implementation, but isn't
 storing the StackTrace expensive?

First a disclaimer: I've never used continuations.

From discussions on cocoon-dev, I understand that only the part of a stack that is 
different from others is stored, not the whole stack each time. Also, variables are 
shared between continuations, again reducing memory usage.

I'm not saying that this makes them inexpensive - just that memory usage does 
appear to have been thought about.

Upayavira

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



Re: convert from asp online form to something under cocoon

2003-03-26 Thread Upayavira
 I'm currently running a site under cocoon. The site needs to have
 several online forms of which the data needs now to be sent into an
 Access database. What way should I go from here? What are the
 possibilities to achieve this (if such goal is achievable)?

Can't really answer that bit.

 PS: Can I work with asp cdonts without cocoon ruining my code?

What do you mean here? CDONTS is a Windows system for sending emails. Cocoon 
does not have access to that at all. If what you're trying to do is send emails, 
you'll 
need to find a Cocoon way of sending mail. I've heard mention of a mail logicsheet.

Anyone know how to use Cocoon to send an email?

Regards, Upayavira


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



Re: Cocoon-based Database Administration

2003-03-26 Thread Upayavira
 P.S.  I'm looking into Castor...

And then there's Hibernate, Torque and OJB. I've heard someone recommend 
starting with OJB...

And have you checked out the petshop example that's being worked on on cocoon-
dev? Try downloading the latest from CVS and try that out. May answer some of your 
questions (and probably give you more - such as should I really be using 2.1...).

Regards, Upayavira


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



Re: Problems with Cocoon 2.1 dev (CVS)

2003-03-20 Thread Upayavira
Geoff Howard wrote:
 Which cvs module name are you using: the old xml-cocoon2 one or the
 new cocoon-2.1 (or something like that)?  Also, have you tried doing a
 build clean first and then build war?

I had the same. I did build clean/build webapp as you suggest, and it now works.

Thanks! Upayavira


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



Re: Lucene index building

2003-03-19 Thread Upayavira
Jeremy,

 This all looks fine
 My exclude string looks like this though :
 
 exclude.*\.png$,.*\.js$,.*\.css$,.*\.gif$,.*\.jpg$,.*/search/.*,.*/
 easy/.*/exclude
 
 I believe as soon as you specify an exclude string, the default values
  for images etc. are not used.
 
You're a hero. I added a number of excludes, then checked my logs. At
present, there are a few broken links that I haven't yet been able to fix, I spotted by
looking into the logs, which broke it. So I added them to my excludes, ran it and 
waited, and works! Without changing the heap-size, which, given the number of 
errors in my site, probably wouldn't have fixed it anyway.

I've just uploaded it onto my test server, and it works a treat!

Thanks for that.

Regards, Upayavira


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



Re: WritableSource output Cocoon 2.0.4

2003-03-18 Thread Upayavira
  The sourceWritingTransformer in 2.1 is quite different to the one in
  2.0.4. I don't know whether it is 'back-compatible',
 
 Unfortunately it is not back compatible.

Are you aware why not?

Upayavira


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



Re: WritableSource output Cocoon 2.0.4

2003-03-17 Thread Upayavira
 I have implemented a basic Email WritableSource.
 
 Is there a way for me to add information to the outputted page?

Do you mean that, once the source has been written to, you want to present 
something back to the browser? If so, you just do an XSLT transformation on the 
output of your SourceWritingTransformer stage, to return HTML for the user.

Have I understood you correctly?

Regards, Upayavira


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



Re: WritableSource output Cocoon 2.0.4

2003-03-17 Thread Upayavira
 Well, right now the way I have it setup is pretty simple,  I have an
 xsp page that generates an email message(I made up some simili-MIME
 xml tags) then this goes thru an XSL file that transforms the output
 into a mime complient mail message, this is the input my MailSource
 receives, it implements a OutputStream and what I do is simply send
 the message when the close() method of the OutputStream is called,
 here is the source:

The sourceWritingTransformer in 2.1 is quite different to the one in 2.0.4. I don't 
know whether it is 'back-compatible', or whether you'd have to upgrade your app 
to 2.1. You could at least give it a go. From looking at the code, I see lots of 
message=some kind of text + pe, where pe is a processingException, which 
means that your exception text will make it into the ougoing SAX stream, which is 
what you want.

Alternatively, hack the 2.0.4 SourceWritingTransformer to do what you want. 

Hope that doesn't cause too many headaches!

Regards, Upayavira

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



Re: Creating a MenuGenerator based on DirectoryGenerator

2003-03-15 Thread Upayavira
 The question is: Am I doing something really stupid here? I'm kind of
 newbie with Cocoon and I most certainly haven't yet understood the
 whole potential of it so all comments are more than welcome. However,
 the site I'm building should be completely dynamic and, therefore, the
 menu creation should be somewhat realtime. Is there a component that
 would do this already?

When I first came to Cocoon, I had similar thoughts about deriving the navigation 
from the files themselves. However, I decided against it in the end, and decided to 
follow the model used by Forrest, which is to use a 'linkmap' document. Having made 
this decision, my site (70 pages+) was up and running two hours later - so it 
obviously 
worked.

One thing that Forrest does which is impressive (which I will steal for my site at 
some 
point) is to allow linking to other pages in a site without knowing the page's final 
URL. 
When linking to a page, you use the page's ID. A couple of input modules and a 
transformer then translate that ID into the proper URL.

Hope this helps.

Regards, Upayavira


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



Re: Creating a MenuGenerator based on DirectoryGenerator

2003-03-15 Thread Upayavira
 Is there a name for this pattern?  That's exactly what a Struts 
 ActionForward (or is it Actionmapping?) is!  And there's another name
 for it in Maverick.

Forrest calls it 'Semantic Linking', to quote from 
http://xml.apache.org/forrest/linking.html:

Forrest's solution is simple: instead of link href=todo.html, write link 
href=site:todo, where: 

site is a URI 'scheme'; a namespace that restricts the syntax and semantics of the 
rest of the URI [rfc2396]. The semantics of 'site' are this identifier locates 
something 
in the site's XML sources. 
todo identifies the content in todo.xml, by reference to a 'node' of content declared 
in 
site.xml. 
We call this semantic linking because instead of linking to a physical representation 
(todo.html), we've linked to the 'idea' of the todo file. It doesn't matter where it 
physically lives; that will be sorted out by Forrest. 

Regards, Upayavira


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



Re: Generator for OpenOffice, think I got it

2003-03-14 Thread Upayavira
On 14 Mar 2003 at 12:45, Yves Vindevogel wrote:

snip good stuff/

Would you be willing to make a Wiki page out of this? Go to: wiki.cocoondev.org.
That would help a lot of people in the future.

Oh, and well done!!

Regards, Upayavira


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



RE: Generator for OpenOffice

2003-03-13 Thread Upayavira
On 13 Mar 2003 at 20:28, Conal Tuohy wrote:

  Well, 
  
  That's the problem. 
  
  The SXW file does not contain any DTD itself.  They are all 
  on my hard drive, 
  from the installation of OpenOffice, but not in the files
  themselves.

Have you tried using entity catalogs? Look in the cocoon.xconf, you'll find an entry 
for 
an entity-resolver. The catalog file is probably in $COCOON-
ROOT/resources/entity/catalog. Load that up, and see if you can edit it to map the 
DTD to the DTD file.

I've never used it, but it is worth trying for this.

Regards, Upayavira

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



Re: Generator for OpenOffice

2003-03-13 Thread Upayavira
An entity catalog is a way of mapping external references (e.g. references to 
DTDs) to local copies of those entities. So, by using an entity catalog, you can tell 
Cocoon where it should look for the Office DTDs.

On 13 Mar 2003 at 10:39, Yves Vindevogel wrote:

 I now edited the cocoon.xconf file with this entry
   entity-resolver
   class=org.apache.cocoon.components.resolver.ResolverImpl 
 logger=core.resolver
parameter name=catalog value=/implements/dtd/
parameter name=verbosity value=1/
   /entity-resolver

No, not quite. The catalog entry previously referred to /resources/entity/catalog I 
believe. Put that back to how it was. Then edit the file called 'catalog' within the 
resources/entity folder in your Cocoon webapp.

Add these lines somewhere in the file:

-- Open Office DTDs --
PUBLIC -//OpenOffice.org//DTD OfficeDocument 1.0//EN office.dtd
PUBLIC -//OpenOffice.org//DTD Manifest 1.0//EN Manifest.dtd

Put the office.dtd and the manifest.dtd into the same folder as the catalog file.

Restart Tomcat, just to be sure.

And try again.

I've no idea if this'll work. I've never tried it. But it is worth a go, and would 
help a 
lot of people if it does!

Keep me posted.

Regards, Upayavira




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



Re: best Java for RedHat?

2003-03-13 Thread Upayavira
Jeremy,

 Is this a good JVM to be running, or is there a stable 1.4.1 for this
 platform?

I recently spoke to an ISP (positive-internet.com) who host Java and Tomcat on 
Linux. They use the IBM one - better performance/more reliable, 'fraid I can't 
remember their reasons. I can find out if you want to know.

Hope life's treating you well! 

Regards, Upayavira


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



RE: Generator for OpenOffice

2003-03-12 Thread Upayavira
 I've taken your suggestion and implemented an example:
 http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample

Great! Could be useful!

Upayavira


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



Re: Generator for OpenOffice

2003-03-11 Thread Upayavira
 Basically, it's the ZipGenerator I need with some extras, but before
 writing the code myself, I was wondering whether someone had done it
 before me.

Asking a similar question, I pointed someone at an example in the Langham/Ziegler 
book (a zip source). Someone else then made a point that the jar: protocol, built into 
the JDK, can read Zip files. So check out the accessing files with jar: in the JDK and 
let us know where you get to!

Hope this helps.

Upayavira


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



Re: Zip File Generator

2003-03-07 Thread Upayavira
 I'm wonderning how one could read a file that is compressed/archived
 e.g. zip. Let's say  I have a XML file that is compressed and so I
 would like to uncompress it and then use this file in the normal file
 generator in a pipeline. Is this possible and how? I also looked
 whether I could use a reader to serve the zip file but then I would
 only get the binary and not the uncompressed content of the file? Or
 can I use the output from a ScriptGenerator?

Peter, there is an example of how to do exactly what you want in the Cocoon: 
Building XML Applications book. It uses zip as an example of how to write 
readers, generators and sources/protocols. With the protocol, it shows you how to 
add a protocol to Cocoon of the form:

zip://[EMAIL PROTECTED]://www.newserver.com/news_2001.zip
or
zip://people/[EMAIL PROTECTED]

If you haven't seen the book, I'd highly recommend it.

Regards, Upayavira


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



Re: big ESQL performance problem

2003-03-04 Thread Upayavira
 On wto, mar 04, 2003 at 03:21:27 +0100, Steven Noels wrote:
  Leszek Gawron wrote:
  
  esql:execute-query
  esql:query
  SELECT
 K.K_NIP AS Knt_NipE,
 B.GST_KntID AS Knt_KntId,
 B.GST_KntID AS Knt_Kod,
 K.K_GRUPA AS Knt_Grupa,
  

It sounds like people are doubting ESQL, so it is worth trying accessing your 
database JDBC with Java, without Cocoon in the picture. Then you can work out 
whether it is Cocoon or JDBC that is causing you a problem. I had to do this 
recently, so I used some code in the O'Reilly Java Examples in a Nutshell book.

Regards, Upayavira


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



Re: Generate XSL with XSP?

2003-03-03 Thread Upayavira
Robert,

 xsl:include href=include-basepath.xsl/

Is it as simple as changing this line to:
 xsl:include href=cocoon:/include-basepath.xsl/
to allow the include to call an internal pipeline?

Regards, Upayavira


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



Re: Mounting Sub-Sitemap from outside cocoon-dir...

2003-02-25 Thread Upayavira
Joerg,

There shouldn't be any problem with that as far as I can see. Here's a snippet
from my root sitemap:

map:match pattern=dl/**
  map:mount check-reload=yes src=file:/c:/mydocs/web/dharma life/
uri-prefix=dl reload-method=synchron/
/map:match

Regards, Upayavira

 Hi!
 For better integration into the versioning-system (clearcase in this
 case) I tried to let the locally installed cocoon (running in Weblogic
 7) mount a subsitemap on a different drive (I'm stuck on Windows at
 the moment... :-( ). This did not work... Examples:

 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron src=x:/test/
 uri-prefix=test/ /map:match

 or

 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron
 src=x:/test/sitemap.xmap uri-prefix=test/
 /map:match

 or

 map:match pattern=test
  map:mount check-reload=yes reload-method=synchron
 src=file:/x:/test/sitemap.xmap uri-prefix=test/
 /map:match

 Is this possible at all? Eg: can you reference a sitemap, or even only
 a ressources directory (for styles p.e.) that is outside the
 cocoon-installation?

 Thanks in advance,

 cu, Jörg

 -BEGIN PGP SIGNATURE-
 Version: PGP 6.0.2

 iQA/AwUBPlstjf+R/hOShE1OEQJrbwCbBs7N+CWYrYAa9iGx0JLdso9yAloAoNSS
 jkuV9MVtopDvK/MiDCjSxyxA
 =sS11
 -END PGP SIGNATURE-

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





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



Re: Cheap Cocoon Hosting

2003-02-24 Thread Upayavira
aoindustries.com come recommended. They host cocoondev.org.

positiveinternet.com in the UK host servlets on their Z-account, which means that 
they _should_ be able to host Cocoon.

Regards, Upayavira

 I went to the Cocoon website and it gives a list of hosting providers
 that will support Cocoon. I have a hosting provider but they just told
 me there is no way they were going to do anything for Cocoon. Does any
 use a hosting company that is cheap and has Cocoon support and what is
 your experience?
 
 Thanks
 
  -Original Message- 
  From: ilfrin [mailto:[EMAIL PROTECTED] 
  Sent: Mon 2/24/2003 11:40 AM 
  To: [EMAIL PROTECTED] 
  Cc: 
  Subject: Re: Cocoon on Resin
 
 
 
  Hello Sean,
 
  24 Feb 2003, 17:05:27:
 
  SM Does anyone know how to fix it?
 
  are you sure you have set up the cocoon to work with sunRise and
  the those other quite 'fragile' components?
 
  because as you see other examples on your server do work fine
 
  --
  Bye,
   ilfrinmailto:[EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



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



Re: CmdLine not honouring web.xml parameters?

2003-02-21 Thread Upayavira
Richard,

I have spent some time pouring over the code of the command line interface. The 
parameters that Tomcat gets from web.xml need to be provided to the command 
line interface as command line parameters. However, I do not recall an option to 
force-load classes, which would be required for JDBC drivers.

It shouldn't be too hard to do - just copy some code over from the CocoonServlet 
to the Main.java. I'll see if I can come up with a patch this weekend.

As I've not been able to get JDBC to work very well myself, I may not be able to 
test it very well, though.

As a short term solution, you can specify the dburl, driver, user and password 
using   esql:driver, esql:dburl,  esql:username and esql:password within 
your esql:connection. This will avoid the reference in web.xml. It looses your 
connection pooling, but it should work.

Hope that helps.

Regards, Upayavira


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




Re: XPath problems in Cocoon?

2003-02-20 Thread Upayavira
Anna,

I didn't pick up whether you have experimented with the fact that your pipeline 
begins with an HTML generator. You could build yourself a simple pipeline:

map:match pattern=xxx
  map:generate type=html src=/
  map:serialize type=xml/
/map:match

Use that to convert your source HTML into XML (file/save on your browser). Then 
try using that XML in XML spy. Does it still work?

The HTML generator does convert badly formatted HTML into correct HTML, so it 
can slightly change the structure of the document (it is based upon JTidy, which 
exists for that purpose).

Regards, Upayavira


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

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




Re: Firebird with Cocoon

2003-02-19 Thread Upayavira
Dear Brian,

 It may be a problem with your connection string. This is working for
 me: jdbc:firebirdsql:localhost/3050:/home/firebird/mydatabase.gdb Can
 you connect with the driver using JDBC outside of Cocoon? Brian

This is my first foray into JDBC. I have just tried the JDBC sample (ExecuteSQL) 
from Java Examples in a Nutshell, which wouldn't connect. By killing the server 
and restarting it, I managed to get that to connect.

However, having done this, it has made no difference to Cocoon, which still gives:

Failed to obtain connection. Made 5 attempts with 5000ms interval

Here's my code from web.xml and cocoon.xconf and the sitemap:

web.xml:
 init-param
  param-nameload-class/param-name
  param-valueorg.firebirdsql.jdbc.FBDriver/param-value
/init-param

cocoon.xconf:
jdbc logger=core.datasources.FGETimetables name=FGETimetables
  pool-controller min=5 max=10/
  dburljdbc:firebirdsql://localhost/c:\\desktop\\DATABASE.GDB/dburl
  userXXX/user
  passwordYYY/password
/jdbc

sitemap.xmap: 
  map:match pattern=sql
map:generate src=xml/sql.xml/
map:transform type=sql
  map:parameter name=use-connection value=FGETimetables/
   /map:transform
  map:serialize type=xml/
  /map:match

Any further hints would be greatly appreciated.

Regards, Upayavira


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

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




Re: hosting

2003-02-19 Thread Upayavira
Doug,

 Anybody hosting cocoon in the UK?

I'm not hosting yet, but will hopefully soon have a dedicated server. If you want 
shared hosting, a company I came across was Positive Internet:

http://www.positive-internet.com/zhosting.html

As their Z Account includes Java, it can therefore host Cocoon.

I like what I see of their service, and, if I was to consider shared hosting in the 
UK, 
I'd seriously consider doing it with them.

Regards, Upayavira

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

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




Re: AW: Firebird with Cocoon

2003-02-19 Thread Upayavira
 That's a good point. I am also using 1.4, and I've never tried it with
 1.3. Brian

Hmmph.

Just got Cocoon running with Java 1.4.1_01, and it still does exactly the same 
thing.

It has just started reporting:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: log\test.log (The system cannot find the path 
specified)

after some time ago having put the log4j jar into the lib folder. Any idea where it is 
looking for the log\test.log file? Then it might be able to tell me more about what it 
is doing.

Thanks for all of your help.

Regards, Upayavira


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

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




Re: AW: Firebird with Cocoon

2003-02-19 Thread Upayavira
Brian,

I've finally got Firebird working, by switching from the SQLTransformer to the 
ESQL logicsheet. What a relief!

Can you send me the patch for the SQLTransformer? I'll see if that's part of it.

Thanks for your help.

Regards, Upayavira



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

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




Re: cocoon-reload parameter

2003-02-18 Thread Upayavira
Lionel,

 You're right, but when I don't use it the sax events from my transformer 
 are lost.
 They are in the tomcat console (the windows where we see the error) but 
 the xslt transformer do not get them.

Could you post the map:match pattern=ixiarequest section of your sitemap, so 
that we can see what you are trying to do?

Thanks,

Upayavira

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

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




Re: CLI

2003-02-18 Thread Upayavira
Darren,

I have often wondered why the CLI isn't a standard part of the binary distribution.

I have posted a message to the dev list to ask if there is a reason why it isn't there,
and if not to offer at least have a go at creating the necessary scripts.

Regards, Upayavira

 CLI doesn't work out of the box with the binary distribution and that
 is the source of most of the pleas on this list for help regarding the
 CLI.  It can be made to work with the binary distribution by setting
 your class path but it's not straightforward.   I found for me that the
 easiest way to use the CLI was via the source distribution of Cocoon
 and ./run.sh.

 Ines,  I suggest the path of least resistance to successfully using the
 CLI is via compiling the Cocoon source distribution.

 Once done as Upayavira stated the CLI is documented on the Wiki page

 http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

 Darren


 On Tuesday, February 18, 2003, at 11:34 AM, Konstantin Piroumian wrote:

  From: Robert Sösemann [EMAIL PROTECTED]
 
  The CLI is part of the cocoon.jar, so is contained in your cocoon
  version.
 
  You call it by:
 
  BUT, it doesn't work. Noone who ever asked this list for help on the
  cli
  received a helpful answer. The reason to my opinion is not a lack of
  cooperation, but the lack of experience with the cli and the
  frustrating
  experience when trying to test it on your own.
 
  Absolutely false statement.
 
  Cocoon CLI *works*! Otherwise you won't get any Cocoon docs/site and
  there
  would be no Forrest project (http://xml.apache.org/forrest). Parts of
  Apache
  XML site are also generated using Cocoon CLI/Forrest.
 
 
  In short: I think CLI sucks and doens't work properly. BUT that's no
  problem. There are dozens of  much better web downloader/offline
  browsers
  to
  make a cocoon site static.
 
  You contradict yourself. If it doesn't work then how could it work
  inproperly?
 
  Ines,
 
  Examples of running Cocoon from command line you'll find in Cocoon's
  build.xml. Take a look at the 'docs' target:
 
  java classname=org.apache.cocoon.Main fork=true
  dir=${build.context}
failonerror=true maxmemory=128m
arg value=-c./
arg value=-d../docs/
arg value=-w../work/
arg value=-b../brokenlinks.txt/
arg value=-k../documentation/logkit.xconf/
arg value=-u${build.docs.loglevel}/
arg value=-V/
arg value=index.html/
classpath
  path refid=classpath/
  fileset dir=${build.dir}
include name=*.jar/
  /fileset
  pathelement location=${tools.jar}/
  pathelement location=${build.context}/WEB-INF/classes/
/classpath
  /java
 
 
  Basically you'll need to set several command line options, then invoke
  the
  jar as you've done below. But Cocoon CLI is not an interactive tool
  and it
  simply works in batch mode. It starts from the URL you've specified in
  the
  command line (it's the index.html in the above snippet).
 
  As for the other tools, then yes, you can use something like wget
  instead of
  Cocoon CLI to generate the static site.
 
  --
Konstantin
 
 
  In our project we are using HTTrack, a wonderful open source tool. It
  comes
  with a Window gui and a fully blown command line - much better that
  the
  cocoon cli. Download at www.httrack.com/
 
  I hope I could help.
 
  Robert
 
 
  - Original Message -
  From: Ines Robbers [EMAIL PROTECTED]
  To: Cocoon Mailingliste [EMAIL PROTECTED]
  Sent: Monday, February 17, 2003 5:23 PM
  Subject: CLI
 
 
  Hello!
 
  I'm trying to understand the command-line interface of Cocoon -
  unfortunately without much success so far.
  The Cocoon version I'm using is 2.0.4. Where do I find the java.class
  that starts the CLI? Do I have to download anything?
  Is it correct that once the class has started I type in:
 
  java -jar cocoon.jar -c  (as an example)
 
  to start with whatever I intend to do?
 
  Many thanks for help!
 
  Ines
 
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED

Firebird with Cocoon

2003-02-18 Thread Upayavira
Dear All,

Has anyone out there succeeded in connecting Cocoon to a Firebird database? It 
just times out on me if I use the org.firebirdsql.jdbc.FBDriver driver, or tells me 
that 
I am using an unsupported JDBC 2.0 feature if I use the 
interbase.interclient.Driver driver.

I'm using a connection string of the sort:

jdbc:firebirdsql://localhost:3050//c:/desktop/database.gdb

A connection test from IBConsole tells me that I'm using WI-V6.2.794 Firebird 
1.0.

Any pointers?

Thanks,

Upayavira


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

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




Re: CLI

2003-02-17 Thread Upayavira
If you want details on using the command line interface, check out the Wiki page:

http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

It is mostly there and should get you going. If you have any problems with it, let me 
know and I'll see if I can help you through.

Regards, Upayavira

 Hello!
 
 I'm trying to understand the command-line interface of Cocoon -
 unfortunately without much success so far.
 The Cocoon version I'm using is 2.0.4. Where do I find the java.class
 that starts the CLI? Do I have to download anything?
 Is it correct that once the class has started I type in:
 
 java -jar cocoon.jar -c  (as an example)  
 
 to start with whatever I intend to do?
 
 Many thanks for help!
 
 Ines 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




Re: CLI

2003-02-17 Thread Upayavira
If you want details on using the command line interface, check out the Wiki page:

http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

It is mostly there and should get you going. If you have any problems with it, let me 
know and I'll see if I can help you through.

Regards, Upayavira

 Hello!
 
 I'm trying to understand the command-line interface of Cocoon -
 unfortunately without much success so far.
 The Cocoon version I'm using is 2.0.4. Where do I find the java.class
 that starts the CLI? Do I have to download anything?
 Is it correct that once the class has started I type in:
 
 java -jar cocoon.jar -c  (as an example)  
 
 to start with whatever I intend to do?
 
 Many thanks for help!
 
 Ines 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




Re: CLI

2003-02-17 Thread Upayavira
If you want details on using the command line interface, check out the Wiki page:

http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

It is mostly there and should get you going. If you have any problems with it, let me 
know and I'll see if I can help you through.

Regards, Upayavira

 Hello!
 
 I'm trying to understand the command-line interface of Cocoon -
 unfortunately without much success so far.
 The Cocoon version I'm using is 2.0.4. Where do I find the java.class
 that starts the CLI? Do I have to download anything?
 Is it correct that once the class has started I type in:
 
 java -jar cocoon.jar -c  (as an example)  
 
 to start with whatever I intend to do?
 
 Many thanks for help!
 
 Ines 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




Re: CLI

2003-02-17 Thread Upayavira
If you want details on using the command line interface, check out the Wiki page:

http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine

It is mostly there and should get you going. If you have any problems with it, let me 
know and I'll see if I can help you through.

Regards, Upayavira

 Hello!
 
 I'm trying to understand the command-line interface of Cocoon -
 unfortunately without much success so far.
 The Cocoon version I'm using is 2.0.4. Where do I find the java.class
 that starts the CLI? Do I have to download anything?
 Is it correct that once the class has started I type in:
 
 java -jar cocoon.jar -c  (as an example)  
 
 to start with whatever I intend to do?
 
 Many thanks for help!
 
 Ines 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




Re: [Jetty] Quicker startup

2003-02-17 Thread Upayavira
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

    File information ---
 File:  jetty.bat
 Date:  14 Feb 2003, 20:45
 Size:  1973 bytes.
 Type:  Unknown

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

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


Re: [Jetty] Quicker startup

2003-02-17 Thread Upayavira
Tony,

If you're using Windows, you can use the batch file I've attached. Otherwise, you 
can try Pier's Unix script at:

http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104337896731869w=2

Hope that helps.

This assumes tthat you're trying to run 2.1, which has Jetty included.

Regards, Upayavira

 Hi list-
 
 Just wondering if there was a quicker way to get the 'build run' target to
 start Cocoon faster without having to go through the entire build process
 whenever I need to restart Jetty.
 
 Regards,
 Tony
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




Cocoon on a Zaurus PDA

2003-02-14 Thread Upayavira
Dear All,

I want to see if it is possible to get Cocoon to work on a Zaurus. (I have long 
commutes to work, and it would be nice to be able to work with Cocoon during that 
time).

Does anyone:
* know what servlet engines work on limited hardware/low memory
* know what bits of Cocoon are needed to make it run or have a Cocoon setup 
ready made?

Thanks in advance.

Regards, Upayavira

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

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




Re: Call a css into an xsl

2003-02-10 Thread Upayavira
Lionel,

 I'd like to generate an html document using a css file, with an xsl 
 transformation.

What you suggest is the correct way to do it. What you need though is a little bit of 
code in your sitemap to tell Cocoon how to handle requests for CSS files. This 
would do it:

   map:match pattern=*.css
map:read src=html/{1}.css mime-type=text/css/
   /map:match

What this is saying is 'for any file ending in .css, pass the equivalent file from the 
html directory. The fact that you are using a reader means that you will pass the 
content out unprocessed, i.e. not going through an XML pipeline.

Hope that helps.

Regards, Upayavira
 
 Here is what i wrote :
 
 
 xsl:template match=content
   html
   head
   /head
   link rel=stylesheet type=text/css href=style.css/
 body
 h1 align=centerDEMO/h1
xsl:apply-templates/
 /body
   /html
 /xsl:template
 ...
 
 I think this is not the way to use css with cocoon?
 I read about a resource tag but I don't figure out how to join my documents.


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

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




Re: Error

2003-02-04 Thread Upayavira
  file:/C:/jakarta-tomcat-5.0/jakarta-tomcat-5.0/webapps/cocoon/workshop,
  or file://C:/jakarta-tomcat-5. ?!

More to the point, do you really want to have two occurances of jakarta-tomcat-5.0 
in your path to your stylesheet?

Regards, Upayavira


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

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




RE: cocoon struts together

2003-02-03 Thread Upayavira
 http://jakarta.apache.org/taglibs/doc/io-doc/index.html). It seems to work
 quite well for our needs, but it would be nice to be able to call the cocoon
 pipelines programmatically.

Check out the CocoonBean, recently added to the dev version 2.1 in CVS 
(org.apache.cocoon.bean.CocoonBean). It allows you to have cocoon generate a 
page or pages and save them to disc (or send them to any 'Destination'). 
Alternatively, you can write the content for a specific page to an output stream. 
Looking at the code, the latter functionality looks broken to me at the moment - I'll 
give it a go now. If you want to use this, let me know and I may be able to send 
you a patch.

Regards, Upayavira


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

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




  1   2   >