Use Case 5.15 Pipeline

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 UTC