Saxon 9.6.0.3j base URI behavior is still different

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Saxon 9.6.0.3j base URI behavior is still different

Norman Walsh
Hi,

If you run the base URI test program that I sent privately with Saxon
9.6.0.2j, you'll see these results:

<doc xml:base="http://example.com/base/">
  <chap xml:base="http://example.com/base/chaps/">
      <para>…</para>
  </chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
  <chap>
      <para>…</para>
  </chap>
</doc>

doc: http://www.example.com/: 0
chap: http://www.example.com/: 0
para: http://www.example.com/: 0
BASE URI=

If you run it with 9.6.0.3j, the results are improved somewhat:

<doc xml:base="http://example.com/base/">
  <chap xml:base="http://example.com/base/chaps/">
      <para>…</para>
  </chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
  <chap>
      <para>…</para>
  </chap>
</doc>

Override base uri: http://www.example.com/
doc: http://www.example.com/: 0
Override base uri: http://www.example.com/
chap: http://www.example.com/: 0
Override base uri: http://www.example.com/
para: http://www.example.com/: 0
BASE URI=http://www.example.com/

Process finished with exit code 0

But they still don't match the results that one gets with 9.5

<doc xml:base="http://example.com/base/">
  <chap xml:base="http://example.com/base/chaps/">
      <para>…</para>
  </chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
  <chap>
      <para>…</para>
  </chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/

It appears that 96.2j doesn't populate the node base URI at all. In
96.3j, the node base URI is populated but not with the value passed to
the constructor but instead with the value of the document base URI.

Ultimately, I need the behavior of 9.5. Does that look like my bug or
yours at this point?

                                        Be seeing you,
                                          norm

--
Norman Walsh <[hidden email]> | A man can believe a considerable deal
http://nwalsh.com/            | of rubbish, and yet go about his daily
                              | work in a rational and cheerful
                              | manner.--Norman Douglas

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 

