RE: 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?

As for myself, I think we cover this case well enough. But to make
things really clear, we could consider making it more explicit in 5.5
(p:log) that the output of p:log is not only implementation-defined, but
it *may also not be XML at all*.

Another thing: the output of p:log may not be retrievable at all - for
instance when you use some kind of a 'write-only' service that just
stores some records somewhere. You can log to /dev/null as well.

Regards,
Vojtech

Received on Tuesday, 10 March 2009 12:34:29 UTC