You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oskar Casquero <jt...@bi.ehu.es> on 2002/10/24 21:27:33 UTC
pipeline problem
Hello,
Is it possible to call a pipeline, that returns SAX events representing an stylesheet, from the "src" attribute of a <map:transform> element? I'm trying to do it in the following pipeline but it doesn't work.
<map:match pattern="schematronValidationResponse">
<map:generate type="stream">
<map:parameter name="form-name" value="document"/>
</map:generate>
<map:transform src="cocoon:/schematron2compiledSchematron"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="schematron2compiledSchematron">
<map:generate src="schemas/berta.xsd"/>
<map:transform src="stylesheets/schematron.xsl"/>
<map:transform src="stylesheets/skeleton1-5.xsl"/>
</map:match>
Oskar
Re: pipeline problem
Posted by Oskar Casquero <jt...@bi.ehu.es>.
Finally I've found the problem in one of my own stylesheets. The protocol
"cocoon:/" inside the "src" attribute of the <map:transform> elements works
well on cocoon-2.1-dev
Oskar
----- Original Message -----
From: "Omar Tazi" <ot...@orbeon.com>
To: <co...@xml.apache.org>
Sent: Wednesday, October 30, 2002 6:38 PM
Subject: Re: pipeline problem
> If you are interested in XML Pipelines and XML transformation, check
> out: http://www.orbeon.com/oxf/whitepaper.xhtml
>
> Regards,
>
> -ot
>
> Jeremy Quinn wrote:
> >
> > Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly
this.
> >
> > regards Jeremy
> >
> > On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:
> >
> >> Hello,
> >>
> >> Is it possible to call a pipeline, that returns SAX events
> >> representing an stylesheet, from the "src" attribute of a
> >> <map:transform> element? I'm trying to do it in the following pipeline
> >> but it doesn't work.
> >>
> >> <map:match pattern="schematronValidationResponse">
> >>
> >> <map:generate type="stream">
> >>
> >> <map:parameter name="form-name" value="document"/>
> >>
> >> </map:generate>
> >>
> >> <map:transform src="cocoon:/schematron2compiledSchematron"/>
> >>
> >> <map:serialize type="xml"/>
> >>
> >> </map:match>
> >>
> >>
> >>
> >> <map:match pattern="schematron2compiledSchematron">
> >>
> >> <map:generate src="schemas/berta.xsd"/>
> >>
> >> <map:transform src="stylesheets/schematron.xsl"/>
> >>
> >> <map:transform src="stylesheets/skeleton1-5.xsl"/>
> >>
> >> </map:match>
> >>
> >> Oskar
> >>
> >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: pipeline problem
Posted by Omar Tazi <ot...@orbeon.com>.
If you are interested in XML Pipelines and XML transformation, check
out: http://www.orbeon.com/oxf/whitepaper.xhtml
Regards,
-ot
Jeremy Quinn wrote:
>
> Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly this.
>
> regards Jeremy
>
> On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:
>
>> Hello,
>>
>> Is it possible to call a pipeline, that returns SAX events
>> representing an stylesheet, from the "src" attribute of a
>> <map:transform> element? I'm trying to do it in the following pipeline
>> but it doesn't work.
>>
>> <map:match pattern="schematronValidationResponse">
>>
>> <map:generate type="stream">
>>
>> <map:parameter name="form-name" value="document"/>
>>
>> </map:generate>
>>
>> <map:transform src="cocoon:/schematron2compiledSchematron"/>
>>
>> <map:serialize type="xml"/>
>>
>> </map:match>
>>
>>
>>
>> <map:match pattern="schematron2compiledSchematron">
>>
>> <map:generate src="schemas/berta.xsd"/>
>>
>> <map:transform src="stylesheets/schematron.xsl"/>
>>
>> <map:transform src="stylesheets/skeleton1-5.xsl"/>
>>
>> </map:match>
>>
>> Oskar
>>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: pipeline problem
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
Have a look at the 'editor' sample in Cocoon 2.1.dev, it does exactly
this.
regards Jeremy
On Thursday, Oct 24, 2002, at 20:27 Europe/London, Oskar Casquero wrote:
> Hello,
>
> Is it possible to call a pipeline, that returns SAX events
> representing an stylesheet, from the "src" attribute of a
> <map:transform> element? I'm trying to do it in the following pipeline
> but it doesn't work.
>
> <map:match pattern="schematronValidationResponse">
>
> <map:generate type="stream">
>
> <map:parameter name="form-name" value="document"/>
>
> </map:generate>
>
> <map:transform src="cocoon:/schematron2compiledSchematron"/>
>
> <map:serialize type="xml"/>
>
> </map:match>
>
>
>
> <map:match pattern="schematron2compiledSchematron">
>
> <map:generate src="schemas/berta.xsd"/>
>
> <map:transform src="stylesheets/schematron.xsl"/>
>
> <map:transform src="stylesheets/skeleton1-5.xsl"/>
>
> </map:match>
>
> Oskar
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: pipeline problem
Posted by Conal Tuohy <co...@paradise.net.nz>.
Yes Oskar this is possible. In Cocoon 2.02 it was possible to do exactly as
you describe, I believe, but something has broken since then; now you must
refer to the xsl using the http protocol, e.g.
<map:match pattern="schematronValidationResponse">
<map:generate type="stream">
<map:parameter name="form-name" value="document"/>
</map:generate>
<map:transform src="http://localhost/schematron2compiledSchematron"/>
<map:serialize type="xml"/>
</map:match>
See http://outerthought.net/wiki/Wiki.jsp?page=MetaStylesheets for more
information.
¡Buena suerte!
Con
-----Original Message-----
From: Oskar Casquero [mailto:jtacaoio@bi.ehu.es]
Sent: Friday, 25 October 2002 08:28
To: cocoon-users@xml.apache.org
Subject: pipeline problem
Hello,
Is it possible to call a pipeline, that returns SAX events representing an
stylesheet, from the "src" attribute of a <map:transform> element? I'm
trying to do it in the following pipeline but it doesn't work.
<map:match pattern="schematronValidationResponse">
<map:generate type="stream">
<map:parameter name="form-name" value="document"/>
</map:generate>
<map:transform src="cocoon:/schematron2compiledSchematron"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="schematron2compiledSchematron">
<map:generate src="schemas/berta.xsd"/>
<map:transform src="stylesheets/schematron.xsl"/>
<map:transform src="stylesheets/skeleton1-5.xsl"/>
</map:match>
Oskar
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>