cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
Subject Re: [RT] Views for readers
Date Thu, 14 Aug 2003 13:34:12 GMT
Le Jeudi, 14 aoû 2003, à 15:24 Europe/Zurich, Sylvain Wallez a écrit :

> ...But what if we write it the other way around :
> <map:read src="docs/{1}.doc">
>  <map:generate src="docs/{1}.doc" type="wordToXml" label="content"/>
> </map:read>

I find this more understandable (but dunno about implementation):

<!-- if reader is executed, the rest is not -->
<map:read src="docs/{1}.doc" unless-view="wordToXml"/>
<map:generate src="docs/{1}.doc" type="wordToXml"/>
<map:transform...

-Bertrand


Mime
View raw message