W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2011

Re: The XProc Quine

From: Florent Georges <fgeorges@fgeorges.org>
Date: Fri, 12 Aug 2011 11:14:06 +0200
Message-ID: <CADyR_r1rd+TGZFuo7SUUrVwbo2Rm0p_XcDrXsxp0Nt=3DOfGvQ@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: George Cristian Bina <george@oxygenxml.com>, vojtech.toman@emc.com, XProc Dev <xproc-dev@w3.org>
On 12 August 2011 10:36, mozer wrote:

  Hi,

> Vojtech just proposed a nice one

> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
>  <p:output port="result"/>
>  <p:identity>
>    <p:input port="source">
>      <p:document href=""/>
>    </p:input>
>  </p:identity>
> </p:declare-step>

  Excellent.  By using the appropriate shortcuts, we can even
reduce it further:

    <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
     <p:identity>
      <p:input port="source"><p:document href=""/></p:input>
     </p:identity>
    </p:pipeline>

  Regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Friday, 12 August 2011 09:14:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 12 August 2011 09:14:54 GMT