p:data and p:load

I think p:load [1] is somewhat limited in a lot of scenarios where its
desired to load non-xml data into xproc

for example the following would obviously throw an error

<p:load href="http://search.twitter.com/search.json?q=xquery"/>

as we are not dealing with xml data ... which forces the developer to
use something like a p:identity in conjunction with p:data [2]

<p:identity>
<p:input port="source">
  <p:data href="http://search.twitter.com/search.json?q=xquery"/>
</p:input>
</p:identity>

p:data is a lot more sophisticated in terms of handling non xml data
and I was wondering if it would be worth harmonising p:load
which could result in us adopting p:data attributes as p:option (and
implicit wrapping behavior) or redefining the step with a non primary
input port
which uses p:data ?

Jim Fuller

[1] p:load http://www.w3.org/TR/xproc/#err.inline.C0027
[2] p:data http://www.w3.org/TR/xproc/#p.data

Received on Saturday, 23 July 2011 19:36:31 UTC