Use Case 5.29: Large Document Subtree Iteration

The use case is here:

http://www.w3.org/TR/xproc-requirements/#use-case-large-document-transform

It looks like:

<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">
       <p:output name="final"/>
       <p:pipe>
          <p:input name="iteration"/>
          <p:output name="section-transformed"/>
          <p:step kind="p:xmlbase"/>
          <p:step kind="p:xinclude"/>
          <p:step kind="p:xslt">
             <p:input name="stylesheet" href="section2xhtml.xsl"/>
          </p:step>
       </p:pipe>
    </p:for-each>

</p:pipeline>

--Alex Milowski

Received on Wednesday, 5 July 2006 20:52:36 UTC