W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2006

Re: Use Case 5.29: Large Document Subtree Iteration

From: Alex Milowski <alex@milowski.org>
Date: Mon, 10 Jul 2006 12:14:12 -0700
Message-ID: <44B2A704.1050908@milowski.org>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
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.

<p:pipeline xmlns:p='http://www.w3.org/2006/XProc'
         xsi:schemaLocation='http://www.w3.org/2006/XProc pipeline.xsd'

    <p:input name="large-doc"/>
    <p:output name="result" from="final"/>

    <p:for-each select="section" over="large-doc" to="iteration">
       <!-- 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" from="transformed"/>
       <p:step kind="p:xmlbase">
          <p:input name="input" from="iteration"/>
          <p:output name="based"/>
       <p:step kind="p:xinclude">
          <p:input name="input" from="based"/>
          <p:output name="included"/>
       <p:step kind="p:xslt">
          <p:input name="input" from="included"/>
          <p:input name="stylesheet" href="section2xhtml.xsl"/>
          <p:output name="transformed"/>


--Alex Milowski

Received on Monday, 10 July 2006 19:14:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:40 UTC