Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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. <!DOCTYPE test SYSTEM "dom3.dtd">
  17. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="typeinfogettypenamespace01">
  18. <metadata>
  19. <title>typeinfogettypenamespace01</title>
  20. <creator>IBM</creator>
  21. <description>
  22.         The typeNamespace attribute states the namespace of a type declared for the associated element or
  23.         attribute, or null if unknown.
  24.  
  25.         Invoke getSchemaTypeInfo method on an attribute having [type definition] property.  Expose
  26.         {name} and {target namespace} properties of the [type definition] property.
  27.         Verify that the typeNamespace of the attrib1 and attrib3's schemaTypeInfo are correct.
  28. </description>
  29. <contributor>Jenny Hsu</contributor>
  30. <date qualifier="created">2003-10-31</date>
  31. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#TypeInfo-typeNamespace"/>
  32. </metadata>
  33.  
  34. <implementationAttribute name="schemaValidating" value="true"/>
  35. <implementationAttribute name="validating" value="true"/>
  36. <implementationAttribute name="namespaceAware" value="true"/>
  37. <var name="doc" type="Document"/>
  38. <var name="elemList" type="NodeList"/>
  39. <var name="acElem" type="Element"/>
  40. <var name="titleAttr" type="Attr"/>
  41. <var name="attrTypeInfo" type="TypeInfo"/>
  42. <var name="typeNamespace" type="DOMString"/>
  43. <load var="doc" href="hc_staff" willBeModified="false"/>
  44. <getElementsByTagName var="elemList" obj="doc" tagname='"acronym"' interface="Document"/>
  45. <item var="acElem" obj="elemList" index="0" interface="NodeList"/>
  46. <getAttributeNode var="titleAttr" obj="acElem" name='"title"'/>
  47. <schemaTypeInfo var="attrTypeInfo" obj="titleAttr" interface="Attr"/>
  48. <typeNamespace var="typeNamespace" obj="attrTypeInfo"/>
  49. <assertEquals expected='"http://www.w3.org/2001/XMLSchema"' actual="typeNamespace" id="typeinfogettypename01_1" ignoreCase="false"/>
  50. </test>
  51.