trunk/resources/tests/dom3/Core/infoset05.xml
changeset 0 5057afe1ec87
equal deleted inserted replaced
-1:000000000000 0:5057afe1ec87
       
     1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
       
     2 
       
     3 <!--
       
     4 
       
     5 Copyright (c) 2004 World Wide Web Consortium, 
       
     6 (Massachusetts Institute of Technology, Institut National de
       
     7 Recherche en Informatique et en Automatique, Keio University).  All 
       
     8 Rights Reserved.  This program is distributed under the W3C's Software
       
     9 Intellectual Property License.  This program is distributed in the 
       
    10 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
       
    11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
       
    12 PURPOSE.  
       
    13 
       
    14 See W3C License http://www.w3.org/Consortium/Legal/ for more details.
       
    15 
       
    16 -->
       
    17 
       
    18 
       
    19 <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="infoset05">
       
    20 <metadata>
       
    21 <title>infoset05</title>
       
    22 <creator>Curt Arnold</creator>
       
    23 <description>
       
    24 Normalize document with infoset set to true, check that
       
    25 namespace declaration attributes are maintained.
       
    26 </description>
       
    27 <date qualifier="created">2004-02-25</date>
       
    28 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Document3-normalizeDocument"/>
       
    29 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#parameter-infoset"/>
       
    30 </metadata>
       
    31 <implementationAttribute name="namespaceAware" value="true"/>
       
    32 <var name="doc" type="Document"/>
       
    33 <var name="docElem" type="Element"/>
       
    34 <var name="domConfig" type="DOMConfiguration"/>
       
    35 <var name="errorMonitor" type="DOMErrorMonitor"/>
       
    36 <var name="xmlnsAttr" type="Attr"/>
       
    37 <load var="doc" href="barfoo" willBeModified="true"/>
       
    38 <domConfig obj="doc" var="domConfig" interface="Document"/>
       
    39 <setParameter obj="domConfig" name='"infoset"' value="true"/>
       
    40 <setParameter obj="domConfig" name='"error-handler"' value="errorMonitor"/>
       
    41 <normalizeDocument obj="doc"/>
       
    42 <!--  fail test if normalize had any errors or fatal errors   -->
       
    43 <assertLowerSeverity obj="errorMonitor" id="normalizeError" severity="SEVERITY_ERROR"/>
       
    44 <documentElement var="docElem" obj="doc"/>
       
    45 <getAttributeNode var="xmlnsAttr" obj="docElem" name='"xmlns"'/>
       
    46 <assertNotNull actual="xmlnsAttr" id="xmlnsAttrNotNull"/>
       
    47 </test> 
       
    48  
       
    49