Reading p:log output

Consider this pipeline[1]:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:br="http://example.org/br/"
                name="main">

   <p:input port="source">
     <p:inline>
       <br:someDocument>
	 <br:someContent/>
       </br:someDocument>
     </p:inline>
   </p:input>

   <p:output port="result">
     <p:pipe step="lastStep" port="result"/>
   </p:output>

    <p:identity>
      <p:log port="result" href="malformedLogOutput.xml"/>
    </p:identity>

    <p:identity name="lastStep">
      <p:input port="source">
        <p:document href="malformedLogOutput.xml"/>
      </p:input>
    </p:identity>

</p:declare-step>

Whether this works or not is, at best, implementation dependent, I
think. Do we want to say anything more about it?


                                        Be seeing you,
                                          norm

[1] http://code.google.com/p/xmlcalabash/issues/detail?id=40

-- 
Norman Walsh <ndw@nwalsh.com> | The last act is bloody, however fine
http://nwalsh.com/            | the rest of the play. They throw earth
                              | over your head and it is finished for
                              | ever.-- Pascal

Received on Tuesday, 10 March 2009 11:57:28 UTC