Bertrand Delacretaz wrote:
> 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...
Interesting. This is looks like a more compact notation for the
view-selector I was thinking of at first. We're leaving the RT world...
But shouldn't we keep labels that are already used into pipelines ? E.g :
<map:read src="docs/{1}.doc" label="raw, xdoc"/>
<map:generate src="docs/{1}.doc" type="word2xml" label="raw"/>
<map:transform src="xword2xdoc.xsl" label="xdoc"/>
The "label" on the reader would skip the reader if the requested view
corresponds to one of these labels. Now should this be named "label" or
"unless-label" ?
Ah, and this is very easily implementable ;-)
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance - http://www.orixo.com
|