|
1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> |
|
2 <!-- |
|
3 Copyright (c) 2001-2004 World Wide Web Consortium, |
|
4 (Massachusetts Institute of Technology, Institut National de |
|
5 Recherche en Informatique et en Automatique, Keio University). All |
|
6 Rights Reserved. This program is distributed under the W3C's Software |
|
7 Intellectual Property License. This program is distributed in the |
|
8 hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
|
9 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
10 PURPOSE. |
|
11 |
|
12 See W3C License http://www.w3.org/Consortium/Legal/ for more details. |
|
13 |
|
14 --> |
|
15 |
|
16 |
|
17 <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="typeinfoisderivedfrom64"> |
|
18 <metadata> |
|
19 <title>typeinfoisderivedfrom64</title> |
|
20 <creator>IBM</creator> |
|
21 <description> |
|
22 Check that the simpleType of an attributes derives by restriction from itself |
|
23 and from its base type. |
|
24 </description> |
|
25 <contributor>Jenny Hsu</contributor> |
|
26 <date qualifier="created">2003-10-31</date> |
|
27 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#TypeInfo-isDerivedFrom"/> |
|
28 </metadata> |
|
29 |
|
30 <implementationAttribute name="schemaValidating" value="true"/> |
|
31 <var name="doc" type="Document"/> |
|
32 <var name="docElem" type="Element"/> |
|
33 <var name="elemList" type="NodeList"/> |
|
34 <var name="acElem" type="Element"/> |
|
35 <var name="classAttr" type="Attr"/> |
|
36 <var name="attrTypeInfo" type="TypeInfo"/> |
|
37 <var name="typeName" type="DOMString"/> |
|
38 <var name="retValue" type="boolean"/> |
|
39 <load var="doc" href="hc_staff" willBeModified="false"/> |
|
40 <getElementsByTagName var="elemList" obj="doc" tagname='"acronym"' interface="Document"/> |
|
41 <item var="acElem" obj="elemList" index="1" interface="NodeList"/> |
|
42 <getAttributeNode var="classAttr" obj="acElem" name='"class"'/> |
|
43 <schemaTypeInfo var="attrTypeInfo" obj="classAttr" interface="Attr"/> |
|
44 <isDerivedFrom obj="attrTypeInfo" var="retValue" typeNamespaceArg='"http://www.w3.org/1999/xhtml"' typeNameArg='"classType"' derivationMethod="1"/> |
|
45 <assertTrue actual="retValue" id="derivedFromClassType" /> |
|
46 <isDerivedFrom obj="attrTypeInfo" var="retValue" typeNamespaceArg='"http://www.w3.org/2001/XMLSchema"' typeNameArg='"string"' derivationMethod="1"/> |
|
47 <assertTrue actual="retValue" id="derivedFromString" /> |
|
48 </test> |