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

Use Case 5.15 Pipeline

From: Alex Milowski <alex@milowski.com>
Date: Wed, 23 May 2012 11:23:09 -0700
Message-ID: <CABp3FN+7xwP2=euCLs78Dk-sUGifwjVUG-HfgnY4djzZHeBA9Q@mail.gmail.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>
Parsing the descriptions:

<?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" type="e:get-rss"
    xmlns:e="http://example.org/steps">
    <p:output port="result"/>
    <p:http-request>
        <p:input port="source">
            <p:inline>
                <c:request method="GET"
href="http://rss.cnn.com/rss/cnn_topstories.rss"/>
            </p:inline>
        </p:input>
    </p:http-request>
    <p:viewport match="description">
        <p:unescape-markup/>
    </p:viewport>
</p:declare-step>

Escaping the description markup:

<?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"
    xmlns:e="http://example.org/steps">
    <p:output port="result"/>
    <p:import href="use-case-5-15.xpl"/>
    <e:get-rss/>
    <p:viewport match="description">
        <p:escape-markup/>
    </p:viewport>
</p:declare-step>

-- 
--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
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 23 May 2012 18:23:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 23 May 2012 18:23:42 GMT