view _test/Resources/test.schema @ 10:63f6653b094e

DOM
author Sergey
date Fri, 28 Aug 2009 16:26:20 +0400
parents 5899df8c289e
children 955b2324c1bf
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<schema>
    <!-- Загрузка фрагмента схемы -->
    <Include src="basic.types.schema"/>
    
    <ComplexNode nodeName="Form">
        <NodeSet>
            <SimpleNode nodeName="FirstName">
                <Regexp>\w+</Regexp>
            </SimpleNode>
            <SimpleNode nodeName="LastName">
                <Regexp>\w+</Regexp>
            </SimpleNode>
            <Node nodeName="BirthDate" type="DateTime" />
            <Node nodeName="Email" type="Email" minOccur="0" maxOccur="unbounded" />
            <ComplexNode nodeName="AviaTicket" minOccur="0">
                <Node nodeName="From" type="Airport" control="ListBox" datasource="Airports"/>
                <Node nodeName="To" type="Airport" >
                    <Check op='!=' LVal='nodeValue' RVal="From.nodeValue"/>
                </Node>
            </ComplexNode>
        </NodeSet>
    </ComplexNode>
    <Type typeName="DateTime" deriveFrom="SimpleNode">
        <Regexp>\d{4}-\d{2}-\d{2}((T|\s)\d{2}\:\d{2}:\d{2})?</Regexp>
    </Type>
</schema>