[xml] sgi regression failure



I ran into this because of a failure on this platform finding a dtd from
my catalog entry.  (works on other platforms)

I do the following and fail on this platform:


  xmlInitializeCatalog();
  xmlCatalogAdd(BAD_CAST "public", BAD_CAST "-//SCIRun/Network DTD, 
                BAD_CAST "path to the dtd file");

  /* create a parser context */
  ctxt = xmlNewParserCtxt();
  if (ctxt == 0) {
    std::cerr << "ComponentNode.cc: Failed to allocate parser context
\n";
    return -1;
  }
  /* parse the file, activating the DTD validation option */
  doc = xmlCtxtReadFile( ctxt, argv[1], 0, (XML_PARSE_DTDATTR | 
                                            XML_PARSE_DTDVALID) );



volume-rendering.srn:2: I/O error : failed to load external entity
"network.dtd"<!DOCTYPE network PUBLIC "-//SCIRun/Network DTD"
"network.dtd">
                                                               ^
volume-rendering.srn:4: validity error : Validation failed: no DTD found

So i ran the regressions (whose output follows). It looks like the
regexp xpath tests fail which is likely why validation fails.

Any suggestions for where I should go from here?

uname -a
IRIX64 muse 6.5 04100803 IP35

21 muse.sci.utah.edu: libxml2-2.6.23> make tests
## XML regression tests
## XML regression tests on memory
## XML entity subst regression tests
## XML Namespaces regression tests
## xml:id regression tests
## Error cases regression tests
## Error cases stream regression tests
## Running the API regression tests this may take a little while
Total: 1147 functions, 264263 tests, 0 errors
## Reader regression tests
## Reader on memory regression tests
## Walker regression tests
## Reader entities substitution regression tests
## SAX1 callbacks regression tests
## SAX2 callbacks regression tests
## XML push regression tests
## HTML regression tests
## Push HTML regression tests
## HTML SAX regression tests
## Push HTML SAX regression tests
## Valid documents regression tests
## Validity checking regression tests
## General documents valid regression tests
## URI module regression tests
## Pattern regression tests
## XPath regression tests
## XPointer regression tests
## XInclude regression tests
## XInclude xmlReader regression tests
## C14N and XPath regression tests
## Scripts regression tests
## Some of the base computations may be different if srcdir != .
## Catalog regression tests
## Add and del operations on XML Catalogs
## Regexp regression tests
xpath result
7c7 < a/b/c: Ok --- > a/b/c: Fail 9,11c9,11 < a:*/b:*/c:*: Ok <
child::a/child::b:*: Ok < child::a/child::b:*|a/*/b|.//a:b: Ok --- >
a:*/b:*/c:*: Fail > child::a/child::b:*: Fail > child::a/child::b:*|
a/*/b|.//a:b: Fail
## Formal expresssions regression tests
## Automata regression tests
## Schemas regression tests
## Relax-NG regression tests
## Relax-NG streaming regression tests
## Schematron regression tests
## Threaded regression tests
## generating dba100000.xml
## Timing tests to try to detect performance
## as well a memory usage breakage when streaming
## 1/ using the file interface
## 2/ using the memory interface
## 3/ repeated DOM parsing
## 4/ repeated DOM validation
Parsing took 4541 ms
Parsing took 4503 ms
100 iterations took 6239 ms
100 iterations took 12999 ms
## Module tests
Success!
## examples regression tests
*** Error code 1 (bu21)
*** Error code 1 (bu21)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]