Ok, I've modified it this way:
<xsl:template match="imagedata">
<xsl:variable name="xml.base" select="ancestor::*[@xml:base]/@xml:base"/>
<fo:block line-height="0pt" xml:base="{$xml.base}">
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:text>url('</xsl:text>
<xsl:value-of select="@fileref"/>
<xsl:text>')</xsl:text>
</xsl:attribute>
</fo:external-graphic>
</fo:block>
</xsl:template>
And it works as expected.
Sorry for that noise.
Regards,
Jan
________________________________________
From: owner-xep-support@renderx.com [owner-xep-support@renderx.com] On Behalf Of Jan Tošovský [j.tosovsky@gmc.net]
Sent: Wednesday, September 08, 2010 11:06 AM
To: xep-support@renderx.com
Subject: [xep-support] Re: XEP intermediate format - resolving xml:base problem
Sorry, I should add that it is related to
http://services.renderx.com/lists/xep-support/6225.html
And I think the problem is here:
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:text>url('</xsl:text>
<xsl:value-of select="@fileref"/>
<xsl:text>')</xsl:text>
</xsl:attribute>
</fo:external-graphic>
as this ignores xml:base.
I will have a look to docbook templates, where any mechanism how to get the proper path could be. Or maybe just to reuse the xml:base...
Sometimes I am quicker than I should...
Jan
From: Jan Tošovský
Sent: Wednesday, September 08, 2010 10:52 AM
To: xep-support@renderx.com
Subject: XEP intermediate format - resolving xml:base problem
Hello Everyone,
when generating the xep intermediate output from the document containing xincluded parts located in subfolders, I am getting errors 'Failed to create image file'. There is listed the incorrect path. It seems like the xml:base would be ignored (the file is searched one level up).
PDF outputs are Ok. I use that xep output as the workaround to get the image info for proper scaling, but in the above case that info is not retrieved correctly. I am getting info of 404.gif so my scenario fails...
Any hint? Thanks in advance.
Regards,
Jan
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Sep 8 02:51:59 2010
This archive was generated by hypermail 2.1.8 : Wed Sep 08 2010 - 02:52:00 PDT