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

Re: Why can't I specify input and output document?

From: Dave Pawson <dave.pawson@gmail.com>
Date: Sun, 7 Dec 2008 16:18:22 +0000
Message-ID: <711a73df0812070818r690a7bf7g958c2b485529c760@mail.gmail.com>
To: "XProc Dev" <xproc-dev@w3.org>

2008/12/7 Norman Walsh <ndw@nwalsh.com>:
> "Dave Pawson" <dave.pawson@gmail.com> writes:
>> <?xml version="1.0"?>
>> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
>>  <p:input port="source" primary='true'>
>>    <p:document href="doc.xml"/>
>>  </p:input>
>>  <p:output port='result'>
>>    <p:document href="op.xml"/>
>>  </p:output>
>>  <p:identity/>
>> </p:declare-step>
>>
>> I want to define a pipe with both input and output files specified by the pipe.
>
> That's not what p:output is for. You want this:
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
>  <p:input port="source" primary='true'>
>   <p:document href="doc.xml"/>
>  </p:input>
>  <p:identity/>
>  <p:store href="op.xml"/>
> </p:declare-step>


I understand that now Norm.
IMHO the CR is quite unclear on this difference between
p:input/p:document  and p:output/p:document.


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
Received on Sunday, 7 December 2008 16:19:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 7 December 2008 16:19:00 GMT