|
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="typeinfoisderivedfrom65"> |
|
18 <metadata> |
|
19 <title>typeinfoisderivedfrom65</title> |
|
20 <creator>IBM</creator> |
|
21 <description> |
|
22 The isDerivedFrom method checks if this TypeInfo derives from the specified ancestor type. |
|
23 |
|
24 Get schemaTypeInfo on a simple type attribute that belongs to a document with an XML schema. |
|
25 Invoke method isDerivedFrom with derivation method list and verify that the value returned is true. |
|
26 </description> |
|
27 <contributor>Jenny Hsu</contributor> |
|
28 <date qualifier="created">2003-10-31</date> |
|
29 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#TypeInfo-isDerivedFrom"/> |
|
30 </metadata> |
|
31 |
|
32 <implementationAttribute name="schemaValidating" value="true"/> |
|
33 <var name="doc" type="Document"/> |
|
34 <var name="docElem" type="Element"/> |
|
35 <var name="elemTypeInfo" type="Element"/> |
|
36 <var name="elemList" type="NodeList"/> |
|
37 <var name="strongElem" type="Element"/> |
|
38 <var name="attrTypeInfo" type="TypeInfo"/> |
|
39 <var name="typeName" type="DOMString"/> |
|
40 <var name="retValue" type="boolean"/> |
|
41 <load var="doc" href="hc_staff" willBeModified="false"/> |
|
42 <getElementsByTagName var="elemList" obj="doc" tagname='"strong"' interface="Document"/> |
|
43 <item var="strongElem" obj="elemList" index="0" interface="NodeList"/> |
|
44 <schemaTypeInfo var="elemTypeInfo" obj="strongElem" interface="Element"/> |
|
45 <isDerivedFrom obj="elemTypeInfo" var="retValue" typeNamespaceArg='"http://www.w3.org/2001/XMLSchema"' typeNameArg='"string"' derivationMethod="8"/> |
|
46 <assertTrue actual="retValue" id="lisrDerivedFromString" /> |
|
47 </test> |