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

Use Case 5.32 Pipeline

From: Alex Milowski <alex@milowski.com>
Date: Wed, 23 May 2012 11:45:49 -0700
Message-ID: <CABp3FNLVgN3cpzRpHci1ty8QXk096ZPuagpeCdtFpOS+nHP2rQ@mail.gmail.com>
To: XProc WG <public-xml-processing-model-wg@w3.org>
Rather than make a very complicated example, this one just
demonstrates how you'd start with a p:choose that wraps what you want
to do (output <green/> in this case) if p:xquery is available.

<?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:output port="result"/>
        <p:when test="p:step-available('p:xquery')">
                <p:input port="source">
                <p:input port="source">

--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:46:19 UTC

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