RE: copy/paste

2002-11-14 Thread TREGAN Fabien

When you press some keys (like ', , ?) in Word, the keypress is interpreted
and translated.
ie : if you press  after a space, you get a «+NonBreakableSpace, if you
type it after another char, you get »+NonBreakableSpace.

If you copy/paste l'essai in Word, and then type the same thing, you will
get  l'essai and then « l'essai » (note that the /apostophe/ is different)

Now if you copy/paste the first essai from word, you will get the
behaviour you expected. 

This is the problem, I leave it up to you to find the solution :)

HIH,
fabien.



-Message d'origine-
De: Eric BASLEY [mailto:eric.basley;odb.fr]
Date: jeudi 14 novembre 2002 16:49
À: [EMAIL PROTECTED]
Objet: copy/paste


Hi,

let's take cocoon example cocoon/forms/employee from 2.0.3 
release, NT, 
Explorer or Mozilla

When I copy from Word the text cou'cou and paste to a texfield ( 
'/Employee Name'), /after update I will see cou#8217;cou !!!
But, if instead you pasting, I'm typing cou'cou the result 
is correct.

Can someone explain me why copy/paste has a differente beheavor than 
direct typing, and how to avoid such effect ?

Thanks.

Eric

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


This mail has originated outside your organization,
either from an external partner or the Global Internet. 
Keep this in mind if you answer this message.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




Castor transformer with a bean that have no public constructor.

2002-07-17 Thread TREGAN Fabien

Hi,

I have a class with setter and getter but no public constructor. I'd like tu
use it with castor transformer and insertBean only.

It sometimes works, but sometime (and everytime if I try to define by-hand
the castormapping), I have an exception because there is no public
constructor aviable.

Does someone have information about this ? Is it a Castor feature or a
Castor in Cocoon feature ? how come it often manage to XMLise the bean,
but only sometimes complain about the missing contructor ?

fabien.

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




Out of memory error.

2002-07-16 Thread TREGAN Fabien

Hi,

I'm making some perfomance test with cocoon. The pipeline is like this :
-action that instanciate a bean (with one property wich is an array of one
hundred beans)
-castor transformer
-2 xsl transformation
-html serializer

When I try stressing it, when I have around 50 concurrent hit (50 thread in
JMeter), i get some out of memory error (wich are displayed without
stacktrace). Winnt 4 indicate that java.exe uses around 80Mo of memory (the
server has 1Go, and more than 500Mo of physical memory aviable)

I tryed to add -Xmx268435456 -Xms 268435456 in %catalina_opt%, and to set
the heap_size parameter in the sitemap to 268435456, but it did'nt changed
anything.

any idea ?

fabien.

-
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:[SOLVED] Can't get CastorTransformer to work

2002-07-11 Thread TREGAN Fabien

mmm, Ok, i've found WHY it did not want to work...

In my 2 weeks old CVS - HEAD  (2.1), the CastorTransformer.Java file
contains
  private static String
CASTOR_URI=http://castor.exolab.org/cocoontransfomer;;
(ie cocoontransfomer instead of expected cocoontransfomer)

I did not patch this beacause i've no internet acces here (only mail), and
because I do not know if it allready have been solved or if it would inpact
other people.

fabien.

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

2002-07-10 Thread TREGAN Fabien

It's called a CastorTransformer because it is a cocoon transformer.

So why is it a transformer ?

In fact, it might have been a generator. But when you use the
CastorGenerator, what you usually want to do is to INSERT the xml
serialization of a Bean into the current flow of datas.
Image you have a table, and you want to insert 3 beans in 3 td /'s of the
table.

If you hade a generator, you must do :

-Generate mybean bean1 / bean2 / bean3/ /bean
-Make an XSL stylesheet that will wrap the table / and td /'s  around
the beans.

With a generator, you can :

-Define an XML file with table tdinsert-bean //td...
-Use the transformer to replace the insert-bean /'s with the apropriate
content in the flow.

With a transformer, you also can re-transform to insert new beans later in
the pipeline, wich is not possible (without cinclude) if you use a
generator.


fabien.

-Message d'origine-
De: Werner Guttmann [mailto:[EMAIL PROTECTED]]
Date: mardi 9 juillet 2002 17:22
À: [EMAIL PROTECTED]
Objet: CastorTransformer


Hi,

I had a look at the CastorTransformer the other day to familiarize
myself with how things are implemented, etc. I still fail to understand
why this component is actually called Castor*Transformer* when clearly
it's role is that of a generator, i.e. a component responsible for
inserying XML (SAX events) into a pipeline.

Can anybody please enlighten me whether I am misunderstanding/missing
anything fundamental ...

Thanks
Wenrer


-
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: Cocoon status page ??

2002-07-10 Thread TREGAN Fabien

 I deploy the cocoon servlet as part of a j2ee application
 which uses other servlets as well. So, I don't have the /
 mapped to cocoon (just *.xsp and *.xml). How can I access
 Cocoons status page normally accessed with /cocoon/status

just change the status pipe so it match something that end with .xml :

   map:match pattern=status.xml
map:generate src=status type=status/
map:transform src=welcome/status2html.xsl/
map:serialize/
   /map:match

then you acces status.xml instead of status.

fabien.

 
 Thanks,
 
 Artur...


-
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: [HELP] How Can I do ?

2002-07-10 Thread TREGAN Fabien

Look for a thread whom subject is Help on Sitemap wich started in march
2002.

note for diana : Should this Question be considered as Frequently Asked ? ?

-Message d'origine-
De: illo [mailto:[EMAIL PROTECTED]]
Date: mardi 9 juillet 2002 16:22
À: [EMAIL PROTECTED]
Objet: [HELP] How Can I do ?


Hello All,
I hava a question for sitemap
how can i write a sitmap:
if i request http://site/test.xml
it will transform by default.xsl
if i request http://site/test.xml?sytle=test.xsl
it will transform by test.xsl

Thanks 


-
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: Howto select EVERY Image ending with *.gif ?

2002-07-10 Thread TREGAN Fabien

have a look at the regular expression matcher at
cocoon/documents/userdocs/matchers/matchers.html, you'll be able to do it
with only 1 regexp matcher.

fabien.

-Message d'origine-
De: Per Kreipke [mailto:[EMAIL PROTECTED]]
Date: mardi 9 juillet 2002 19:15
À: [EMAIL PROTECTED]
Objet: RE: Howto select EVERY Image ending with *.gif ?


Good point, thanks. I thought he was asking about the gifs in 
subdirs :-o

Per

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Howto select EVERY Image ending with *.gif ?
 
 
 It only doesn't match on .gif without any directory. If he 
