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

Use Case 5.29/5.30 Pipeline

From: Alex Milowski <alex@milowski.com>
Date: Wed, 23 May 2012 11:41:40 -0700
Message-ID: <CABp3FN+TuvdwsraOKzVb=coZk4rmPL=zxMFOGGwN_e6+aWvhyg@mail.gmail.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>
In theory, a streaming pipeline engine would stream the source and the
match matter used would have to stream as well.  The
/xhtml:html/xhtml:body xpath is easily matched in a streaming

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0"
    <p:input port="source">
            <html xmlns="http://www.w3.org/1999/xhtml">
                <head><title>Test Document</title></head>
                    <div class="main">
                        <p>I can be arbitrarily large.</p>
    <p:output port="result"/>
    <p:insert position="first-child" match="/xhtml:html/xhtml:body">
        <p:input port="insertion" xmlns="http://www.w3.org/1999/xhtml">
                <ul class="navigation">
                    <li><a href="/about/">About</a></li>
                    <li><a href="/xml/">Fantastic XML Stuff</a></li>
                    <li><a href="/cats/">Pictures of Cats</a></li>

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 23 May 2012 18:42:09 UTC

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