Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-09-20 03:11:22


Vladimir Prus writes:
> Aleksey Gurtovoy wrote:
>
>> Vladimir Prus writes:
>>> I'd much prefer something like
>>>
>>> <mark-expected-failures>
>>> <test name="cmdline_test_dll"/>
>>> <test name="parsers_test_dll"/>
>>> <toolset name="cw8-3"/>
>>> <toolset name="comeau"/>
>>> </mark-expected-failures>
>>
>> Implemented in CVS now. See MPL markup section in
>> "status/explicit-failures-markup.xml" for specific examples.
>
> Thanks. However, I've noticed that all 'mark-expected-failures' elements
> must appear after all 'test' elements, otherwise
> http://apps.gotdotnet.com/xmltools/xsdvalidator/ will report validation
> error.
>
> Am I right that xs:sequence requires specific order of child elements?

Yes.

> Is there any way around it?

Sure:

    <xs:sequence>
        <xs:element ref="mark-unusable" minOccurs="0" maxOccurs="unbounded"/>
        <xs:sequence>
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="test"/>
                <xs:element ref="mark-expected-failures"/>
            </xs:choice>
        </xs:sequence>
    </xs:sequence>

Fixed in the CVS.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk