Re: [xslt] Win2K,xsltproc ignores catalog



On Mon, 17 Feb 2003, Daniel Veillard wrote:
> Could you also check this http://bugzilla.gnome.org/show_bug.cgi?id=105994 ?

  Just tested, the man is right. One and the same document is being parsed
and an identical tree is being built several times, if the document is being
referenced from multiple places, with different relative URIs.
  This affects all platforms. xmlDoc.URL must always be converted to an
absolute URI, so that the hash table can identify identical resources and
reuse the allready parsed trees.
  I think the best would be if I would make a general facility, say

   xmlChar* xmlURIFromPath(const char *path)

and put it in uri.c. Then I'll modify the function startDocument in SAX.c to
make use of it when constructing the xmlDoc.URL. That would indeed make the
function xmlNormalizeWindowsPath obsolete.
  I'll hack this, post the results and commit if it passes regression tests
on Linux.

Ciao,
Igor



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