doesn't need 
 the filename specifically, the **.gif (he tested already??) is the 
 correct solution.
 
 Joerg
 
 Per Kreipke wrote:
  I think the pattern you want is:
  
  **/*.gif
  
  == 'any .gif in any directory, no matter how deep'
  
  Per
 
 
 -
 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]




RE: cocoon-users-unsubscribe@xml.apache.org

2002-07-10 Thread TREGAN Fabien

o damn ! I didn't knew my answer was such a boring one...

-Message d'origine-
De: sanjay dubey [mailto:[EMAIL PROTECTED]]
Date: mercredi 10 juillet 2002 08:41
À: [EMAIL PROTECTED]
Objet: [EMAIL PROTECTED]




On Wed, 10 Jul 2002 TREGAN Fabien wrote :
have a look at the regular expression matcher at
cocoon/documents/userdocs/matchers/matchers.html, you'll be able 
to do it
with only 1 regexp matcher.

fabien.

 -Message d'origine-
 De: Per Kreipke [mailto:[EMAIL PROTECTED]]
 Date: mardi 9 juillet 2002 19:15
 À: [EMAIL PROTECTED]
 Objet: RE: Howto select EVERY Image ending with *.gif ?
 
 
 Good point, thanks. I thought he was asking about the gifs in
 subdirs :-o
 
 Per
 
  -Original Message-
  From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 09, 2002 1:08 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Howto select EVERY Image ending with *.gif ?
 
 
  It only doesn't match on .gif without any directory. If he
 doesn't need
  the filename specifically, the **.gif (he tested already??) 
is the
  correct solution.
 
  Joerg
 
  Per Kreipke wrote:
   I think the pattern you want is:
  
   **/*.gif
  
   == 'any .gif in any directory, no matter how deep'
  
   Per
 
 
  
-
  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]


_
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs


-
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: [HELP] How Can I do ?

2002-07-10 Thread TREGAN Fabien

I'll make sure it's added, Fabien. Thanks for flagging it. It would be 
wonderful to have a library of sitemap/pipeline snippets, to 
give users 
ideas how to accomplish almost anything. But we can only build such a 
library one snippet at a time. And it takes contributions from 
all kinds 
of users.

  Yes, and one day we will have those code snipet integrated in Eclipse's
sitemap editor and we will code for Cocoon by drag'n'droping
animated-musicPlaying-icons from free libraries, and RWADUX (Rapid Web
Application Devloppement Using Xml) will became a buzzword, and i'll be
fired because my boss do not need me since he can use a mouse almost
perfectly, and i'll go on hollidays, stop coding, dust my old EOS 1, get
some Velvias in the fridge and try to remember how to take a photo, and,
and... and i'll awake, it will only have been (1) a nightmare !

Diana

(1) : I'll have to look for my English Grammar is Easy book to check this
one

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




CDATA disappears with 2.1

2002-07-03 Thread TREGAN Fabien

I made a custom transformer (wich transform XHTML into the Javascript String
containing the code of the corresponding HTML - please don't ask me why !)

It works well with 2.0.3, but I ned to know the performances with XSLTC, so
I use 2.1 for my tests. The XSL transformation is about 35% faster (just the
transformation, not the whole pipeline... far from the 80% expected ;) ),
but the CDATA block disappear : its content is viewable, but escaped.

I could not figure the difference in component définition... Does it come
from the Xalan jar used in 2.1 ? A change in
AbstractTransformer.startCDATA() ?


Code : 

super.startCDATA();
escapedHTML = replace(escapedHTML, \n, \\n);
escapedHTML = replace(escapedHTML, \r, \\r);
escapedHTML = replace(escapedHTML, \, \\\);
super.characters(escapedHTML.toCharArray(), 0,
escapedHTML.length());
super.endCDATA();

Pipeline :

map:pipeline
map:match pattern=jsst*
map:act type=TestBeanAction
map:parameter name=nb value={1}
/
/map:act
map:generate src=test.xml /
map:transform type=castor /
map:transform
src=stylesheet/result2sdngui.xsl /
map:transform
src=stylesheet/SelectList.xsl /
map:transform type=jsst /
map:serialize type=html /
/map:match
/map:pipeline

Good result (2.0.3) :

script
var addString = form
xmlns:sdngui=\http://www.airbus.com/sdn/gui/v1\;
onmousedown=\AActivate(this);\ [...] ;
/script

(if I use serialize type=xml /, it gives : var addString =
![CDATA...)

Wrong result (2.1 - xsltc)

?xml version=1.0 encoding=UTF-8?
test
script
var addString = lt;?xml version=\1.0\
encoding=\UTF-8\?gt;\r\nlt;form method=\post\
onmousedown=\AActivate(this);\ [...] ;
/script
/test

(if I use serialize type=xml /, it gives : var addString = lt;?xml
version=\1.0\...)

Wrong result (2.1 - no xsltc)

?xml version=1.0 encoding=UTF-8?
test xmlns:castor=http://castor.exolab.org/cocoontransfomer;
xmlns:jsst=http://www.airbus.com/caw/jsst;
script
var addString = lt;?xml version=\1.0\
encoding=\UTF-8\?gt;\r\nlt;form
xmlns:xmlns:sdngui=\http://www.airbus.com/sdn/gui/v1\;
onmousedown=\AActivate(this);\ [...] ;
/script
/test


Any idea ?

fabien.

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




Where did stream-pipeline and event-pipeline element went in 2.1 ?

2002-07-03 Thread TREGAN Fabien

Hi,

 The following lines no longer appear in cocoon.xconf in 2.1 (they do in
2.0.3, and the doc still say you can replace them to use non-caching
pipelines)

event-pipeline
class=org.apache.cocoon.components.pipeline.CachingEventPipeline/
stream-pipeline
class=org.apache.cocoon.components.pipeline.CachingStreamPipeline/

Is it OK just to add them ? Why did they go ? Can we use non-caching
pipeline in 2.1 ?

thx, 
fabien.

-
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: Giving up! Cocoon too big, slow and confusing

2002-07-01 Thread TREGAN Fabien

According to Babylon (usefull windows dictionnary wich work with onscreen
OCR) : 

Brick = Chic type (mmm, something like cool guy)



-Message d'origine-
De: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Date: lundi 1 juillet 2002 08:52
À: [EMAIL PROTECTED]
Objet: RE: Giving up! Cocoon too big, slow and confusing



Anthony Aldridge wrote:
 
 Hurrah! You're a brick!
 
Like 'another brick in the wall'? Hmm, I already knew this,
because many people called me this in the past 30 years
(because of my last name, you can figure it out yourself
why).

Sorry, but my english is not good enough to figure out
what you exactly mean by this. Can you enlighten me?
PS: I hope it's a compliment!

Thanks
Carsten

-
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: set up pipeline for pdf file

2002-06-25 Thread TREGAN Fabien

De: Philipp Bo?em [mailto:[EMAIL PROTECTED]]
what is meant with IMHO?

In My Humble Opinion

-
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 2.0.3 + Jbuilder ?

2002-06-24 Thread TREGAN Fabien

-Message d'origine-
De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
Date: jeudi 20 juin 2002 11:55
á: '[EMAIL PROTECTED]'
Objet: RE: Cocoon 2.0.3 + Jbuilder ?


I don't think that the problem comes from the content of the web.xml.
As I've told aready, I usually solve this problem by opening 
the web.xml
file in the editor (and better in the Source mode). This way 
JB does not touch the file.

I am interested to hear a better solution to this too.

Konstantin

I'm not really sure if this is the solution, since behaviour seems to be
changing randomly, but I finally manage to get it to work. All i hade to do
was to re-write the web.xml file... and maybe I change some option I can't
remember :)

Here is my web.xml :

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameCocoon2 Demo/display-name
  descriptionDemo application for Cocoon2/description
  servlet
servlet-nameCocoon2/servlet-name
display-nameCocoon2/display-name
descriptionThe main Cocoon2 servlet/description
servlet-classorg.apache.cocoon.servlet.CocoonServlet/servlet-class
init-param
  param-nameallow-reload/param-name
  param-valueyes/param-value
/init-param
init-param
  param-nameclassdebuginfo/param-name
  param-valuetrue/param-value
/init-param
init-param
  param-namecocoon-logger/param-name
  param-valuecore/param-value
