cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: How to switch to another resource if one resource is not available?
Date Tue, 30 Jul 2002 15:32:29 GMT
> > That's very interesting. I don't recall ever seeing 'peer' <map:act>
> > elements in the various sample sitemaps, only nested <map:act>
> elements.
> > 
> > Does that also mean that one could do the following to selectively
> read from
> > an existing file or apply transforms?
> > 
> > <map:match pattern="*.fragment">
> >   <!-- If the file is static, return it now -->
> >   <map:act type="resource-exists">
> >     <map:parameter name="url" value="{1}.fragment" />
> >     <map:read ... />
> >   </map:act>
> > 
> >   <!-- Choose a source -->
> >   <map:generate src="{1}.xml">
> > 
> >   <!-- If XSLT of same name exists, use it otherwise skip it -->
> >   <map:act type="resource-exists">
> >     <map:parameter name="url" value="{1}.xsl" />
> >     <map:transform src="{../1}.xsl" />
> >   </map:act>
> >   <map:serialize />
> > </map:match>
> 
> Yes.
> 
> See lint.xmap

I don't see it in 2.0.3, is lint.xmap a 2.1 file? Will it work under 2.0.3?

Per




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message