W3C home > Mailing lists > Public > www-forms@w3.org > February 2009

XF11 TestSuite Submission Headers

From: Lars Windauer <windauer@gmail.com>
Date: Fri, 6 Feb 2009 15:46:23 +0100
Message-ID: <22eee69a0902060646o5674f006r973e2ea4435bf6f4@mail.gmail.com>
To: www-forms@w3.org
Cc: "Nick_Van_den_Bleeken@inventivegroup.com" <Nick_Van_den_Bleeken@inventivegroup.com>

Hi list,

I got a question regarding the XForms Submission Header Element. The
expected result of test 11.8.b shall be three headers named 'myHeader'
and I guess one contains the value 'one' the next 'two'.. While test
11.8.c expects only one Header 'myHeader' containing the value
'myValue1,myValue2, myValue1,myValue2,myValue3,myValue4,myValue4'. Are
both tests valid (hope not!)? Do I have to create for each header
value a single header or do I concat all values for the same header
name together?

Some light in the dark would be great ;o) Thanks in advance

Lars


Samples taken from the XForms 1.1 Conformance Test Suite:

11.8.b
    	<xforms:instance>
    		<data>
    			<value>one</value>
    			<value>two</value>
    			<value>three</value>
    		</data>
    	</xforms:instance>
    	<xforms:submission id="sub1" method="post"
action="http://xformstest.org/cgi-bin/echo.sh">
    	  <xforms:header nodeset="/data/value">
    	    <xforms:name>myHeader</xforms:name>
    	    <xforms:value value="."></xforms:value>
    	  </xforms:header>
    	</xforms:submission

11.8.c
    	<xforms:instance>
    		<data>
    			<value>one</value>
    			<value>two</value>
    		</data>
    	</xforms:instance>
    	<xforms:submission id="sub1" method="post"
action="http://xformstest.org/cgi-bin/echo.sh">
    	  <xforms:header nodeset="/data/value">
    	    <xforms:name>myHeader</xforms:name>
    	    <xforms:value>myValue1</xforms:value>
    	    <xforms:value>myValue2</xforms:value>
    	  </xforms:header>
    	  <xforms:header>
    	    <xforms:name>myHeader</xforms:name>
    	    <xforms:value>myValue3</xforms:value>
    	  </xforms:header>
    	  <xforms:header nodeset="/data/value">
    	    <xforms:name>myHeader</xforms:name>
    	    <xforms:value>myValue4</xforms:value>
    	  </xforms:header>
    	</xforms:submission>

-- 
Twitter: http://twitter.com/windauer
Skype:   windauer
Jabber: windauer@gmail.com
Received on Friday, 6 February 2009 22:54:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:15 GMT