Hi Stavros.
Here are my pipelines for using xsl generated through Cocoon:
<map:match pattern="try">
    <map:generate src="ub/violations.html"/>
    <map:transform type="xslt-saxon" src="cocoon://generateXsl"/>
    <map:serialize type="xml"/>
</map:match>
<map:match pattern="generateXsl">
    <map:generate src="ub/test.html"/>
    <map:transform type="xslt-saxon" src="ub/generateXSL.xsl"/>
    <map:serialize type="xml"/>
</map:match>

In pipeline generateXsl I use dummy html for generator, because for some
reason, if I try to write instead:
<map:match pattern="generateXsl">
    <map:generate src="ub/generateXSL.xsl"/>
    <map:serialize type="xml"/>
</map:match>

then what I get calling cocoon/try is the stylesheet generateXSL (exactly as
if I was just calling cocoon/generateXsl) - I don't understand this, but
maybe someone more experienced than me on this list can explain it to us.
But maybe you should also use dummy html/xml in generator?

BTW, now I posted a message about creating some more complicated stylesheets
through Cocoon, because when I try to create some more complicated xsl, I
get an error. But for some simple xsl it works fine for me, so check both
your pipelines and your xsl.

Good luck.
Anna

----- Original Message -----
From: "Cocoon User" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 12:03 PM
Subject: Re: xsl through pipeline [NOT supported???]




hi anna thnx for your reply
i try this very simple sample before go on .... and i dont get
the result i want. it very strange to be any problem in .xsl becaus its
very simple.

is it possible to send me a snapshot of your sitemap where your .xsl pass
(and generated) through a pipeline?


stavros

i u want to contact me directly use: [EMAIL PROTECTED]


On Mon, 23 Dec 2002, Anna Afonchenko wrote:

> Cocoon definitely supports using transformer that is itself generated by
> some pipeline. At least, it works for me.
> Maybe you have some problems in your xsl?
>
> ----- Original Message -----
> From: "Cocoon User" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, December 23, 2002 1:58 AM
> Subject: xsl through pipeline [NOT supported???]
>
>
> i try to transform a .xml using a .xsl that will be generated using a
> pipeline
>
>
> in my sitemap i have
>
>
> <map:match pattern="myXML">
> <map:generate src="./myxml.xml"/>
> <map:transform src="./myxsl.xsl"/>
> <map:serialize type="xml"/>
> </map:match>
>
>
> <map:match pattern="myXMLagain">
> <map:generate src="myxml.xml"/>
> <map:transform src="cocoon:/getXSL"/>
> <map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="getXSL">
> <map:generate src="./myxsl.xsl"/>
> <map:serialize type="xml"/>
> </map:match>
>
>
> ------------------
> this is a very simple example
> (there is no transformation in getXSL, if this work i will try to produce
> the .xsl)
>
> when i call http://..../myXML i get the results i wait for
> when i call http://..../getXSL i see in my browser my xsl file (in xml
> format)
>
>
> but .... whet i call
> http://..../myXMLagain i dont get any error msg but i dont get any results
> it seems like cocoon just ignore [<map:transform src="cocoon:/getXSL"/>]
> line os get an empty xsl.
>
>
> maybe this is something that cocoon not support or something else ?
>
>
> i try to produce dynamic the xsl file. i want users be able to describe
> xsl's files using a simple xml.
>
>
>
> thnx
>
> stavros kounis
>
>
> ---------------------------------------------------------------------
> 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]>


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

Reply via email to