- From: Alex Milowski <alex@milowski.org>
- Date: Mon, 10 Jul 2006 12:28:21 -0700
- To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
- Message-ID: <44B2AA55.3040500@milowski.org>
Alex Milowski wrote:
> Alex Milowski wrote:
>> The use case is here:
>>
>> http://www.w3.org/TR/xproc-requirements/#use-case-large-document-transform
>>
>
> I've updated this example to remove the use of the 'pipe' element.
>
> The schema is the same.
Spoke too soon.
You need to specify the output for the p:for-each for the pipeline but
specify what replaces the element for the inner steps.
Attached is a tweak to the schema and pipeline.
<p:pipeline xmlns:p='http://www.w3.org/2006/XProc'
xmlns:c='http://www.w3.org/2006/XProc/Components'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.w3.org/2006/XProc pipeline.xsd'
xmlns:xhtml='http://www.w3.org/1999/xhtml'
xmlns:t="http://www.smallx.com/Vocabulary/Services/Tideinfo/2005/1/0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<p:input name="large-doc"/>
<p:output name="result" from="final"/>
<p:for-each select="section" over="large-doc" to="iteration"
replacement="transformed">
<!-- input isn't needed here because this "for-each" has
to iterate over elements. The input is identified by
the 'over' attribute and the binding for each result
element is specified by the 'to' attribute. -->
<p:output name="final"/>
<p:step kind="p:xmlbase">
<p:input name="input" from="iteration"/>
<p:output name="based"/>
</p:step>
<p:step kind="p:xinclude">
<p:input name="input" from="based"/>
<p:output name="included"/>
</p:step>
<p:step kind="p:xslt">
<p:input name="input" from="included"/>
<p:input name="stylesheet" href="section2xhtml.xsl"/>
<p:output name="transformed"/>
</p:step>
</p:for-each>
</p:pipeline>
--Alex Milowski
Attachments
- text/xml attachment: pipeline.xsd
- text/xml attachment: use-case-5-29.xml
Received on Monday, 10 July 2006 19:28:30 UTC