In my sitemap I have:

      <map:match pattern="*/*/*/*/*/*.mov">
        <map:read mime-type="video/quicktime"
          src="docs/{1}-{2}/{4}-{3}-{1}-{2}-{5}/{6}.mov"/>
      </map:match>

      <map:match pattern="*/*/*/*/*/*.pdf">
        <map:read mime-type="application/pdf"
          src="docs/{1}-{2}/{4}-{3}-{1}-{2}-{5}/{6}.pdf"/>
      </map:match>

This serves additional files related to a specific document in the specified folder, and it works perfectly for MOVs, serving them as video/quicktime.

But the PDFs are being served as text/html with a length of 1, for no reason that I can understand. There is no match pattern for PDFs in any sitemap in higher directories. The mime.types file entries for PDF in the Cocoon build (and in the /etc/mime.types) are all correct. The PDF file exists, in the correct location (same as the MOV files earlier in the document), and opens in Acrobat Reader correctly.

There is an example at http://publish.ucc.ie/journals/scenario/2008/01/retzlaff/04/en#I-4 (link "Fit for Duty" I've obviously missed something, but what?

///Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to