W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2009

Why does this pipeline output two c:param-sets?

From: Costello, Roger L. <costello@mitre.org>
Date: Sat, 27 Jun 2009 08:06:13 -0400
To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500400458C21@IMCMBX3.MITRE.ORG>

Hi Folks,

This pipeline outputs the content of the parameter input port:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                name="myPipeline">
    
    <p:input port="parameters" kind="parameter">
        <p:inline>
            <c:param-set>
                <c:param name="Title" value="First and Last Freedom" />
                <c:param name="Author" value="J. Krishnamurti" />
                <c:param name="Date" value="1954" />
                <c:param name="ISBN" value="0-06-064831-7" />
                <c:param name="Publisher" value="Harper &amp; Row" />
            </c:param-set>
        </p:inline>
    </p:input>
    
    <p:output port="result" sequence="true" />

    <p:identity>
        <p:input port="source">
            <p:pipe step="myPipeline" port="parameters" />
        </p:input>
    </p:identity>

</p:declare-step>

Surprisingly, I get as output two <c:param-set> elements:

<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step">
     <c:param name="Title" value="First and Last Freedom"/>
     <c:param name="Author" value="J. Krishnamurti"/>
     <c:param name="Date" value="1954"/>
     <c:param name="ISBN" value="0-06-064831-7"/>
     <c:param name="Publisher" value="Harper &amp; Row"/>
</c:param-set>
<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step"/>

I don't understand why I get that second <c:param-set> element. Would you explain this please?

/Roger
Received on Saturday, 27 June 2009 12:06:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 27 June 2009 12:06:52 GMT