/init-param
init-param
  param-nameconfigurations/param-name
  param-value/WEB-INF/cocoon.xconf/param-value
/init-param
init-param
  param-nameinit-classloader/param-name
  param-valuefalse/param-value
/init-param
init-param
  param-nameload-class/param-name
  param-valueorg.hsql.jdbcDriver/param-value
/init-param
init-param
  param-namelog-level/param-name
  param-valueDEBUG/param-value
/init-param
init-param
  param-namelogkit-config/param-name
  param-value/WEB-INF/logkit.xconf/param-value
/init-param
init-param
  param-namemanage-exceptions/param-name
  param-valuetrue/param-value
/init-param
init-param
  param-namerequest-factory/param-name
 
param-valueorg.apache.cocoon.components.request.MultipartRequestFactoryImp
l/param-value
/init-param
init-param
  param-nameservlet-config/param-name
  param-valueaccess/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
  servlet
servlet-namejspalacon/servlet-name
servlet-classorg.apache.cocoon.servlet.CocoonServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameCocoon2/servlet-name
url-pattern*.html/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameCocoon2/servlet-name
url-pattern//url-pattern
  /servlet-mapping
  mime-mapping
extensioncss/extension
mime-typetext/css/mime-type
  /mime-mapping
/web-app

-
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: A newbie question

2002-06-24 Thread TREGAN Fabien

[please, use plain text in your posts]

Thought I do not have 2.1 here, I think that the problem is that every
directory in 'samples' is auto-mounted by the sitemap (this mean that every
request that start with samples/xxx are handled by the sitemap in
samples/xxx.)

Read the doc (or comments in the sitemap) to find how to (auto)mount other
directory. (hint : check the sitemap in /mount/)

fabien.


-Message d'origine-
De: Jack Dong [mailto:[EMAIL PROTECTED]]
Date: lundi 24 juin 2002 09:10
À: [EMAIL PROTECTED]
Objet: A newbie question


hi,
I am a newbie to use cocoon,and get a question.
I use cocoon 2.1 and tomcat 4.0.4 beta3.
when i type
http://localhost:8080/cocoon, it's right.
but when i copy the hello world sample 
from $CATALINA_HOME/webapps/cocoon/sample/hello-world
to$CATALINA_HOME/webapps/cocoon/hello-world 
and type
http://localhost:8080/cocoon/hello-world/hello.html
it response a error page,that noteresource not found, why and what
relation have between main sitemap and substitute sitemap?


by the way, what mean like {1}.rdf ,{2}.rdf?

thinks advance.

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




Can't get CastorTransformer to work

2002-06-18 Thread TREGAN Fabien

Hi,

I have a clean 2.0.3 CVS from yesterday morning (8:00 am Paris time), clean
build, and I can't get the CastorTransformer to work. Each of my tryings
(and cocoon/mount/castor/) return a blank page (containing only 1 space
char) with correct mime type.
If I use no castor:... tag in the input of the CastorTransformer,
everythings works fine.

Is there a problem with my version ? Have someone a working sample ?

thx, fabien.

-
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: Can't get CastorTransformer to work

2002-06-18 Thread TREGAN Fabien

A quick question: did you use the 'installscratchpadwar' target for the
build? CastorTransformer is in the scratchpad still, so you'll 
need to use
this target to get it included to the webapp.

I did :)

