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: [EMAIL PROTECTED]
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to