Re: The XProc Quine

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 UTC