Re: [xml] xml:base missing on result from XInclude?

2014-10-08 Thread Daniel Veillard
On Fri, Jun 13, 2014 at 11:30:17AM +0200, Susanne Oberhauser-Hirschoff wrote: Hi, Susanne Oberhauser-Hirschoff f...@suse.com writes: Hi Susanne, Daniel, in 2003 you wrote this: https://www.sourceware.org/ml/docbook/2003-03/msg00101.html I tried to minimize the addition of xml:base

Re: [xml] xml:base missing on result from XInclude?

2014-06-13 Thread Susanne Oberhauser-Hirschoff
Hi, Susanne Oberhauser-Hirschoff f...@suse.com writes: Daniel, in 2003 you wrote this: https://www.sourceware.org/ml/docbook/2003-03/msg00101.html I tried to minimize the addition of xml:base when it could be avoided in practice (i.e. if the absence of the xml:base would not generate

Re: [xml] xml:base missing on result from XInclude?

2014-04-23 Thread Susanne Oberhauser-Hirschoff
Susanne Oberhauser-Hirschoff f...@suse.com writes: Salut Daniel, What's the use cases that do thousands of xi:includes of tiny xml fragments, rendering the current tuning necessary? If that's real I could redo a patch with an option. ok, below is a patch that adds an option

Re: [xml] xml:base missing on result from XInclude?

2014-04-22 Thread Susanne Oberhauser-Hirschoff
Hi Daniel, Alexey, Alexey Neyman sti...@att.net writes: I think I know what is causing the issue. The code in xmlXIncludeLoadDoc looks at the url argument to see if it is relative path - to do so, it looks for slashes in the path. The problem is that xmlXIncludeLoadNode() passes down URIs

Re: [xml] xml:base missing on result from XInclude?

2014-04-22 Thread Daniel Veillard
On Tue, Apr 22, 2014 at 10:11:46AM +, Susanne Oberhauser-Hirschoff wrote: Hi Daniel, Alexey, Alexey Neyman sti...@att.net writes: I think I know what is causing the issue. The code in xmlXIncludeLoadDoc looks at the url argument to see if it is relative path - to do so, it looks

Re: [xml] xml:base missing on result from XInclude?

2014-04-22 Thread Susanne Oberhauser-Hirschoff
Salut Daniel, Daniel Veillard veill...@redhat.com writes: On Tue, Apr 22, 2014 at 10:11:46AM +, Susanne Oberhauser-Hirschoff wrote: The xml:base is not just the directory, it also contains the file name, right? right but it is not needed, in that case all your files are in the

Re: [xml] xml:base missing on result from XInclude?

2013-04-08 Thread Alexey Neyman
I think I know what is causing the issue. The code in xmlXIncludeLoadDoc looks at the url argument to see if it is relative path - to do so, it looks for slashes in the path. The problem is that xmlXIncludeLoadNode() passes down URIs that are relative to the top- level document, not to the

Re: [xml] xml:base missing on result from XInclude?

2013-04-08 Thread Alexey Neyman
To further illustrate the issue, I have created a small test case - 5 XMLs included from each other. Each of the XMLs references an external file with the same base name (1.xml references 1.svg, 2.xml - 2.svg, and so on). By the specification of xml:base, it is assumed that these references