Test case ibm-valid-P56-ibm56v05.xml: com.bluecast.xml.Piccolo Passed

Test case ibm-valid-P56-ibm56v05.xml: com.bluecast.xml.Piccolo Passed

Tests TokenizedType for P56 VC: One ID per element type. The element "a" or "b" has only one ID attribute.

<?xml  version="1.0"?>
<!-- validity constraint check for Production 56(positive Test)-->
<!DOCTYPE tokenizer
 [
 <!ELEMENT tokenizer ANY>
 <!ELEMENT a EMPTY>
 <!ELEMENT b EMPTY>
 <!ATTLIST a first ID #REQUIRED>
 <!ATTLIST b second ID #REQUIRED>
 ]>
<tokenizer>
<a first = "AC1999"></a>
<b second = "CD345"></b>
This is a positive validity test for ID.
any element type has no more than one attribute of type ID specified
</tokenizer>
Expected resultActual result for com.bluecast.xml.Piccolo
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>tokenizer</localName>
        <qualifiedName>tokenizer</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>first</localName>
                <qualifiedName>first</qualifiedName>
                <value>AC1999</value>
                <type>ID</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>second</localName>
                <qualifiedName>second</qualifiedName>
                <value>CD345</value>
                <type>ID</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>T</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>p</char>
    <char>o</char>
    <char>s</char>
    <char>i</char>
    <char>t</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>i</char>
    <char>d</char>
    <char>i</char>
    <char>t</char>
    <char>y</char>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\s</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>\s</char>
    <char>I</char>
    <char>D</char>
    <char>.</char>
    <char>\n</char>
    <char>a</char>
    <char>n</char>
    <char>y</char>
    <char>\s</char>
    <char>e</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>h</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>\s</char>
    <char>m</char>
    <char>o</char>
    <char>r</char>
    <char>e</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>a</char>
    <char>n</char>
    <char>\s</char>
    <char>o</char>
    <char>n</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>t</char>
    <char>t</char>
    <char>r</char>
    <char>i</char>
    <char>b</char>
    <char>u</char>
    <char>t</char>
    <char>e</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>I</char>
    <char>D</char>
    <char>\s</char>
    <char>s</char>
    <char>p</char>
    <char>e</char>
    <char>c</char>
    <char>i</char>
    <char>f</char>
    <char>i</char>
    <char>e</char>
    <char>d</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>tokenizer</localName>
        <qualifiedName>tokenizer</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>tokenizer</localName>
        <qualifiedName>tokenizer</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>first</localName>
                <qualifiedName>first</qualifiedName>
                <value>AC1999</value>
                <type>ID</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <char>\n</char>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes>
            <attribute>
                <namespaceURI/>
                <localName>second</localName>
                <qualifiedName>second</qualifiedName>
                <value>CD345</value>
                <type>ID</type>
            </attribute>
        </attributes>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>T</char>
    <char>h</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>i</char>
    <char>s</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>p</char>
    <char>o</char>
    <char>s</char>
    <char>i</char>
    <char>t</char>
    <char>i</char>
    <char>v</char>
    <char>e</char>
    <char>\s</char>
    <char>v</char>
    <char>a</char>
    <char>l</char>
    <char>i</char>
    <char>d</char>
    <char>i</char>
    <char>t</char>
    <char>y</char>
    <char>\s</char>
    <char>t</char>
    <char>e</char>
    <char>s</char>
    <char>t</char>
    <char>\s</char>
    <char>f</char>
    <char>o</char>
    <char>r</char>
    <char>\s</char>
    <char>I</char>
    <char>D</char>
    <char>.</char>
    <char>\n</char>
    <char>a</char>
    <char>n</char>
    <char>y</char>
    <char>\s</char>
    <char>e</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>h</char>
    <char>a</char>
    <char>s</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>\s</char>
    <char>m</char>
    <char>o</char>
    <char>r</char>
    <char>e</char>
    <char>\s</char>
    <char>t</char>
    <char>h</char>
    <char>a</char>
    <char>n</char>
    <char>\s</char>
    <char>o</char>
    <char>n</char>
    <char>e</char>
    <char>\s</char>
    <char>a</char>
    <char>t</char>
    <char>t</char>
    <char>r</char>
    <char>i</char>
    <char>b</char>
    <char>u</char>
    <char>t</char>
    <char>e</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>t</char>
    <char>y</char>
    <char>p</char>
    <char>e</char>
    <char>\s</char>
    <char>I</char>
    <char>D</char>
    <char>\s</char>
    <char>s</char>
    <char>p</char>
    <char>e</char>
    <char>c</char>
    <char>i</char>
    <char>f</char>
    <char>i</char>
    <char>e</char>
    <char>d</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>tokenizer</localName>
        <qualifiedName>tokenizer</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>