Luca Morandini wrote:
> Has anyone tried to make the sample code included in this article:
> Style-free XSLT,  XML.COM, Eric Van der Vlist,  (
> http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html  )
> working under cocoon 2 ?

Yes, I have a working stylefree example with cocoon2b1. Put something like 
this in your sitemap:

    <map:match pattern="1">
        <map:generate src="1/source.xml"/>
        <map:transform src="1/style.xslt"/>
        <map:serialize type="html"/>
    </map:match>
    <map:match pattern="2">
        <map:generate src="2/source.xml"/>
        <map:transform src="2/logic.xslt"/>
        <map:serialize type="html"/>
    </map:match>
    <map:match pattern="3">
        <map:generate src="3/spec_layout.xml"/>
        <map:transform src="3/logic2.xslt"/>
        <map:serialize type="html"/>
    </map:match>

The complete source is attached. It uses a subsitemap, which is mounted like this in 
your main sitemap:
<map:pipeline>
        <map:match pattern="stylefree/**">
            <map:mount uri-prefix="stylefree" src="stylefree/" check-reload="yes" 
reload-method="synchron"/>
        </map:match>
</map:pipeline>

-- 
Stefan Köhler
mailto:[EMAIL PROTECTED]

stylefree.tgz

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

Reply via email to