Re: [xslt] Win2K,xsltproc ignores catalog



On Mon, Feb 17, 2003 at 08:42:28PM +0100, Igor Zlatkovic wrote:
> 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)

  okay,

> 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.

  but don't remove it, I must preserve the API/ABI, if needed augment the
comment to flag it's an obsolete call.

>   I'll hack this, post the results and commit if it passes regression tests
> on Linux.

  Okidoc !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.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]