W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

result-document() and XProc secondaries

From: David <david@davidpriest.ca>
Date: Fri, 10 Dec 2010 17:00:25 -0800
Message-ID: <4D02CD29.6010308@davidpriest.ca>
To: xproc-dev@w3.org
Is there any reason to believe that the XProc below would error-out with 
an XD0001 (non-XML resource)?  When the self-same XSLT transformation is 
run through Saxon, it correctly produces the files through its 
result-document() statements.

How can I discover exactly what is being received by the p:store 
statement?  If I could only see the (presumably non-XML) data, I'd have 
a much better clue as to what the problem is.

<?xml version="1.0"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0" 
name="bootstrap">
<p:xslt name="extract_literate_programs" version="2.0">
<p:input port="source">
<p:document href="bootstrap_literate_xml.xml"/>
</p:input>
<p:input port="stylesheet">
<p:document href="bootstrap_tangle.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:sink/>
<p:for-each>
<p:iteration-source>
<p:pipe step="extract_literate_programs" port="secondary"/>
</p:iteration-source>
<p:store>
<p:with-option name="href" select="concat('src-',p:iteration-position())"/>
</p:store>
<p:identity/>
</p:for-each>
</p:declare-step>
Received on Saturday, 11 December 2010 01:00:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 11 December 2010 01:00:56 GMT