cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier GUCKERT <Olivier.Guck...@inria.fr>
Subject Re: How can i define my pipeline to open .doc , .pdf
Date Wed, 18 Dec 2002 08:36:26 GMT
Hello

"Sreenivasan N." a écrit :
> 
> Hi all
> 
> I have got some word documents, pdf documents, excel documents which are
> there in doc, pdf, xls folders i would like to define a pipeline which can
> open the document in cocoon. Does <map:read> slove the problem? What mime
> type i should define for it example "application/msword "
> 
> Thanks in advance
> Regards
> Sreenivasan.

just try :

<map:match pattern="ressources-*.doc">
	<map:read mime-type="application/msword" src="Ressources/{1}.doc"/>
</map:match>
<map:match pattern="ressources-*.xls">
	<map:read mime-type="application/vnd.ms-excel"
src="Ressources/{1}.xls"/>
</map:match>

Regards

Olivier Guckert

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