The /castor/ directory appear when I acces cocoon/mount/, the the xmap,
test.xml and castor_mapping/*.xml files exists, and when I run the sample
(or the test I do by myself), i get no error (neither at screen nor in
logs), but I get a blank (1 space char) file...

--
Konstantin Piroumian 
[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: Can't get CastorTransformer to work

2002-06-18 Thread TREGAN Fabien

One other information that may help anyone who'd try to help me :

When I change the tes.xml file from the sample and replace Mouse by
MouseX, the following message appear in core.log :
DEBUG   (2002-06-18) 14:55.35:107   [core.manager]
(/c203/mount/castor/bolobolo) HttpProcessor[80][0]/CastorTransformer: Bean
MouseX could not be found

So it seems that the castor transformer is well running, but I still get no
output as soon as I have a castor:insertbean in test.xml... Any idea ?

fabien.

-
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 and Oracle 8

2002-06-12 Thread TREGAN Fabien

Hi,

I have a demo that works fine with the database provided with Cocoon.

I want to use the Oracle DB (8.0.6 on solaris). Oracle works fine from my PC
with the Oracle Client. So here is what I made to use Oracle in Cocoon :

-edit web.xml so it loads the oracle server (that seems to work, no error)
-edit the datasource (something like :
jdbc:oracle:thin:user/pass@server:port:SERVICE. I also tryed without the
user/pass)
-tell the actions to use this datasource.

The sample no give a Invalide Source Exception

Any idea ? any sample of something that DO work with Oracle ?

thx, fabien.

-
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 and Oracle 8 - more informations.

2002-06-12 Thread TREGAN Fabien

I'm still stuck trying to use Oracle 8.0.6 instead of HSQLDB.

I've got a basic sample (using xsp-esql), wich work Ok if I use the HSQL
connection, and retour the attached error (NoValidConnectionException) when
used with the Oracle connection.

Oracle works fine when accessed with the Oracle Client.

I use nls_*12.jar ans classes12.jar provided by oracle (in web-inf/lib), I
followed the install instructio (path).


If you have any hint...


-


in Web.XML :


init-param
  param-nameload-class/param-name
  param-value
  oracle.jdbc.driver.OracleDriver
  org.hsqldb.jdbcDriver
  /param-value
/init-param


in Cocoon.XCONF:


  datasources

!-- this one is working fine --
jdbc logger=core.datasources.personnel name=personnel
  dburljdbc:hsqldb:hsql://localhost:9002/dburl
  usersa/user
  password/
/jdbc

!-- this one does'nt work --
jdbc logger=core.datasources.fusionoracle name=fusionoracle
  pool-controller min=5 max=10 oradb=true/
  dburljdbc:oracle:thin:@carlos:1521:FUSION/dburl
  userdba/user
  passworddba/password
/jdbc

  /datasources


In the XSP : 


esql:connection
!-- using personel here works fine... but with HSQLDB :)
--
esql:poolfusionoracle/esql:pool
esql:execute-query
esql:query
SELECT * from serveur
/esql:query
esql:results
esql:row-results
option
xsp:attribute name=value
esql:get-string
column=id_serveur/
/xsp:attribute
esql:get-string
column=id_serveur/
/option
/esql:row-results
/esql:results
/esql:execute-query
/esql:connection




logs.zip
Description: Binary data

-
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: Please Wait Message

2002-06-11 Thread TREGAN Fabien

-Message d'origine-
De: David Vos [mailto:[EMAIL PROTECTED]]

...

exist, send the message.  There is one major problem with this that I
see:  If multiple people request the same un-cached file, does Cocoon
spawn multiple processes to build the same file?  If so, then the
wait-3-seconds-and-refresh idea could add a pretty nasty load.

Document is cached only when done processing.

Any other ideas?  Or is this just a dumb idea to begin with?  : )
You may at least try :
-to make a custom action (on the reloaded page) that test if the document
exist, is being created, or does not exist at all
-to make a command line generation of all the .PDFs with a batch, during the
night, and use a pdf page server to serv only wanted pages of the pdf. (you
can do the same for HTML by producing 1 .html for each page or each chapter)


(I have no idea how to do this with non-html files).

David



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




Serializing javascript escaped html

2002-06-04 Thread TREGAN Fabien

Hi,

I have a DHTML application. I use remote scripting to acces server (post are
made in an hidden frame, the server return javascript).

This work well with Cocoon for standard script (ie. : alert(hello
world);), but i'd like to have a script that insert HTML in existing HTML
(ex : add a new menu, change the content on a P.../P tag)

The problem is that I do not need to generate HTML code, but javascript that
will update code. Something like :
paragraphe.write(L\'abonnement mensuel : 10euro;);

Does something that fit that need allready exist or do I have to write it ?

fabien.

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

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




cocoon://file.xsl as a src attribute for xsl transformer throws eception :(

2002-05-30 Thread TREGAN Fabien

Hi.

I've got twoo cocoon app :

Cocoon
 +-SDNGUI
 +-CAW

-SDNGUI is a general UI app, that will mainly serv XSL, JS and CSS for every
other apps.
-CAW is an app wich wants to use SDNGUI

-When I call http://localhost/cocoon/ActionGroup.xsl, I see my .XSL file
allright. (I use a reader with txt/xml mime-type)

-When, in caw's sitemap I use :

 map:match pattern=action
map:generate src=ActionGroup.xml /
map:transform src=context://sdngui/xsl/ActionGroup.xsl /
map:serialize name=xml /
 /map:match

It works well, but if I use :

 map:match pattern=action
map:generate src=ActionGroup.xml /
map:transform src=cocoon://sdngui/ActionGroup.xsl /
map:serialize name=xml /
 /map:match

Here is an error (see bellow)

Is there an explaination ? A workaround ?


thanks, fabien.


The error : 

Cocoon 2 - Internal server error




type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.apache.cocoon.ProcessingException: Unable to get transformer
handler for cocoon://sdngui/DropDownMenu.xsl:
org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Unable to get transformer handler for
cocoon://sdngui/DropDownMenu.xsl:
org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:223)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:128)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

RE: cocoon://file.xsl as a src attribute for xsl transformer throwseception :(

2002-05-30 Thread TREGAN Fabien

-Message d'origine-
De: KOZLOV Roman [mailto:[EMAIL PROTECTED]]

Hello Fabien,
hello :)

Why do you miss xsl/ in the second example ?
Because the sitemap in /sdngui looks for .xsl in the xsl directory :

!-- Serves XSL --
map:match pattern=**.xsl
map:generate src=xsl/{1}.xsl /
map:serialize name=xml /
/map:match
or
!-- Serves XSL --
map:match pattern=**.xsl
map:read src=xsl/{1}.xsl
mime-type=text/xml /
/map:match

neither do work.

When I call http://localhost/cocoon/sdngui/ActionGroup.xsl it works, so how
come it doesn't work when (from the pipeline) I use
cocoon://sdngui/ActionGroup.xsl ?? Bug or did I miss something ?

Roman

TREGAN Fabien wrote:

 Hi.

 I've got twoo cocoon app :

 Cocoon
  +-SDNGUI
  +-CAW

 -SDNGUI is a general UI app, that will mainly serv XSL, JS 
and CSS for every
 other apps.
 -CAW is an app wich wants to use SDNGUI

 -When I call http://localhost/cocoon/ActionGroup.xsl, I see 
my .XSL file
 allright. (I use a reader with txt/xml mime-type)

 -When, in caw's sitemap I use :

  map:match pattern=action
 map:generate src=ActionGroup.xml /
 map:transform 
src=context://sdngui/xsl/ActionGroup.xsl /
 map:serialize name=xml /
  /map:match

 It works well, but if I use :

  map:match pattern=action
 map:generate src=ActionGroup.xml /
 map:transform src=cocoon://sdngui/ActionGroup.xsl /
 map:serialize name=xml /
  /map:match

 Here is an error (see bellow)

 Is there an explaination ? A workaround ?

 thanks, fabien.

 The error :

 Cocoon 2 - Internal server error

 
---
-
 

 type fatal

 message Failed to execute pipeline.

 description org.apache.cocoon.ProcessingException: Failed to execute
 pipeline.: org.apache.cocoon.ProcessingException: Unable to 
get transformer
 handler for cocoon://sdngui/DropDownMenu.xsl:
 org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: 
Exception in
 creating Transform Handler

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 stack-trace

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
 org.apache.cocoon.ProcessingException: Unable to get 
transformer handler for
 cocoon://sdngui/DropDownMenu.xsl:
 org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: 
Exception in
 creating Transform Handler
 at
 
org.apache.cocoon.components.pipeline.CachingEventPipeline.proc
ess(CachingEv
 entPipeline.java:223)
 at
 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.pro
cess(CachingS
 treamPipeline.java:399)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNod
e.invoke(Seri
 alizeNode.java:153)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:83)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMa
tchNode.invok
 e(PreparableMatchNode.java:157)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:107)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
.invoke(Pipel
 ineNode.java:138)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:107)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNod
e.invoke(Pipe
 linesNode.java:142)
 at
 
org.apache.cocoon.components.treeprocessor.TreeProcessor.proces
s(TreeProcess
 or.java:318)
 at
 
org.apache.cocoon.components.treeprocessor.TreeProcessor.proces
s(TreeProcess
 or.java:289)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.in
voke(MountNod
 e.java:128)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:83)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMa
tchNode.invok
 e(PreparableMatchNode.java:157)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:107)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
.invoke(Pipel
 ineNode.java:138)
 at
 
org.apache.cocoon.components.treeprocessor.AbstractParentProces
singNode.invo
 keNodes(AbstractParentProcessingNode.java:107)
 at
 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNod
e.invoke(Pipe
 linesNode.java:142)
 at
 
org.apache.cocoon.components.treeprocessor.TreeProcessor.proces
s(TreeProcess
 or.java:318

RE: cocoon://file.xsl as a src attribute for xsl transformer throwseception :(

2002-05-30 Thread TREGAN Fabien

De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]

What is the Cocoon version? It seems to me that this is not 2.0.3, but
version of CVS HEAD (which is alpha and can have bugs).

Vadim

I work with a HEAD wich is two weeks old, but I have the same result with a
2.0.2 release :)

fabien.

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

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




RE: Include external javascript file

2002-05-29 Thread TREGAN Fabien

Because it's cleaner :)

The thing you must remember is that ANAY request tht start with /cocoon/ is
sent to COCOON.
If in cocoon/myapp/index.html (wich is generated by cocoon), you have a
relative link myscript.js, the browser will ask the web server for
cocoon/myapp/myscript.js. The server know that all cocoon/** url are handle
by cocoon, so it ask Cocoon (the servlet) for myapp/myscript.js, because
it doesn't know that myapp/script.js must be processed differently from
myapp/index.html.

So what you must do is have a cocoon pipeline that match *.js and send (via
a reader) the .js file. Since you want it to be clean, you put all the .js's
in a myapp/js directory.

Now you understood, you can do the same for *.gif, *.bmp, *.doc, ...

Another way to serve .js is to use an URL wich is out of the /cocoon/* path
(ex : use an absolute path to http://myserver/js/toto.js, so cocoon won't be
concerned by the request)

hope it's clearer (i doubt :)

fabien.

-Message d'origine-
De: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Date: mercredi 29 mai 2002 13:38
À: [EMAIL PROTECTED]
Objet: RE: Include external javascript file


I have a silly question,
Why do we put {1}.js in js/{1}.js ?



-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 1:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Include external javascript file

You must add a pipeline for every filetype you wish to call in your 
application.

Put your *.js files in the js directory and add the 
following to your 
pipelines

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

Now you can call any external javascript file directly, but it will be 
served from the js directory.
Adjust to your liking.
Bert

At 12:54 28/05/2002 -0700, you wrote:

A cocoon newbie question:

I am trying to include a javascript function from an external 
.js file 
into my xsl stylesheet.

I have the following in the xsl stylesheet:

head
...
script  src=cold_reverse_script.js language=javascript /script

/head

The file cold_reverse_script.js is in the same directory as the xsl 
stylesheet  contains javascript code for a single function:

--
-
-- 

function cold_reverse_search_criteria() {

javascript code .

 }
--
-
--- 


I have this entry in my sitemap:
map:match pattern=**.js
 map:read src={1}.js mime-type=text/jscript/
/map:match

(I've also tried text/javascript).

However, this does not work.  I get error on page whenever I try to 
access the javascript function from the .js file.   When I 
look at the 
source for the HTML page in the browser, it shows 
script  src=cold_reverse_script.js language=javascript
/script 
just as I've written it in the xsl file, but does not show the code
that 
is in the .js file.

If I put the javascript function code directly into the
script/script 
tags, it works fine, but I'd like to use the external .js file.

Any help would be greatly appreciated.

Thanks,

Beth Naquin
SAGEM MORPHO Inc.
1145 Broadway Plaza STE 200
Tacoma, WA 98402

253-597-8245


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

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



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

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


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

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




RE: template possibilities

2002-05-29 Thread TREGAN Fabien

For this problem, here is my solution :
-my frame pipeline generate from a template
-it's then cinclude transformed
-optionaly i18n transformed
-HTML serialized

Each include refer to a cocoon pipeline that handle each of my elements.
Thoose pipeline also have a view that allow them to be displayed in a blank
html page (for xsl designers)

The template looks like :

html xmlns:cinclude=http://apache.org/cocoon/include/1.0;
head
title
SDNGUI Template Demo
/title
cinclude:include src=resources/Imports.xml /
/head
body
table
tr
tdcinclude:include src=cocoon:/leftmenu
//td
tdcinclude:include src=cocoon:/main //td
/tr
/table
/body
/html


By the way if you have any cons / other idea, let me know.

fabien.

-Message d'origine-
De: Sebastien SACARD [mailto:[EMAIL PROTECTED]]
Date: mercredi 29 mai 2002 14:05
À: [EMAIL PROTECTED]
Objet: template possibilities


Hi,

I want to use cocoon to generate my website static pages and I know it 
can do it perfectly; but I did not find a way to do this simple thing :
- my pages are built from different modules and a gobal template.
- Each module is composed of one XML document and a XSLT file, and I 
want to concatenate (merge would be the better word) in the global 
template. But I don't want to concatenate the files one after 
the other 
: I want to be able to choose where each module will be 
inserted in the 
global template.
I know I can get the modules XML from the global template, using the 
select=document('module.xml') method, but I don't want to 
have to XST 
code for the modules inside the template, and I don't want to have an 
include of the module XSLT files either...

In other word, can cocoon concatenate XSLT results at given places, or 
in a given order rather than sequentially ?
I'm sure this is possible but can someone tell me how ?


Sébastien Sacard



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

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


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

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




Design choices for a cocoon application. (long)

2002-05-27 Thread TREGAN Fabien

Hi,

note
  This mail is a little longer than I'd like. My goal here is not to have my
job made by other people, but to summarize experience of other people and
make a doc that will intereste many cocoon users. BTW if you want to make my
job for me, let me know.
  My question may not be very accurate, if you think that question should be
added / remove / modified fill free to let me know.
/note

Ok, i've played a litlle with cocoon, (installation, hello world, write a
source, a transformer, ...).
I've made some my XML/XSL to make a GUI demo of the futur webapp, peoples
liked it, it's ok.

Now I must start the real work, and I must admit that, I have so much
choices and so few 'Best Practices' guide that i'm a little confused.

-oOo-

The application :
-

It's called ADOC (Atelier de Documentation, ie Documentation Workplace)

The business server allready exist with an (ugly) X client we are willing to
replace with a (nice) html client that will use C2.

The application allow users to handle SGML documents (lunch an editor,
import, export, apply stylesheet, ...)

The application is divided into Elements (document, nodes, graphics), and
Spaces (that contains element)
There are three spaces :
-Public space (contains realesed document)
-Two private spaces (a user who want to edit a Element reserve it in public
space, and get a private copy in private space)

There are some action that can be lunch private, public or both spaces
(reserve, drop, lunch editor, commit, validate, ...)

The elements in public space have a state that allow/disallow some
actions(free, reserved, partially reserved)

-oOo-

The process :
-

Let's examine how a click in the navigator is processed :

0) We display a list of menu, spaces and elements in IE.
1) The navigator (let's call it IE in memory of Ivan d'Empalot, french
chevalier who never existed) contruct a request from selected elements +
selected action and send (let's say post) it to the server
2) Cocoon selected the apropriated pipeline based on the query
3) The pipeline make a call to the server
4) The answer is XMLized (since it'as an old server that does know nothing
about XML)
5) From know it's easy I just have to transforme a little for presentation
only (ordering, then applying XSL then HTML serialization)

-oOo-

The choices :
-

Ok, know the problem is to deal with all the choices we have in order to
accomplish step 1 to 4 of the process.

Step 0:
---
Display is easy (only XSL we allready have from the demo). The problem is to
get our XML data. Here we have many solution that all use the (AE)Source  :
-Use Adocpublic:// for the public space (server address in xconf)
-Use Adocpublic://server.ip
-Use ADOC://[server.ip/]public

We have the same question for private spaces, if we choose the same
solution, it will not be clear that the content of ADOC://private depends
on the current user. So maybe it will be better to use something like
ADOC://{session.username}@server.ip/private, though we do not need this
information(s).

Step 1:
---
First problem, how to code the action ? If we know that the selected element
will be posted as a form, we have many choices to code the action :
-code it in the form
-code it in the url (http://server/doaction?action=myaction or
http://server/actions/myaction ?)

Then we use request generator in the begining of the pipe, no problem.

Step 2:
---
We can either send ALL requests to a java controller that will handle every
request, make one pipe for each action (an action here is a menu entry,
not a cocoon acton, sorry !), or something in the middle, but how to choose
?

Step 3:
---
-We will use a transformer to perfom this call (or maybe an action ?).
-The transformer (or action) will look for the Business Server Bridge
role.
-How do we found the server address ? Something like transform
name=myAction server={myServer} / ? Configure the component in role for
Business Server Bridge in the xconf ?

Step 4:
---
Ok, for this one I have no choice if I choosed to use a transformer... I'm
done :)

-oOo-

please, let me know your thougths, ideas, ... and i'll try to make a clean
doc that will certainly help people (that *will* help me :)

fabien.

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

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




RE: renewed Newbie Question

2002-05-27 Thread TREGAN Fabien

But what do i have to do, if i would 
like to dynamical transform XML to XHTML in a userhompage?
Say be trying to access http://myserver/~user/hello-page.xml?

All you have to do is tell tomcat (or whatever servlet container you use)
send (or redirect), http://myserver/~* to your cocoon app. Though this is
not a Cocoon related question, it is in the FAQ (go to
http://localhost:8080/cocoon, click on documentation, then FAQ and read
them.

-Message d'origine-
De: Jens Nie [mailto:[EMAIL PROTECTED]]
Date: lundi 27 mai 2002 13:34
À: [EMAIL PROTECTED]
Objet: renewed Newbie Question


Hi cocooners,

i just asked that question a couple of days before, but did 
not receive any 
response to it. And i suppose it's simple for you gurus. So 
i'm about to try 
again.

I have installed the jakarta-tomcat and cocoon packages 
shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to 
apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

   Sincerly
   jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



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

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


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

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




RE: Cocoon book reviewers wanted

2002-05-22 Thread TREGAN Fabien

De: Bert Van Kets [mailto:[EMAIL PROTECTED]]

My opinion exactly!
Open Source survives because it is used in a commercial world. 
 Let this be the Paradox of Open Source.
Bert

IM(H)O, this is not a paradox at all. This is a paradox for free license
(GPL) project, but not for apache. Too many people make a confusion between
*Open* Source and *Communist* Source :)


fabien.

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

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




mount + file:// problem.

2002-05-17 Thread TREGAN Fabien

Hi,

According to the FAQ this should works, but does not :

I have a cocoon app under [cocoondir]/caw
I have the SAME (copy-paste) under C:\caw
My webapp use only file generator, xslt and cinclude transformers, xml and
html serializers, and readers.
Tomcat 4.0.1, winnt 4, cocoon 2.0.2 release, 2.0.3 dev and 2.1 give same
behaviour.

the main [cocoon's] sitemap contains :

  map:pipeline
map:match pattern=caw/**
map:mount uri-prefix=caw src=file:///c:/caw//
/map:match
  /map:pipeline

  map:pipeline
map:match pattern=caw2/**
map:mount uri-prefix=caw2 src=caw//
/map:match
  /map:pipeline

caw's sitemap is attached.

localhost/cocoon/caw2 works perfectly.
localhost/cocoon/caw have a random beahaviour : it mixes my normal output
with cocoon error messages that change (content and location) with each
refresh.

here is an error message (most frequent) :
--

type fatal

message Could not read resource file:/c:/caw/AppTemplate.xml

description org.apache.cocoon.ProcessingException: Could not read resource
file:/c:/caw/AppTemplate.xml: java.lang.IllegalStateException: You cannot
lookup components on a disposed ComponentManager

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Could not read resource
file:/c:/caw/AppTemplate.xml: java.lang.IllegalStateException: You cannot
lookup components on a disposed ComponentManager
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:128)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at

Subsitemap's files under a clecase view.

2002-05-15 Thread TREGAN Fabien

Hi,

I'm trying to have my cocoonapp under a clearcase view. The mounting in the
sitemap work well : if I put my files in D:\ it works, but when I try to
have them in the clearcase view (Y:), I only get half of my page, and it end
with a Cocoon error message (the length of the correct answer change each
time, I guess it's because of a timeoute and a SLOW clearcase server.
Clearcase server is under unix, my PC use NT 4.0).

Here is the result I get, please let me know if I have other way than
copying my files from clearcase to local hardrive at each run :)

thx, fabien.



action.setAttribute(name, action);
action.setAttribute(value,
actionName);
IFrameForm.appendChild(action);
var submit =
IFrameDoc.createElement(input)

htmlheadtitleInternal server
error/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} BODY{font-family :
sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE
/headbodyh1Cocoon 2 - Internal server error/h1HR size=1
noshade=noshadepbtype/b fatal/ppbmessage/b uCould not
read resource
file:/Y:/CAW/SDNGUI/AppTemplate.xml/u/ppbdescription/b
uorg.apache.cocoon.ProcessingException: Could not read resource
file:/Y:/CAW/SDNGUI/AppTemplate.xml: java.lang.IllegalStateException: You
cannot lookup components on a disposed
ComponentManager/u/ppbsender/b
org.apache.cocoon.servlet.CocoonServlet/ppbsource/b Cocoon
servlet/ppbstack-trace/bpreorg.apache.cocoon.ProcessingException:
Could not read resource file:/Y:/CAW/SDNGUI/AppTemplate.xml:
java.lang.IllegalStateException: You cannot lookup components on a disposed
ComponentManager
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:128)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:142)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:318)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:289)
at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at

Several C2.war in the same servlet container (was : RE: [FEEDBACK NEEDED] Cocoon build-installation wishlist)

2002-04-29 Thread TREGAN Fabien

This will allow people to create and distribute their own 
webapps.  I think 
many people would love to send a WAR file with their developed 
webapp to a 
customer for a review.

Bert

I've tryed this to show benefits of several implementation of a C2 webapp...
but i found that in my configuration (tomcat 4.0.1, C2.0.2 and C2.0.3Dev),
i've noticed that having several war containing cocoon is NOT a good idea
(many exception caught at runtime, and some samples stopped working, while
all worked perfectly when only 1 of the .war)

Does this mean that, for now, you can't deliver a C2 webapp as a simple .war
if the servlet container allready have a C2 webapp installed ?

fabien.

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

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




RE: PERSONAL JAVA CLASSES

2002-04-26 Thread TREGAN Fabien

mmm, 

I tryed to put my sources and classes in WEB-INF/classes/, it did not work.
I tryed to put my classes in WEB-INF/classes/, it did not work.
I finaly tryed to put classes in a .jar in WEB-INF/classes/, it did work...
But i really dont like to re-jar my classes at each compilation, can I avoid
this ?

fabien.

-Message d'origine-
De: yuryx [mailto:[EMAIL PROTECTED]]
Date: jeudi 7 mars 2002 12:55
À: [EMAIL PROTECTED]
Objet: Re: PERSONAL JAVA CLASSES


Istvan Beszteri wrote:

.../cocoon/WEB-INF/classes/
works for me,
but you can check the WEB-INF/web.xml, how to define extra calsspaths.
Br,
  Istvan

On Thursday 07 March 2002 13:41, you wrote:

Hi,

Where must I put my personal Java classes in Cocoon 2? 
(which directory?)

Thanks


---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02


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

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


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

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

Or .../cocoon/WEB-INF/lib (for compiled classes) and don't check 
WEB-INF/web.xml :)

Regards.
Yury.




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

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


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

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




URL Factory vs Source Handler

2002-04-25 Thread TREGAN Fabien

Hi,

From cocoon.xconf :

  !-- URL Factory:
The url factory adds special url protocols to the system, they are then
available inside Cocoon, e.g. as a source argument for one of the
sitemap
components.
  --

  !-- Source Handler:
The source handler adds special url protocols to the system, they are
then available inside Cocoon, e.g. as a source argument for one of the
sitemap components.
  --

ok, so how do I choose between URL Factory and Source Handler ? Is the only
difference that SourceS are dom/sax compliants when resources can be
anything ?

Is it only possible to use a Source via SourceFactory registered with its
protocol in the SourceHandler or are there other ways ? (and if
answer==yes, how come that there is no SitemapSourceFactory ? special case
due to SitemapSource loaded to early and then using a default protocol ?)

Is there any other starting point for coding my first Source than cocoon
SourceS' sources ?

thx, fabien.

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

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




RE: i18n in xslt

2002-04-23 Thread TREGAN Fabien

not sure this will help but...

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

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

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




RE: two xml source files

2002-04-23 Thread TREGAN Fabien

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

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

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

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

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

fabien.

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

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




RE: two xml source files

2002-04-23 Thread TREGAN Fabien

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

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

template match=document(foo.xml)/root

fabien.

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

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




RE: Aggregation sample

2002-04-19 Thread TREGAN Fabien

There is an aggregate sample :

http://localhost:8080/cocoon/news/aggregate.xml

search for  map:match pattern=news/aggregate.xml  in the sitemap,
you'll find a sample.

you can replaces lines like :

 map:part element=news ns=http://foo.bar.com/slashdot;
src=cocoon:/news/slashdot.xml/
 map:part element=news ns=http://foo.bar.com/moreover;
src=cocoon:/news/moreover.xml/

I just replaced cocoon:/news/... by a local url and it worked.

fabien.

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

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




RE: Aggregation sample

2002-04-19 Thread TREGAN Fabien

Unzip the attached file in

[cocoon_home]/samples/[anydir]/

goto http://localhost:8080/cocoon/samples/[anydir]/sample.xml

it _is_ simple :)

fabien.




agrsample.zip
Description: Binary data

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

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


RE: Simple XSL problem, but NEED HELP!

2002-03-28 Thread TREGAN Fabien



-Message d'origine-
De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]

Hi,

/

At least in your example the row tag has no value, so it is
absolutely correct that nothing is returned. If you use xsl:value-of,
you will only get the value of the matched tag.


If you want a copy of all the tag, us xsl:copy.

If you need to copy all the tag, attributs, and inner tag, you can use
recursive-copy by using a named template and applying your template to the
node to be copyed.

I think that the template should look like :

xsl:template name=copyall
  xsl:copy
xsl:for-each select=@*|node()
  xsl:call-templates name=copyall/
  /xsl:copy
/xsl:template

hope this works, i've not practiced for a long time :)


Greetings,
Andreas


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

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




RE: Problem with sub-sitemap

2002-03-25 Thread TREGAN Fabien

HOWEVER - it continues to read tic1.xml/tic1.xsl
EVEN after a full reboot and relaunching apache.

Try to delete the tomcat/work dir.

fabien.

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

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




RE: XUL ?

2002-03-19 Thread TREGAN Fabien

I don't know anything abou XUL but

It's the XML based GUI-definition used by Mozilla.

you may be interested in
Web Services User Interface consortium
http://www.wsui.org/

I've hade a look at this, interesting !
It's not what I was looking for :
-wsui allow to map a component to a web services calls.
-What I'm looking for (and what XUL is) is a standard langauge to describe
the GUI. My probleme is that actually, in (x)HTML, you can easily tell that
you want a text input, and let the CSS define how the input will look like
BUT you have no way to say that you want a menu, and let the CSS define if
it's a drop-down menu, a treeview, ...

So what i'd like to have in my cocoon project is a SIMPLE transformation of
my XML datas in a standardized, easy to generate, gui-describing-xml stream,
and a re-usable layer for gui-description to XHTML transformation.

There are still several question for wich I do not have any answer :
-Should I define my own 'xgui' set of component or should I use (extend ?)
xul or uiml ?
-Is a standard gui-def - XHTML transformer out of C2 scope ?
-What are the url I should start reading before trying to answer this
questions by myself ?

Any suggestion is, of course, welcome !

fabien.


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

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




XUL ?

2002-03-18 Thread TREGAN Fabien

Hello.

I'm actually working on generation of GUI using C2. I'll have pipes like :
[generator] - [standard XML GUI description] - XHTML - Serialisation

I'd like to re-use (part of) the job that has been made on XUL for the
[standard XML GUI description], and if possible for the XMLGUI - XHTML
transformer.

Is there any (cocoon ?) discussion / project / doc / .xsl / article about
XUL - XHTML ?

fabien.

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

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




RE: thanks for sharing your expertise Vadim

2002-03-14 Thread TREGAN Fabien

mmm... +1 !

De: Marty McClelland [mailto:[EMAIL PROTECTED]]

Hello Vadim - 

I just want to express my appreciation for your participation on the Cocoon
users list.  
...
I also want to acknowledge your patience with newbies.  After reading the
list for some months - I find it interesting to see how many of the
questions are repeats.  Yet you continue to point folks in the right
direction - even when answering the same questions for the hundredth time.

thanks again!
enjoy the day - marty  


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

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




RE: newbie: how to get a clean application

2002-03-14 Thread TREGAN Fabien

it would be nice to have a tool, which checks dependencies at all levels.
like configure_cocoon svg, html, xslt, png which creates a 
webapp _only_ with the neccesary .jars, a appropriately configured sitemap
and cocoon.xconf... ok, you have other things to do / in mind. 
maybe i'll find some time to start it.

Have started a little swing-app acting like that.
I'll try to finish it this week-end. The xmap is created, but i'd like the
app to discover wich are the aviable components. This can be achieve by
reflexivity, but maybe it would help if futur .stephano archives includes
a liste of components classes/names.

fabien.

ps : my (weak) generator is now swing-based, do you think that it *should*
be a cocoon app instead ?


cheers,

moritz.


  but: the ant task user-input is still unknown!

 I think I fixed it in latest CVS version (2.0.2).
 Try that next time you upgrade, and let me know if there are
 still problems.

  thanks a lot!!

 You're welcome :-)

 Remember users: we need your input, and telling us what is 
going wrong for
 you helps us *a lot*.
 We should thank *you all* for your patience and collaboration, and
 constructive criticism is very welcome indeed.

 Thank you :-)

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


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

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




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

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


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

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




How are mime type working in C2 ?

2002-03-11 Thread TREGAN Fabien

something I do not understand about mime-type in C2 (the problème only
appears with C2, but maybe it's not C2 related ?)

I use IE 5.5, and I use 2 serializers (default configuration) :

in xmap:
map:serializer name=svg2jpeg
src=org.apache.cocoon.serialization.SVGSerializer 
logger=sitemap.serializer.svg2jpeg mime-type=image/jpeg/
in xconf :
component-instance name=xml
class=org.apache.cocoon.serialization.XMLSerializer
   mime-type=text/xml
   logger=sitemap.serializer.xml/

-when I acces image.svg and use the SVGserializer, IE reconize it's a
image/jpeg and open it as an image.
-when I open data.xml and use the XML serializer, IE open it an HTML file (I
have to use 'view source' to see my data, or to use a xml - xhtml
transformer)

When I open a .xml localy, IE reconize it as an xml file and display the
normal blue/red common treeview.

Is it a C2 related problem ? Is it an hack from IE to handle XHTML ?

fabien.


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

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




RE: AW: Compression in HTML Serializer ?

2002-03-11 Thread TREGAN Fabien


Nicola,

ahem... I wasn't able to find such a filter :(

Did you look look at the workers doc ?

[from the worker-how-to : ajpv13 is a more binary protocol and it try to
compress some of the request data by coding frequently used strings as small
integers.]

ft.

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

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




IE / NS don't reconize my XML output as XML

2002-03-11 Thread TREGAN Fabien

I use this serializer :

component-instance name=xml
class=org.apache.cocoon.serialization.XMLSerializer
mime-type=text/xml
logger=sitemap.serializer.xml/

in this pipeline :

map:match pattern=*.xml
map:generate src=xml/{1}.xml/
map:serialize name=xml/
/map:match

and xml/file.xml contains :

?xml version='1.0' encoding='UTF-8'?
test
this is a test.
/test

I can acces cocoon/myapp/file.xml, but both IE and NS display them as an
HTML file (display only 'this is a test').
If I use 'view source', the tag test is ok, but the PI (?xml
version='1.0' encoding='UTF-8'?) vanished.

if I try the same test with a .svg file and the SVG/JPEG serializer, both
browsers reconize the output as an image and display it properly.

I tryed stoping / starting Tomcat, refreshing, deleting work directory, no
luck... I must use an xml2xhtml transformer in order to see my results...

any idea ?

[Tomcat 4.0.1, 10 days old CVS, IE 5.5, NS 6.]


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

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




RE: Yet another newbie boring question, sorry... (mounting - com pila tion error)

2002-03-08 Thread TREGAN Fabien

My conclusion (at the moment) is that sitemap is relaoded at 
the second request you make. Not the first.
If anyone confirms...

mmm, are you sure it is a cache-problem rather than an async-recompile
methode ?

The doc say (avout map:mount parameter) :

The check-reload attribute specifies whether the sitemap should be
reloaded (regenerated) if it's source XML (sitemap.xmap) is modified. If
check-reload is set to no, the sitemap is only generated on the first
request for this sitemap. If check-reload is set to yes (the default),
the reload-method attribute determines how the sitemap is regenerated if
it had changed. 


PS: i am talking about the CVS version.

So do I (mine is 1 week old)

fabien.

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

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




RE: Yet another newbie boring question, sorry... (mounting - compila tion error)

2002-03-08 Thread TREGAN Fabien

mmm, started/stoped tomcat 4.0.1 2 times, rebooted the PC once, started
again, stoped, deleted work file, starting... it work fine, all the time. (I
just re-defined the default for serializers, ... but only by its name,
did'nt have to re-define the serializer... itself).

fabien.

-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: vendredi 8 mars 2002 15:45
: [EMAIL PROTECTED]
Objet: RE: Yet another newbie boring question, sorry... (mounting -
compila tion error)


 From: TREGAN Fabien [mailto:[EMAIL PROTECTED]]
 
 Thanks you, I added them all, it worked.
 
 But I did'nt like that, so I removed them, and it still works... :)

Restart server and it will stop working again.

Vadim

 
 [WHO sayed that Computer Sciences are Science ?]
 
 -Message d'origine-
 De: Olivier Rossel [mailto:[EMAIL PROTECTED]]
 Date: vendredi 8 mars 2002 15:34
 : [EMAIL PROTECTED]
 Objet: Re: Yet another newbie boring question, sorry... (mounting -
 compila tion error)
 
 
 TREGAN Fabien wrote:
 
 I'm trying to mount my subsitemap in C2 :
 
 -Cocoon example are running well.
 
 -in cocoon/sitemap.xmap i haded :
map:match pattern=caw/*
map:mount uri-prefix=caw check-reload=yes
 src=caw/sitemap.xmap/
/map:match
 
 -in cocoon/caw/sitemap.xmap I have :
 
 ?xml version=1.0?
 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
 
map:pipelines
map:pipeline
map:match pattern=*.xml
map:generate src={1}.xml/
map:transform src=simple.xsl/
map:serialize/
/map:match
/map:pipeline
/map:pipelines
 
 /map:sitemap
 
 -Result :
 Generated .java file is uncomplete :
 
 It ends with :
   /** Prepare patterns of PreparableMatchers. */
   public void prepareMatchers() throws Exception {
 
 Wich give an exception...
 
 Any idea ?
 
 fabien.
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException:
 Error compiling
 sitemap_xmap:
 Line 213, column 54:  '}' expected.
 Line 0, column 0:
 1 error
 
at
 org.apache.cocoon.components.language.generator.ProgramGenerat
 orImpl.createR
 esource(ProgramGeneratorImpl.java:338)
at
 org.apache.cocoon.components.language.generator.ProgramGenerat
 orImpl.load(Pr
 ogramGeneratorImpl.java:294)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)
 org.apache.cocoon.components.language.LanguageException:
 Error compiling
 sitemap_xmap:
 Line 213, column 54:  '}' expected.
 Line 0, column 0:
 1 error
 
