W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

Influencing namespace declaration in HTTP PUT

From: Paul Hermans <paul@proxml.be>
Date: Mon, 12 Apr 2010 16:36:41 +0200 (CEST)
Message-ID: <70cb21381ff3fb32921cb3b8db35cc4b.squirrel@mail.proxml.be>
To: xproc-dev@w3.org
Following XProc doing a HTTP PUT

<?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:http-request omit-xml-declaration="false" encoding="UTF-8">
        <p:input port="source">
            <p:inline>
                <c:request
href="http://localhost:8888/exist/rest/db/fruits/Almonds.xml"
method="PUT">
                    <c:body content-type="application/xml" >
                        <product>
                            <category>fruits</category>
                            <item>Almonds</item>
                            <inventory>
                                <sku>AlmofruiIV75Lm</sku>
                                <price>0.75</price>
                                <inventory>915</inventory>
                            </inventory>
                            <vendor>TriCounty Produce</vendor>
                        </product>
                    </c:body>
                </c:request>
            </p:inline>
        </p:input>
    </p:http-request>
</p:declare-step>

leads to following PUTTED file using Calabash.
(PUT is not yet? supported by Calumet)

<product xmlns:c="http://www.w3.org/ns/xproc-step">
    <category>fruits</category>
    <item>Almonds</item>
    <inventory>
        <sku>AlmofruiIV75Lm</sku>
        <price>0.75</price>
        <inventory>915</inventory>
    </inventory>
    <vendor>TriCounty Produce</vendor>
</product>

Is there a way to exclude the xproc-step namespace declaration from the file?


-- 
Kind Regards,
Paul Hermans
Received on Monday, 12 April 2010 14:37:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 April 2010 14:37:28 GMT