XF11 TestSuite Submission Headers

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 UTC