Re: XPath transformer?

2002-09-02 Thread Nicola Ken Barozzi


Luca Morandini wrote:
> Jeff,
> 
> it came up to my mind just now... why don't you use a Xalan extension ? There is an 
>"evaluate" function in there for such cases.
> Though I never use it, it seems to fit the bill: see for youself at
> http://xml.apache.org/xalan-j/extensionslib.html#evaluate .

It's Xalan proprietary, and is much slower than just Xpath.

Jeff did The Right Thing (TM), a Transformer is the best thing for this.

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


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

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




RE: XPath transformer?

2002-09-02 Thread Luca Morandini

Jeff,

it came up to my mind just now... why don't you use a Xalan extension ? There is an 
"evaluate" function in there for such cases.
Though I never use it, it seems to fit the bill: see for youself at
http://xml.apache.org/xalan-j/extensionslib.html#evaluate .

Best regards,

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


> -Original Message-
> From: Jeff Turner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 3:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XPath transformer?
>
>
> On Fri, Aug 30, 2002 at 10:55:03AM +0200, Luca Morandini wrote:
> > > Not easily, because the 'match' attribute cannot be dynamic. Eg, I
> >
> > Oh, I see... so you want a *dynamic* selector.
> >
> > Hmm... this was not apparent from your example, It seemed you wanted
> > just a way to select one chapter amongst many.
> >
> > Anyway, I think you should dirt your fingers with Xalan to get want you
> > want.
>
> Yes, it can be done with document()
>
> > I cannot appreciate if this prospective XPathTransformer could be
> > of general use, though... I never had such a need myself.
>
> FTR, I submitted an XPathTransformer at
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235
>
> --Jeff
>
>
> > Best regards,
> >
> >
> > -
> >Luca Morandini
> >GIS Consultant
> >   [EMAIL PROTECTED]
> > http://utenti.tripod.it/lmorandini/index.html
> > -
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




RE: Converting a TREE FRAGMENT to a node-set()

2002-09-02 Thread Luca Morandini

Phil,

if you're not afraid of something NOT standard (XSLT 1.1 has no provision for 
tree-fragment conversion, while the upcoming 2.0 has),
you could use a Xalan extension function, see 
http://xml.apache.org/xalan-j/extensionslib.html#nodeset .

Best regards,

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


