W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2009

Re: (p:data) / p:http-request in p:for-each

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 2 Dec 2009 16:25:18 +0100
Message-ID: <ebaca5bf0912020725g71088607k48160463518374bb@mail.gmail.com>
To: Stefanie Haupt <st.haupt@gmail.com>
Cc: xproc-dev@w3.org
2009/12/2 Stefanie Haupt wrote:

  Hi,

> <c:result>
>   <html>
>      <head>
>         <meta name="generator"
>               content="HTML Tidy for Linux/x86 (vers 7 December 2008),
>see www.w3.org"/>
>         <title/>
>      </head>
>      <body>
>PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgU3RyaWN0Ly9FTiIK
>ICAgICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi9odG1sNC9zdHJpY3QuZHRkIj4KPGh0bWw
>+Cjxo

  When you use HTTP, the server sends back the type of the
result, in the HTTP header Content-Type.  But when using the
file: scheme, there no such thing.  So you have to use the
c:request/@override-content-type to set explicitely the type of
the file:

    <c:request ... override-content-type="text/html">
       ...

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Wednesday, 2 December 2009 15:25:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 December 2009 15:25:49 GMT