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

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

From: Stefanie Haupt <st.haupt@gmail.com>
Date: Wed, 02 Dec 2009 16:12:34 +0100
To: xproc-dev@w3.org
Message-Id: <1259766754.4297.147.camel@stefanie-laptop>
Thanks Vojtech,

I added the attribute-value-pair method="get" to the c:result elements
and removed it from the http-request call inside the loop. Now I know
why the pipe broke: there was a line break inside the arguments for
html-tidy. 

The pipe now works - almost - as I expect, except for the characters of
the read files. Using a single solution with p:data in connection with
tidy produces correctly encoded data, but with p:http-request I don't
seem to be able to get more than:

<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
ZWFkPgo8dGl0bGU
+R0NOPC90aXRsZT4KPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBj
b250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9aXNvLTg4NTktMSI
+CjxsaW5rIHJlbD0ic3R5bGVz
aGVldCIgaHJlZj0iaHR0cDovL3d3dy5tYWc2NC5kZS90ZXN0LmNzcyIgdHlwZT0idGV4dC9jc3Mi
PgoKPC9oZWFkPgo8Ym9keSBtYXJnaW53aWR0aD0iMCIgbWFyZ2luaGVpZ2h0PSIwIiBsZWZ0bWFy (....)

I tried adding arguments for character-encoding inside the tidy-args but
they are not reflected when using http-request.

Any help appreciated!

Kind regards,
Stefanie


-- 
Stefanie Haupt
Received on Wednesday, 2 December 2009 15:13:09 GMT

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