at
 org.apache.cocoon.components.language.programming.java.JavaLan
 guage.compile(
 JavaLanguage.java:244)
at
 org.apache.cocoon.components.language.programming.CompiledProg
 rammingLanguag
 e.load(CompiledProgrammingLanguage.java:197)
at
 org.apache.cocoon.components.language.generator.ProgramGenerat
 orImpl.generat
 eResource(ProgramGeneratorImpl.java:386)
at
 org.apache.cocoon.components.language.generator.ProgramGenerat
 orImpl.createR
 esource(ProgramGeneratorImpl.java:331)
at
 org.apache.cocoon.components.language.generator.ProgramGenerat
 orImpl.load(Pr
 ogramGeneratorImpl.java:294)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)
 

-
 Please check that your question has not already been 
answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 We have has the same kind of problem.
 We had to declarate a valid generator, a valid transfromer and a
valid
 serializer at the beginning of the sitemap.
 Then it went ok.
 
 
 
 
-
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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

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


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

To unsubscribe

RE: Yet another newbie boring question, sorry... (mounting - compila tion error)

2002-03-08 Thread TREGAN Fabien


 what exactly is etc ?

Good question!

IIRC, the compiled sitemap engine wants to have section for every type
of default component it uses because it needs to know the 
*default*. So,
if you have at least one map:generate (without type= 
attribute), you
have to have map:generators default=file/ so engine knows that
default is file.

