W3C home > Mailing lists > Public > www-dom-ts@w3.org > June 2007

build problem caused by xmlns validation

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Fri, 29 Jun 2007 15:18:38 +0200
To: www-dom-ts@w3.org
Message-ID: <op.tuopxcwda3v5gv@hr-opera.oslo.opera.com>

I checked out the DOM test suites from the W3 CVS today - don't know how  
actively updated they are but at least my version should be current ;) -  
but the build invoked with

ant dom2-core-gen-jsunit

fails with this error message:

The prefix "xml" cannot be bound to any namespace other than its usual  
namespace; neither can the namespace for "xml" be bound to any prefix  
other than "xml".

D:\testsuites\w3.org\2001\DOM-Test-Suite\build.xml:1530: Could not  
validate document  

Caused by the xmlns:ns0 in demo code like the following:

<p>Returns the UTF-32 offset corresponding to a UTF-16 offset. Used for  
random access. To find the UTF-32 length of a string, use:<eg  
ns0:space="preserve">len32 = findOffset32(source, source.length());</eg>

I can fix this by changing all (3) instances to e.g.


But perhaps it could be fixed at source?
Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
Opera - simply the best Internet experience
Received on Friday, 29 June 2007 13:16:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:08 UTC