> -Original Message-
> From: Phil Blake [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 6:34 AM
> To: [EMAIL PROTECTED]
> Subject: Converting a TREE FRAGMENT to a node-set()
>
>
> Hiya,
>
> How can I work on a RTREEFRAG as if it was a node-set, or how can I
> convert a RTREEFRAG to a node-set?
>
> Is there a node-set() available out of the box with Cocoon?
>
> What is the recommended way of achieving this?
>
> Thanks for your time,
>
> Phil
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




Converting a TREE FRAGMENT to a node-set()

2002-09-02 Thread Phil Blake

Hiya,

How can I work on a RTREEFRAG as if it was a node-set, or how can I 
convert a RTREEFRAG to a node-set?

Is there a node-set() available out of the box with Cocoon?

What is the recommended way of achieving this?

Thanks for your time,

Phil



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

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




RE: gzipping content

2002-09-02 Thread Greg Jones

You just have to change the 2.2 standard at the top of the web.xml to
point to the 2.3:

http://java.sun.com/dtd/web-app_2_3.dtd";>

This will work. Also make sure that you add the filter at the top of
your web.xml or it will blow up on you i.e.:


  Cocoon2 Demo
  Demo application for Cocoon2

  





- Greg

-Original Message-
From: Leszek Gawron [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, August 31, 2002 9:56 AM
To: [EMAIL PROTECTED]
Subject: gzipping content


I wanted to gzip the content coming "out of cocoon" so i wanted to add
gzip filter to web.xml file first it occured to me that web.xml is in
servlet 2.2 standart not in 2.3 
so is it possible ? I wouldn't like to use Apache frontend.
ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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


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

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




RE: Cocoon article on JDJ

2002-09-02 Thread Rick Wayne

On Mon, 2002-06-10 at 03:01, Matthew Langham wrote:
> Something we have noticed is the lack of Cocoon presentations at
> conferences. We have submitted 3 for the coming ApacheCon but we have
> noticed that we seem to be the only people submitting anything. Is this the
> case?
> 
> And there is only 1 presentation on Cocoon at the O'Reilly OSCC in July -
> which is way tooo few!

matthew, i happened to run across this old note pursuant to some
research, and thought i'd let you know that i did a class at Software
Development West 2002, and will be submitting another for next spring.
so maybe there's a little hope!

(the research, BTW, was for an item in SD magazine's "New & Noteworthy"
column: a bit on cocoon 2.0, and another on the book, for which i thank
you and carsten!)

rw


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

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




Re: XMLForm Wizard and Data Access

2002-09-02 Thread pwcml

Is there a way to add more items to the map that a FormWizardAction returns 
(i.e. more than just the page parameter)?

On Monday 02 September 2002 12:25 pm, [EMAIL PROTECTED] wrote:
> I am trying to create a web application with the XMLForm wizard.
> I have one major problem though.
>
> -- I am having trouble loading data into the jbean from a database
> (imagine a screen to ident a user and then a screen to modify account
> data).  As far as I can tell I would have to do the data access in the
> Action.  I would really like to be able to use other cocoon data
> functionality to do this.
>
> -- Is there any chance that there will be an example using the personnel
> tables in the near future?  This would be extremely helpful
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


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

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




Re: XPath transformer?

2002-09-02 Thread Jeff Turner

On Fri, Aug 30, 2002 at 10:55:03AM +0200, Luca Morandini wrote:
> > Not easily, because the 'match' attribute cannot be dynamic. Eg, I
> 
> Oh, I see... so you want a *dynamic* selector.
> 
> Hmm... this was not apparent from your example, It seemed you wanted
> just a way to select one chapter amongst many.
> 
> Anyway, I think you should dirt your fingers with Xalan to get want you
> want.

Yes, it can be done with document()

> I cannot appreciate if this prospective XPathTransformer could be
> of general use, though... I never had such a need myself.

FTR, I submitted an XPathTransformer at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235

--Jeff


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

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

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




still trying to create a searchable lucene index of my xml docments

2002-09-02 Thread Harry J. Foxwell


I have a collection of xml documents in http://cs2.gmu.edu:8080/cocoon/Marchive,
a.xml, b.xml, etc.

I have an AE.xsl stylesheet in the Marchive directory that successfully transforms
my documents into html when I browse to
http://cs2.gmu.edu:8080/cocoon/Marchive/a, for example..  So far, so good.

My pipeline for Marchive is simple:

...







...

Next, I want to create a searchable lucene index of Marchive, so that when
I search for an element content, I get a list of

http://cs2.gmu.edu:8080/cocoon/Marchive/a
http://cs2.gmu.edu:8080/cocoon/Marchive/d
etc

and when I select one of these I get want the transformed-to-html displayed.
Simple, I thought, but I can't modify the search example to generate
my index.  This SHOULD be easy, but I can't figure out the required
pipeline or the format of the xml file containing links to my files.




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

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




RE: Using Pipeline with third party converters

2002-09-02 Thread Conal Tuohy

If you have an existing application which you can't easily port to Cocoon
you can package it as a CGI application. Then you can invoke it from Cocoon,
and also use Cocoon to pass it the data it needs.

I've used this technique to embed a Microsoft eBook compiler into a Cocoon
app. The user requests the cgi output (a Microsoft Reader eBook) from an
ordinary reader, which encapsulates the cgi, and passes it parameters. The
cgi program (makelit.exe) also reads data from Cocoon (the url which is
passed to the cgi is the url of a Cocoon pipeline which provides data to the
eBook compiler). In my case I had the C++ source for the eBook compiler, so
I could modify it to be a cgi app, but otherwise you can always wrap your
application in some kind of shell script.



http://localhost/cgi-bin/makelit.exe?http://localhost/etexts/{1}.opf"/>


browsercocoon cgi-app
   |  |  |
   | request  |   read   |
   | ---> | ---> |
   |  |  |
   |  | get data |
   |  | <--- |
   |  |  |
   |  | <--- |


-Original Message-
From: PETER BRIAN BRADBURN [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 September 2002 00:29
To: [EMAIL PROTECTED]
Subject: Using Pipeline with third party converters



Hi,
As part of a project I am conducting I am looking into the possibility of
using the Cocoon Pipeline to manage the use of a third party format
converter such as a2ps (which converts a variety of file formats into PS for
printing.

* How could I go about this?
* Is it possible?

I would prefer not to use a custom reader, unless this is the only way of
going about it.

Your feedback would be greatly welcome
Thanks
Pete Bradburn


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

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




XMLForm Wizard and Data Access

2002-09-02 Thread pwcml

I am trying to create a web application with the XMLForm wizard.
I have one major problem though.

-- I am having trouble loading data into the jbean from a database
(imagine a screen to ident a user and then a screen to modify account
data).  As far as I can tell I would have to do the data access in the
Action.  I would really like to be able to use other cocoon data
functionality to do this.

-- Is there any chance that there will be an example using the personnel
tables in the near future?  This would be extremely helpful



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

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




Re: could not add record/mysql

2002-09-02 Thread Wolle

hi!

*Make sure you change the pool name not just in cocoon.xconf but anywhere 
*you actually use the pool, like create-empl.xsp.

this was already done.

 Then bounce your 
*servlet container so Cocoon will reread cocoon.xconf. 

what does that mean? i suggest restarting tomcat.

If you do those 
*things and still have problems, stop Tomcat, delete the work directory 
*for the cocoon webapp, and then restart it.

i tried. after a few hours i finally found the solution. i forgot to
modify the
following line in the sitemap:



after changing everything worked fine.


Thanks a lot for the help!

wolfgang
*
*Regards,
*
*Lajos
*
*
*Wolfgang Weigel wrote:
*
*> hi!
*> 
*> i tried to change the example from
*> http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
*> everything works fine if using the name "personnel" for the
*> database-connection in the cocoon.xconf ( logger="core.datasources.mysql" name="personnel">)
*> 
*> as soon as i modify the name-parameter (e.g. mysql) i get the following
*> exception:
*> 
*> Message
*> 
*> Could not add record
*> 
*> 
*> Source
*> 
*> org.apache.cocoon.ProcessingException
*> 
*> 
*> Description
*> 
*> org.apache.cocoon.ProcessingException: Could not add record:
*> org.apache.avalon.framework.component.ComponentException: datasources:
*> ComponentSelector could not find the component for hint: personnel
*> 
*> 
*> Does anybody have a solution?
*> 
*> 
*> bye
*> 
*> wolfgang
*> 
*> 
*> 
*> -
*> Please check that your question  has not already been answered in the
*> FAQ before posting. 
*> 
*> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
*> For additional commands, e-mail:   <[EMAIL PROTECTED]>
*> 
*> 
*
*
*-- 
*galatea.com
*Cocoon training, consulting & support
*
*
*
*-
*Please check that your question  has not already been answered in the
*FAQ before posting. 
*
*To unsubscribe, e-mail: <[EMAIL PROTECTED]>
*For additional commands, e-mail:   <[EMAIL PROTECTED]>
*

Auf bald

Wolfgang Weigel
_
Wolfgang Weigel
Universitaet Wuerzburg
Didaktik Mathematik
Am Hubland
97074 Wuerzburg

[EMAIL PROTECTED]
office: 0931/888-5078
 _  __ __ __
| | /| / /__  / / /__   __    / /  ___ ___   / / / /
| |/ |/ / _ \/ / / -_) | |/|/ / _ `(_-<  / _ \/ -_) __/ -_) /_/_/_/
|__/|__/\___/_/_/\__/  |__,__/\_,_/___/ /_//_/\__/_/  \__/ (_|_|_) 

-


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

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




Re: SOAP xsp taglib with Axis ?

2002-09-02 Thread Marcus Crafter

Hi Steven,

Some success!

On Fri, Aug 30, 2002 at 11:55:26AM -0400, Steven Cummings wrote:
> 
> I haven't really found the answer, but after some comparison between 2.0.3 and 
>2.1-HEAD I have found that:
> 
> * The only change has been in soap.xsl, not SOAPHelper (but I can't determine what 
>in the stylesheet would cause a request to hang).
> 
> * The SOAP XSP tag library uses neither the Apache SOAP nor Axis libraries for it's 
>calls, it uses the Jakarta-Commons httpclient component and sends SOAP requests that 
>it constructs itself.

Yes, after some digging around I noticed that the commons httpclient
library was changed in 2.1. When I used the httpclient jar from 2.0.3,
everything worked fine.

Also, using the latest httpclient from commons CVS works too, so it
seems to be a problem only with the version of httpclient in Cocoon
HEAD CVS. I'll file a bug in Bugzilla asking to have the library
updated.

Thanks for your help mate. Much appreciated! :)

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

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

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




Re: HTMLGenerator customizing

2002-09-02 Thread Nicola Ken Barozzi


[EMAIL PROTECTED] wrote:
> Just a thought -- someone correct me if my reach is exceeding my grasp 
> here --
> 
> would subclassing the HTMLGenerator to a derived 'HTMLGoLiveGenerator' 
> compiled with the custom external config file make sense???

If the external config is generic enough for us all, which it seems to 
be, sane a patch and we'll put it in Cocoon HTMLGenerator :-)

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


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

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




Re: Using Pipeline with third party converters

2002-09-02 Thread Nicola Ken Barozzi


PETER BRIAN BRADBURN wrote:
>  
> Hi,
> As part of a project I am conducting I am looking into the possibility 
> of using the Cocoon Pipeline to manage the use of a third party format 
> converter such as a2ps (which converts a variety of file formats into PS 
> for printing.
>  
> * How could I go about this?
> * Is it possible?

To convert from XML to PS, you can write a Serializer.
Look in th documentation and in teh Wiki for more info.

> I would prefer not to use a custom reader, unless this is the only way 
> of going about it.

If you do nonxml->nonxml a Reader is the only way I'm afraid.

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


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

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




Re: HTMLGenerator customizing

2002-09-02 Thread MTiffany71
Just a thought -- someone correct me if my reach is exceeding my grasp here --

would subclassing the HTMLGenerator to a derived 'HTMLGoLiveGenerator' compiled with the custom external config file make sense???



RE: Pattern wildcards meaning

2002-09-02 Thread Hunsberger, Peter

> Samples provided with Cocoon dist. use path-like style to parameterize 
> patterns, e.g.
> 
> where, for instance, in sitemap administrator mind, 1st * is meaning
"source 
> #1" and 2nd * "source #2" (these wildcards beeing use to aggregate two 
> sources).
> 
> Why not use a more verbose pattern like:
> 
> using an XPath predicate-like style?
> 
> This way, you don't need to comment the pattern and everybody can
immediatly 
> understand it.

Having not looked at the source URL this, off hand, strikes me as a bad
idea; it exposes the (presumed) implementation of the URL to those calling
it.  What happens if the implementation changes from using an aggregation to
using a named source and a named stylesheet?  Does everyone have to go back
and change all the calling URLs (or do you just live with URLs that have
nothing to do with reality)?  

IMO, abstraction is a good idea when building web links.  A specific
implementation should be commented so those who need to know can understand
how the implementation works, but everyday users should have such details
hidden from them.  I suspect, in this case, some of my comments may not
apply, the calling URL may specifically name the source files as XML, but
even then, I wouldn't necessarily want to expose any more about the
implementation than I have to.

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

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




Running Cocoon programmatically

2002-09-02 Thread Johan Kindgren

Hi!

I'm working with a project that uses Cocoon 2.0.2 as a document generator inside 
WebLogic 6.1.

Right now we are only handling HTTP-requests to generate documents, but we would like 
to be able to handle programmatic requests from distributed applications. We haven't 
decided which technology to use for the external interface, but I guess we will end up 
with either EJB's or SOAP.

My question: Has anyone tried to start Cocoon and programmatically invoking a 
pipeline, and storing the result as a object?

I've looked at the Commandline interface (org.apache.cocoon.Main) and it seems like a 
good start, but it feels a bit unnecessary to create two Cocoon instances, one for 
HTTP requests and one for distributed requests. One apporach might be to rewrite the 
Cocoon-Servlet, so that when Cocoon is configured and started, the servlet stores a 
reference of Cocoon in application-scope. Then I could use another servlet to listen 
for SOAP requests and delegate these to the Cocoon instance.

Is this done anywhere? I can't find any relevant information, but I might be looking 
at the wrong places or searching for the wrong thing.

With kind regards

/Johan Kindgren

System Developer
Frontec


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

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




Re: could not add record/mysql

2002-09-02 Thread Lajos Moczar

Wolfgang -

Make sure you change the pool name not just in cocoon.xconf but anywhere 
you actually use the pool, like create-empl.xsp. Then bounce your 
servlet container so Cocoon will reread cocoon.xconf. If you do those 
things and still have problems, stop Tomcat, delete the work directory 
for the cocoon webapp, and then restart it.

Regards,

Lajos


Wolfgang Weigel wrote:

> hi!
> 
> i tried to change the example from
> http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
> everything works fine if using the name "personnel" for the
> database-connection in the cocoon.xconf ( logger="core.datasources.mysql" name="personnel">)
> 
> as soon as i modify the name-parameter (e.g. mysql) i get the following
> exception:
> 
> Message
> 
> Could not add record
> 
> 
> Source
> 
> org.apache.cocoon.ProcessingException
> 
> 
> Description
> 
> org.apache.cocoon.ProcessingException: Could not add record:
> org.apache.avalon.framework.component.ComponentException: datasources:
> ComponentSelector could not find the component for hint: personnel
> 
> 
> Does anybody have a solution?
> 
> 
> bye
> 
> wolfgang
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: majix as generator

2002-09-02 Thread Carles Canellas

Hello
I have a MajixGenerator, but it's not really a good
job. I have deleted a lot of things that I don't
understand,
 including all the online code, and there are no
comments.
 
If you still want it I'll send you all the code.
 

 --- [EMAIL PROTECTED] escribió: > Hello,
> 
> has anyone considered or implemented a cocoon majix
> RTF generator?
> 
> Majix (http://tetrasys.dhs.org/majix.html) can
> transform RTF files to XML using
> a bunch of XML parsers (saxon, xalan, xt) so it
> should make sense using it an
> RTF Cocoon generator.
> 
> regards,
> adrian.
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
>  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

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

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




Manifest problem, deploying Ear (Cocoon + EJB's) on JBoss / Jetty

2002-09-02 Thread Michael Homeijer

Hi,

I am trying to deploy an ear containing a Cocoon web-app on JBoss / Jetty.
The problem is that when I have an ejb-client.jar in the web-inf\lib
directory, jboss gives a classcastexception on the
PortableRemoteObject.narrow call (probably because the home interface is in
the VM twice in two different classloaders?). Anyway...

According to Jboss, the way to deal with this is to have the ejb-client jar
in the EAR file itself and reference it from the meta-inf\manifest file in
the Cocoon application.

My problem is that referencing a jar from the manifest file doesn't seem to
work. In an XSP page, the class from the ejb-client jar cannot be found.
Does anyone have this setup working? Any workarounds?

TIA,
Michael

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

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




RE: SQL Transformer with nested query + Filter Transformer = ArrayIndexOutOfBoundsException exception

2002-09-02 Thread Luca Morandini

Igor,

may you show us your query, the relevant portion of the sitemap and a fragment of the 
SQLTransformer output ?

Best regards,

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

> -Original Message-
> From: Igor Abade V. Leite [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 02, 2002 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RES: SQL Transformer with nested query + Filter Transformer =
> ArrayIndexOutOfBoundsException exception
> 
> 
> Any ideas?
> 
>   Thanks,
>   Igor
> 
> > -Original message-
> > From: Igor Abade V. Leite [mailto:[EMAIL PROTECTED]]
> > Data: sexta-feira, 30 de agosto de 2002 11:59
> > To: [EMAIL PROTECTED]
> > Subject: SQL Transformer with nested query + Filter Transformer =
> > ArrayIndexOutOfBoundsException exception
> > 
> > Hi again!
> > 
> > When I use the SQL Transformer with a single table, everything
> > goes fine. I can apply the Filter Transformer and I'll achieve the
> > desired results.
> > But when I use a nested query, I get the following error:
> > 
> > 
> > java.lang.ArrayIndexOutOfBoundsException
> > at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
> > at
> > org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1785)
> > at
> >
> org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(Incrementa
> > lSAXSource_Filter.java:279)
> > at
> >
> org.apache.xalan.transformer.TransformerHandlerImpl.endElement(Transform
> > erHandlerImpl.java:549)
> > at
> >
> org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
> > 7)
> > at
> >
> org.apache.cocoon.transformation.FilterTransformer.endElement(FilterTran
> > sformer.java:186)
> > ...
> > ...
> > 
> > 
> > Any ideas?
> > 
> > Thanks in advance,
> > Igor
> > 
> > 
> > 
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Error in mounted sitemap (After update 2.0.2 -> 2.0.3)

2002-09-02 Thread Frank Borkowsky

Hello all!

After an update from Cocoon 2.0.2 to 2.0.3 we have problems with mounted
sitemaps in our project.
We now get errors of the following type:


The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.avalon.framework.configuration.ConfigurationException says:

Type 'xslt' is not defined for 'transform' at
file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x
map:43:55

More precisely:

org.apache.avalon.framework.configuration.ConfigurationException: Type
'xslt' is not defined for 'transform' at
file:/usr/local/oracle/j2ee/OC4J_kuckm/applications/teag/ips/portal/portal.x
map:43:55


All components are defined in our parent sitemap, so we only declare the
default components in the
sub sitemaps by:


  
  
  
  
  
  


When we copy the full declarations of the components from the parent to the
mounted sitemaps everything works fine (like before in version 2.0.2)!

Are there any changes in declaration that we have to consider?

Thanks in advance

Frank

[EMAIL PROTECTED]



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

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




Using Pipeline with third party converters

2002-09-02 Thread PETER BRIAN BRADBURN



 
Hi,
As part of a project I am conducting I am looking 
into the possibility of using the Cocoon Pipeline to manage the use of a third 
party format converter such as a2ps (which converts a variety of file formats 
into PS for printing. 
 
* How could I go about this?
* Is it possible?
 
I would prefer not to use a custom reader, unless 
this is the only way of going about it.
 
Your feedback would be greatly welcome
Thanks
Pete Bradburn


RES: SQL Transformer with nested query + Filter Transformer = ArrayIndexOutOfBoundsException exception

2002-09-02 Thread Igor Abade V. Leite

Any ideas?

Thanks,
Igor

> -Original message-
> From: Igor Abade V. Leite [mailto:[EMAIL PROTECTED]]
> Data: sexta-feira, 30 de agosto de 2002 11:59
> To: [EMAIL PROTECTED]
> Subject: SQL Transformer with nested query + Filter Transformer =
> ArrayIndexOutOfBoundsException exception
> 
> Hi again!
> 
>   When I use the SQL Transformer with a single table, everything
> goes fine. I can apply the Filter Transformer and I'll achieve the
> desired results.
>   But when I use a nested query, I get the following error:
> 
> 
> java.lang.ArrayIndexOutOfBoundsException
>   at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
>   at
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1785)
>   at
>
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(Incrementa
> lSAXSource_Filter.java:279)
>   at
>
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(Transform
> erHandlerImpl.java:549)
>   at
>
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14
> 7)
>   at
>
org.apache.cocoon.transformation.FilterTransformer.endElement(FilterTran
> sformer.java:186)
>   ...
>   ...
> 
> 
> Any ideas?
> 
>   Thanks in advance,
>   Igor
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 



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

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




could not add record/mysql

2002-09-02 Thread Wolfgang Weigel

hi!

i tried to change the example from
http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
everything works fine if using the name "personnel" for the
database-connection in the cocoon.xconf ()

as soon as i modify the name-parameter (e.g. mysql) i get the following
exception:

Message

Could not add record


Source

org.apache.cocoon.ProcessingException


Description

org.apache.cocoon.ProcessingException: Could not add record:
org.apache.avalon.framework.component.ComponentException: datasources:
ComponentSelector could not find the component for hint: personnel


Does anybody have a solution?


bye

wolfgang



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

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




HTMLGenerator customizing

2002-09-02 Thread Marcin Stefaniuk

Hello!

I tried Tidy standalone and I receive complete source translated
to XHTML (even without adding custom tags). I want to receive
equal document from HTMLGenerator but I lost some tags
(special GoLive tags). I tried to recompile generator to use
external config file and nothing changed.

How to force HTMLGenerator to do not strip non HTML tags?
Is this possible?

Marcin

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

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




Is aggregate element attribute optional

2002-09-02 Thread Daniel Fournier

Hi everybody.

According to sitemap DTD v0.2 (C2.0.3),  the aggregate element attribute is 
implied, then optional.

However, omitting it triggers a language exception when compiling the sitemap.

What's the reason?

Daniel Fournier

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

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




RE: i18n transformer empty message element ignored?

2002-09-02 Thread Piroumian Konstantin

> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] 
> 
> Hallo!
> 
> Sometimes we need the behavior, that the i18n transformer replaces
> something with nothing. Somehow this does not seem to work.

Yes, it doesn't work. A support for empty messages was requested a while ago
(from Michael Enke) and I remember about it, but unformtunately I am very
limited in time now to work on it. See possible workarounds below:

> E.g: pre i18n:
> NO  i18n:key="Unit.NO_UNIT">NO_UNIT (08:00 h)

Try to replace NO_UNIT by a space character, if it doesn't help then try the
 . I know that this can result in layout problems, but don't know a
better solution yet. Sorry.

> catalogue entry:
> 
> output:
> NO NO_UNIT
> When I replace the zero length string in the catalogue with bla the
> output
> is
> NO bla
> so the catalogue entry can be found.
> A single space or more spaces as the element contents also seem to be
> ignored.

Did you try a space inside of the  element? 

> 
> Any ideas for a work-around or solution?

Another solution is to comment out the trim() function in source code where
the string is retrieved from a dictionary.

Konstantin

> 
> 
> Many thanks,
> Hans
> 
> 
> Dr. Hans M. Rupp
> danet Internet Solutions GmbH
> Waldburgstr. 17-19
> 70563 Stuttgart
> Germany
> 
> Fon +49 711 133 53 50
> Fax +49 711 133 53 53
> 
> --
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




Frames

2002-09-02 Thread Matthias Fischer

I was looking on the web for information on the xalan:write command;
unfortunately, with the information I found I couldn't get further than the
below example.

Thie following code doesn'
t work with me, but I cannot figure out why. Can anybody give me a decisive
hint, please?

Matthias


http://www.w3.org/1999/XSL/Transform";
xmlns:xalan="http://xml.apache.org/xalan";
exclude-result-prefixes="xalan">

















 
  
  
  

Test #1.
  
 





 
  
  
  

Test #2.
  
 








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

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




Re : map parameter value and cocoon://

2002-09-02 Thread Barbara Post

Forgot to mention : I use C 2.0.3 and cannot switch to 2.1 for this project
for now... :-(
- Original Message -
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 9:57 AM
Subject: map parameter value and cocoon://


> Hello,
>
> I use an Action.
>
> How can I pass as value of  the
xml
> stream produced by a cocoon:// pipeline ? Is it possible ?
>
> Thanks,
>
> Barbara
>


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

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




map parameter value and cocoon://

2002-09-02 Thread Barbara Post

Hello,

I use an Action.

How can I pass as value of  the xml
stream produced by a cocoon:// pipeline ? Is it possible ?

Thanks,

Barbara


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

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




Re: i18n transformer empty message element ignored?

2002-09-02 Thread Joerg Heinicke

The non-breaking space (in XML: & # 160;) is a non whitespace character and 
should not be removed.

Regards,

Joerg


Dr. Hans M. Rupp wrote:
> Hallo!
> 
> Sometimes we need the behavior, that the i18n transformer replaces
> something with nothing. Somehow this does not seem to work.
> E.g: pre i18n:
> NO  i18n:key="Unit.NO_UNIT">NO_UNIT (08:00 h)
> catalogue entry:
> 
> output:
> NO NO_UNIT
> When I replace the zero length string in the catalogue with bla the
> output
> is
> NO bla
> so the catalogue entry can be found.
> A single space or more spaces as the element contents also seem to be
> ignored.
> 
> Any ideas for a work-around or solution?
> 
> 
> Many thanks,
> Hans

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

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




i need ur help

2002-09-02 Thread R.Nageswara Sastry


Respected Sir,

 The following r the warnings after starting the tomcat server.
 Linux 7.1 is the OS
 Tomcat version is 3.2.3
 and the Cocoon version is 2.0.2
  The file font.properties is in the dir /usr/local/jdk/jre/lib. and the
font files r the dir /usr/local/jdk/jre/lib/fonts.
 The files r
 LucidaBrightDemiBold.ttf
 LucidaBrightDemiItalic.ttf
 LucidaBrightItalic.ttf
 LucidaBrightRegular.ttf
 LucidaSansDemiBold.ttf
 LucidaSansDemiOblique.ttf
 LucidaSansOblique.ttf
 LucidaSansRegular.ttf
 LucidaTypewriterBold.ttf
 LucidaTypewriterBoldOblique.ttf
 LucidaTypewriterOblique.ttf
 LucidaTypewriterRegular.ttf
 fonts.dir

 Iam getting the doubt that is i missed any of the font files??? r the
problem with the path. if u need more details about this to solve the
problem i will give in the next mail.

> Font specified in font.properties not found
[-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]

 Font specified in font.properties not found
[-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]

 Font specified in font.properties not found
[-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1]

Font specified in font.properties not found
[-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1]

 Font specified in font.properties not found
[-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found
[-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]

 Font specified in font.properties not found
[-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
 Font specified in font.properties not found
[-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1]

Thanking u
 regards
 R.N.Sastry

R.Nageswara Sastry MCA
Jr.Software Engineer
OSI-Technologies Pvt Ltd.,
253/A,Venkateswara Colony,
Road #12,Banjara Hills,
Hyderabad-500034.India
Phone:+91-40-3390080


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

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




i18n transformer empty message element ignored?

2002-09-02 Thread Dr. Hans M. Rupp

Hallo!

Sometimes we need the behavior, that the i18n transformer replaces
something with nothing. Somehow this does not seem to work.
E.g: pre i18n:
NO NO_UNIT (08:00 h)
catalogue entry:

output:
NO NO_UNIT
When I replace the zero length string in the catalogue with bla the
output
is
NO bla
so the catalogue entry can be found.
A single space or more spaces as the element contents also seem to be
ignored.

Any ideas for a work-around or solution?


Many thanks,
Hans


Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



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

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