Hello Chris,
It works for me with oXygen 7.2 and Saxon 6.5.5. If I use the default
value 1 for keep.relative.image.uris the value of the graphic/@fileref
attribute present in the DocBook source document is preserved as the
value of img/@src in the XHTML result. If I set keep.relative.image.uris
to 0 and one of the ancestors of graphic/@fileref has an xml:base
attribute then the value of the xml:base attribute of the topmost
ancestor with this attribute is used as base URL to resolve the
graphic/@fileref value. The resolved path is placed in img/@src in the
XHTML result as with the default value of keep.relative.image.uris. If
there is no ancestor with an xml:base attribute then the
graphic/@fileref value is preserved. This algorithm is executed by the
template called "relative-uri" in
[oXygen-frameworks-folder]/docbook/xsl/common/common.xsl. This is true
for both the oXygen standalone distribution and the Eclipse plugin one.
Regards,
Sorin
Chris Chiasson wrote:
Hi, I have a stylesheet customization layer that sets the
keep.relative.image.uris parameter to zero. (therfore, they are
resolved against xml:base)
I verified that the customization layer works by using xsltproc (I
have it on the Samba server that hosts my Windows files) on the xml
source files and xsl customization layer (and yes, the xml catalog on
the server points to docbook-xsl 1.70.1 as the current release).
xsltproc --xinclude -o Engineering_Optimization.xhtml
~/.xml/alpha/xhtml.xsl Engineering_Optimization.xml
When I transform with oXygen 7.2 and saxon 6.5.5 using the same
customization layer (by placing file:/Z:/.xml/alpha/xhtml.xsl in the
XSL url field), the file comes out ok, with the exception that the
uris have not taken xml:base into account, so they don't point to the
correct folder (and thus the images don't show in Firefox).
I have tried setting the parameter keep.relative.image.uris to 0
inside oXygen, which doesn't work either.
I created my transformation by cloning the DocBook HTML one and
editing it to point to my xsl layer along with outputting to
${cfn}.xhtml.
I am going to go download the regular Eclipse distribution instead of
the Eclipse + Web Platform Tools distribution. If that fixes it, then
I'll post to this thread again.
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user