Hm... Am I clear?

parfait :)

Now I understoud i'll make some test with how it deal with inheritence.

Vadim

fabien.

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

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




RE: howto get rid of long url without Apache web server?

2002-03-07 Thread TREGAN Fabien

mmm... this definitively is a TOMCAT user question, not a Cocoon user
question... so I wont answer here, sorry.

(btw you should find Parameter name=port value=8080/ in server.xml and
replace 8080 by 80 : 80 being default HTTP port, you wont have to hade it.
You may rename cocoon.war in ROOT.war after you have deleted the ROOT
directory, in tomcat/webapp, if you want Cocoon to be the default webapp...
but I won't tell you so because this is NOT the place for tomcat related
questions, sorry)

fabien.

marco wrote:

I have installed Tomcat 4.0.1, cocoon 2.0.0, jdk1.3.1_01 (no 
Apache web
server) in Windows 98.

How can I access my web site by url http://www.mysite.com/index.html;
instead of http://www.mysite.com:8080/cocoon/myproject/index.html; ?

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

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

HI marco
You just install mod_webapp or mod_proxy and configure apache and
Tomcat. It's very easy ;)

Before, try read manuals like:
http://www.mysite.com:8080/tomcat-docs/proxy-howto.html :))

Regards.
Yury.




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

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


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

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




Separating icons' file name from main XSL

2002-03-06 Thread TREGAN Fabien

Hi,

I'm making my first Cocoon application.
Like many others, all it does is open an XML file and create a table from it
using an XSL file.

I'd like to have the definition of each icon's file to be outside of the XSL
(to be able to change it update it quikly, use definitions from other .xsl,
...)

Wich way is the best :
-Have the first XSL create icon wich=..., and a second XSL replace
icon by img src=... ?
-Use xsl:variables and xsl:include/import ?
-Agregate an XML list of icone-name-file-name association ? *
-Use the i18n transformer ?
-Other Cocoon specific feature I missed ?

Wich are the point that can make the response different in a cocoon
environnement from wich it would have been in a standard (servlet/JSP) env ?

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

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




Where is the 'resource' reader name defined ?

2002-03-06 Thread TREGAN Fabien

sitemap contains :

  map:readers default=resource
   map:reader name=jsp  logger=sitemap.reader.jsp
   src=org.apache.cocoon.reading.JSPReader/
  /map:readers

but where is the name/src of the default reader (resource) defined ?

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

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