Re: [xml] sgi regression failure



On Thu, Feb 23, 2006 at 10:56:20AM -0700, Martin Cole wrote:
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:

  I doubt it's platform specific. Did you tried on Linux ?

  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) );


  the code ain't a standalone application, I won't try it.

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

  no it's completely unrelated, and fixed in CVS.

Any suggestions for where I should go from here?

  Your code may just not work.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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