Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier GUCKERT


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

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

(without the / before picto) ?

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



Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Olivier but this syntax is not correct.

You must put a / to refer to the current sitemap, and // to refer to the root sitemap (or maybe the inverse).

--

Olivier BILLARD



Olivier GUCKERT wrote:

Olivier Billard a écrit :

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer handler for 
cocoon:/picto-filter.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler
Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
   map:generate src=context://WEB-INF/workflow.xconf/
   map:transform src=stylesheets/picto-filter-generator.xsl/
   map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
   ...
   map:transform src=cocoon:/picto-filter.xsl/
   map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!


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

(without the / before picto) ?

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


--
Olivier BILLARD
Service Propriété Industrielle
__
JOUVE
12, rue des Landelles
Immeuble Hercules II
35510 CESSON-SEVIGNE
FRANCE
__
Phone  : 33 2 99 86 93 55
Fax: 33 2 99 86 98 01
E-Mail : [EMAIL PROTECTED]
__
Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque 
nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous 
recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.

The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated 
in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the 
email and any documents it might contain. Thank you for your cooperation.

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


Re: Howto use a generated stylesheet

2003-07-01 Thread Upayavira
Check out:

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

Regards, Upayavira


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



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

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

 (without the / before picto) ?

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





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



RE: Howto use a generated stylesheet

2003-07-01 Thread Orson Davis
The stylesheet must be available before the pipeline is setup.  The setup,
configure and compose methods for each component in a pipeline is called
before the startdocument method is called.  In the case of the
org.apache.cocoon.transformation.TraxTransformer the call to the stylesheet
is made in before any XML gets generated from the generate portion of the
pipeline.  

The only way I can think to work around this is to write your own version of
the org.apache.cocoon.transformation.TraxTransformer such that the
getTransformerHandler(inputSource) is called from the startDocument.  I
modified the TraxTransformer in such a way for my application.  It could
probably be easily modified to meet your needs.

If anyone knows a more graceful way to do this, please let me know.

-Original Message-
From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Howto use a generated stylesheet




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

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

(without the / before picto) ?

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

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



RE: Howto use a generated stylesheet

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

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

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



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



RE: Howto use a generated stylesheet

2003-07-01 Thread Orson Davis
Sadly, for my application no.  I am breaking all the rules and having the
xml determine which stylesheet I want to use. :-(  It is a legacy app and
that was the easiest way to update it from cocoon 1.8.1 to cocoon 2.0.4

-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Howto use a generated stylesheet


On 1 Jul 2003 at 9:19, Orson Davis wrote:

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

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



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

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



RE: Howto use a generated stylesheet

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

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

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

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

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

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

Regards, Upayavira


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



Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Upayavira !

Unfortunately, using the http:// protocol isn't very portable...
Con and StephenNg were able to use the cocoon protocol... I'll ask them.
I'm using the CVS version of cocoon.

Thanks again...

--

Olivier

Upayavira wrote:

Check out:

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

Regards, Upayavira

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


Olivier Billard a écrit :

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and
I get this error :
org.apache.cocoon.ProcessingException: Unable to get transformer
handler for cocoon:/picto-filter.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler
Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
   map:generate src=context://WEB-INF/workflow.xconf/
   map:transform
   src=stylesheets/picto-filter-generator.xsl/
   map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
   ...
   map:transform src=cocoon:/picto-filter.xsl/
   map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!
Did youb try  : 
map:transform src=cocoon:picto-filter.xsl/

(without the / before picto) ?

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





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


--
Olivier BILLARD
Service Propriété Industrielle
__
JOUVE
12, rue des Landelles
Immeuble Hercules II
35510 CESSON-SEVIGNE
FRANCE
__
Phone  : 33 2 99 86 93 55
Fax: 33 2 99 86 98 01
E-Mail : [EMAIL PROTECTED]
__
Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque 
nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous 
recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.

The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated 
in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the 
email and any documents it might contain. Thank you for your cooperation.

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


Re: Howto use a generated stylesheet

2003-07-01 Thread Joerg Heinicke
Hello Olivier,

your sitemap looks absolutely ok and I can't spot any error. We did such 
things too and everything works without any problems. No http:// needed, 
nothing with wrong order of initialization of components.

Olivier Billard wrote:
Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I 
get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for cocoon:/picto-filter.xsl:
This error message lets me guess you are using XSLTC - there is no tool 
reporting errors better than this one ;-) Try to use Xalan in the pipeline 
that uses the generated XSLT. Or try to request picto-filter.xsl directly in 
the browser and have a look on it, maybe there is an error in it. You can 
also save this generated XSLT to disk and try the transformation statically.

org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
map:generate src=context://WEB-INF/workflow.xconf/
map:transform src=stylesheets/picto-filter-generator.xsl/
map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
...
map:transform src=cocoon:/picto-filter.xsl/
here: map:transform type=xalan src=cocoon:/picto-filter.xsl/

map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!
Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Howto use a generated stylesheet

2003-07-01 Thread Olivier Billard
Thanks Joerg for your answer,

It is in fact an error in my xsl, as I wrote on Cocoon-dev...
I'm very happy to see that the cocoon protocol works fine with transformers...
I'm now looking for the solution of the next problem (there is always a next problem... ;))

Thanks again !!

--
Olivier
Joerg Heinicke wrote:

Hello Olivier,

your sitemap looks absolutely ok and I can't spot any error. We did such 
things too and everything works without any problems. No http:// needed, 
nothing with wrong order of initialization of components.

Olivier Billard wrote:

Hi all !

I'm trying to use a generated stylesheet for an xsl transformer and I 
get this error :

org.apache.cocoon.ProcessingException: Unable to get transformer 
handler for cocoon:/picto-filter.xsl:


This error message lets me guess you are using XSLTC - there is no tool 
reporting errors better than this one ;-) Try to use Xalan in the 
pipeline that uses the generated XSLT. Or try to request 
picto-filter.xsl directly in the browser and have a look on it, maybe 
there is an error in it. You can also save this generated XSLT to disk 
and try the transformation statically.

org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler

Here is a snippet of my sitemap :

map:match pattern=picto-filter.xsl
map:generate src=context://WEB-INF/workflow.xconf/
map:transform src=stylesheets/picto-filter-generator.xsl/
map:serialize type=xml/
/map:match
...

map:match pattern=requestlist-part
...
map:transform src=cocoon:/picto-filter.xsl/


here: map:transform type=xalan src=cocoon:/picto-filter.xsl/

map:serialize type=xml/
/map:match
Isn't the cocoon protocol used in transformers ??
Am I misunderstanding some things ?
Thanks in advance !!


Regards,

Joerg



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