oXygen-6.1 xml:base woes

docbook-dtd-4.5b1 docbook-xsl-1.69.1 jdk-1.5.0_4, kubuntu-5.04 oXygen-6.1 saxon-6.5.4 Consider the following: <sect1 xmlns:xi="&w3XInclude;" xml:base=""> ... ... <mediaobject> <imageobject> <imagedata fileref="figures/foo.gif"/> </imageobject> </mediaobject> ... ... </sect1> generates the following html: ... ... <div class="mediaobject"> <img src="file:/home/raymond/docbook/foo/file:/home/raymond/docbook/foo/figures/foo.gif"> </div> ... ... Why is the image path not relative and duplicated? Thought xml:base="" as a document root attribute would implement relative paths, but this time to no avail. Note, xml:base="" works CORRECTLY in oXygen-6.0. Is this an issue with saxon-6.5.4 ? If so, what is the process to utilize saxon-6.5.3 in oXygen-6.1 ? Help please, this issue is breaking my current project !!! Raymond

Hello Raymond, We will look into this.. Meantime, you can replace the saxon.jar file from the lib directory (in the oXygen install dir) with the saxon.jar file from the Saxon 6.5.3 distribution. Best regards, Dan Raymond wrote:
docbook-dtd-4.5b1 docbook-xsl-1.69.1 jdk-1.5.0_4, kubuntu-5.04 oXygen-6.1 saxon-6.5.4
Consider the following:
<sect1 xmlns:xi="&w3XInclude;" xml:base=""> ... ... <mediaobject> <imageobject> <imagedata fileref="figures/foo.gif"/> </imageobject> </mediaobject> ... ... </sect1>
generates the following html:
... ... <div class="mediaobject"> <img src="file:/home/raymond/docbook/foo/file:/home/raymond/docbook/foo/figures/foo.gif"> </div> ... ...
Why is the image path not relative and duplicated?
Thought xml:base="" as a document root attribute would implement relative paths, but this time to no avail.
Note, xml:base="" works CORRECTLY in oXygen-6.0.
Is this an issue with saxon-6.5.4 ?
If so, what is the process to utilize saxon-6.5.3 in oXygen-6.1 ?
Help please, this issue is breaking my current project !!!
Raymond _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Meantime, you can replace the saxon.jar file from the lib directory (in the oXygen install dir) with the saxon.jar file from the Saxon 6.5.3 distribution.
Attempted that, problem persists. After much testing, current fix is to utilize xml:base="foo" Seems an xml:base placeholder will result in correct relative img src paths for html transformations. Don't know how that will affect pdf and rtf transformations. Very strange. Raymond

Hello Raymond, I tried your <sect1> fragment with <oXygen/> 6.1, Java 1.5.0_04 and I get <div class="mediaobject"> <img src="figures/foo.gif"> </div> Please post a complete XML document that shows the error when I try it with <oXygen/> 6.1. Best regards, Sorin Raymond wrote:
Meantime, you can replace the saxon.jar file from the lib directory (in the oXygen install dir) with the saxon.jar file from the Saxon 6.5.3 distribution.
Attempted that, problem persists. After much testing, current fix is to utilize xml:base="foo"
Seems an xml:base placeholder will result in correct relative img src paths for html transformations.
Don't know how that will affect pdf and rtf transformations.
Very strange.
Raymond _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I tried your <sect1> fragment with <oXygen/> 6.1, Java 1.5.0_04 and I get
<div class="mediaobject"> <img src="figures/foo.gif"> </div>
May have neglected to mention that the problem only occurs when the document is xinclude'd from another. Otherwise, works fine. I also chunk everything. I utilize extensive xincludes so I did not detect the relationship until I isolated a document that was not called from an xinclude. In 6.0, the same condition would occur but the xml:base="" attribute/value in every document root element would rectify the img src path mangling. xml:base="" no longer functions in 6.1; but xml:base="foo" does. Hope this helps. Raymond

Located the fix: Preferences | XML | XML Parser Options | Base URI Fixup Should be unchecked for xinclude'd files Raymond
participants (3)
-
Dan Caprioara
-
Raymond
-
Sorin Ristache