signature.asc (178 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 9.6.0.3j base URI behavior is still different

O'Neil Delpratt
Hi Norm,

I am looking at problem you reported with the base URI. Are you able to send me the project file (privately) you use for your Saxon 9.5?

I Managed to run the project you sent me on Saxon 9.5, but I had to change several files. So I would like to see the changes to made.

kind regards,

O’Neil

> On 13 Dec 2014, at 15:25, Norman Walsh <[hidden email]> wrote:
>
> Hi,
>
> If you run the base URI test program that I sent privately with Saxon
> 9.6.0.2j, you'll see these results:
>
> <doc xml:base="http://example.com/base/">
>  <chap xml:base="http://example.com/base/chaps/">
>      <para>…</para>
>  </chap>
> </doc>
>
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> BASE URI=http://example.com/base/chaps/
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> <doc>
>  <chap>
>      <para>…</para>
>  </chap>
> </doc>
>
> doc: http://www.example.com/: 0
> chap: http://www.example.com/: 0
> para: http://www.example.com/: 0
> BASE URI=
>
> If you run it with 9.6.0.3j, the results are improved somewhat:
>
> <doc xml:base="http://example.com/base/">
>  <chap xml:base="http://example.com/base/chaps/">
>      <para>…</para>
>  </chap>
> </doc>
>
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> BASE URI=http://example.com/base/chaps/
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> <doc>
>  <chap>
>      <para>…</para>
>  </chap>
> </doc>
>
> Override base uri: http://www.example.com/
> doc: http://www.example.com/: 0
> Override base uri: http://www.example.com/
> chap: http://www.example.com/: 0
> Override base uri: http://www.example.com/
> para: http://www.example.com/: 0
> BASE URI=http://www.example.com/
>
> Process finished with exit code 0
>
> But they still don't match the results that one gets with 9.5
>
> <doc xml:base="http://example.com/base/">
>  <chap xml:base="http://example.com/base/chaps/">
>      <para>…</para>
>  </chap>
> </doc>
>
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> BASE URI=http://example.com/base/chaps/
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> <doc>
>  <chap>
>      <para>…</para>
>  </chap>
> </doc>
>
> Override base uri: http://example.com/base/
> doc: http://example.com/base/: 0
> Override base uri: http://example.com/base/chaps/
> chap: http://example.com/base/chaps/: 1
> Override base uri: http://example.com/base/chaps/
> para: http://example.com/base/chaps/: 1
> BASE URI=http://example.com/base/chaps/
>
> It appears that 96.2j doesn't populate the node base URI at all. In
> 96.3j, the node base URI is populated but not with the value passed to
> the constructor but instead with the value of the document base URI.
>
> Ultimately, I need the behavior of 9.5. Does that look like my bug or
> yours at this point?
>
>                                        Be seeing you,
>                                          norm
>
> --
> Norman Walsh <[hidden email]> | A man can believe a considerable deal
> http://nwalsh.com/            | of rubbish, and yet go about his daily
>                              | work in a rational and cheerful
>                              | manner.--Norman Douglas
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: [hidden email]
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 9.6.0.3j base URI behavior is still different

O'Neil Delpratt
Hi Norm,

Please ignore my request in the previous email. I managed to find what is causing the difference in results you reported between Saxon 9.5 and 9.6.

The problem is in your your XProcLocationProvider class which implements the Saxon interface LocationProvider.

Looking at the documentation of 9.5:


And the current documentation of 9.6:



You will see a subtle change in the argument of getSystemId: type long -> type int. In your code you have both methods, probably caused by intellij code completion.


kind regards,

O'Neil 
On 15 Dec 2014, at 17:30, O'Neil Delpratt <[hidden email]> wrote:

Hi Norm,

I am looking at problem you reported with the base URI. Are you able to send me the project file (privately) you use for your Saxon 9.5?

I Managed to run the project you sent me on Saxon 9.5, but I had to change several files. So I would like to see the changes to made.

kind regards,

O’Neil

On 13 Dec 2014, at 15:25, Norman Walsh <[hidden email]> wrote:

Hi,

If you run the base URI test program that I sent privately with Saxon
9.6.0.2j, you'll see these results:

<doc xml:base="http://example.com/base/">
<chap xml:base="http://example.com/base/chaps/">
    <para>…</para>
</chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
<chap>
    <para>…</para>
</chap>
</doc>

doc: http://www.example.com/: 0
chap: http://www.example.com/: 0
para: http://www.example.com/: 0
BASE URI=

If you run it with 9.6.0.3j, the results are improved somewhat:

<doc xml:base="http://example.com/base/">
<chap xml:base="http://example.com/base/chaps/">
    <para>…</para>
</chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
<chap>
    <para>…</para>
</chap>
</doc>

Override base uri: http://www.example.com/
doc: http://www.example.com/: 0
Override base uri: http://www.example.com/
chap: http://www.example.com/: 0
Override base uri: http://www.example.com/
para: http://www.example.com/: 0
BASE URI=http://www.example.com/

Process finished with exit code 0

But they still don't match the results that one gets with 9.5

<doc xml:base="http://example.com/base/">
<chap xml:base="http://example.com/base/chaps/">
    <para>…</para>
</chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/
Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
<doc>
<chap>
    <para>…</para>
</chap>
</doc>

Override base uri: http://example.com/base/
doc: http://example.com/base/: 0
Override base uri: http://example.com/base/chaps/
chap: http://example.com/base/chaps/: 1
Override base uri: http://example.com/base/chaps/
para: http://example.com/base/chaps/: 1
BASE URI=http://example.com/base/chaps/

It appears that 96.2j doesn't populate the node base URI at all. In
96.3j, the node base URI is populated but not with the value passed to
the constructor but instead with the value of the document base URI.

Ultimately, I need the behavior of 9.5. Does that look like my bug or
yours at this point?

                                      Be seeing you,
                                        norm

--
Norman Walsh <[hidden email]> | A man can believe a considerable deal
http://nwalsh.com/            | of rubbish, and yet go about his daily
                            | work in a rational and cheerful
                            | manner.--Norman Douglas
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: [hidden email]
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: [hidden email]
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 9.6.0.3j base URI behavior is still different

Norman Walsh
In reply to this post by O'Neil Delpratt
O'Neil Delpratt <[hidden email]> writes:
> I Managed to run the project you sent me on Saxon 9.5, but I had to
> change several files. So I would like to see the changes to made.

Oh, right, I forgot about the other differences in my 9.5/9.6
branches. I'll zip them both up and send them along under private
cover.

                                        Be seeing you,
                                          norm

--
Norman Walsh <[hidden email]> | We dance around in a ring and suppose,
http://nwalsh.com/            | but the Secret sits in the middle and
                              | knows.--Robert Frost

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 

signature.asc (178 bytes) Download Attachment