To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=22012





------- Additional comments from [EMAIL PROTECTED] Mon Apr 21 15:57:12 +0000 
2008 -------
just added this lines

                        <xsl:when test="self::draw:image[office:binary-data]">
                                
<xsl:text>data:image/*;base64,</xsl:text><xsl:value-of
select="office:binary-data"/>
                        </xsl:when>

into named template "create-href" in export/common/body.xsl - look like it work
just fine (see odt&html attachment)

here modified template
 
        <xsl:template name="create-href">
                <xsl:param name="href"/>

                <xsl:choose>
                        <!-- internal OOo URL used in content tables -->
                        <xsl:when test="contains($href, '%7Coutline')">
                                <!-- the simple workaround for content tables 
in a single document is to
create create an anchor from every heading element
                                         work-around downside: Multiple 
identical headings won't refer always to
the first.
                                -->
                                <xsl:text>#</xsl:text>
                                <xsl:variable name="title">
                                        <xsl:apply-templates 
mode="concatenate"/>
                                </xsl:variable>

                                <xsl:value-of select="translate($title, '.,;: 
%()[]/\+', '_____________')"/>
                        </xsl:when>
                        <xsl:when test="self::draw:image[office:binary-data]">
                                
<xsl:text>data:image/*;base64,</xsl:text><xsl:value-of
select="office:binary-data"/>
                        </xsl:when>
                        <xsl:otherwise>
                                <xsl:choose>
                                         <!-- in case of packed open office 
document -->
                                        <xsl:when 
test="starts-with($sourceBaseURL, 'jar:') or $isPackageFormat">
                                                <xsl:choose>
                                                         <!-- for images 
relative to open office document -->
                                                        <xsl:when 
test="starts-with($href, '../')">
                                                                <!-- creating 
an absolute http URL to the packed image file (removing
the '.')-->
                                                                <xsl:value-of
select="concat(substring-after(substring-before($sourceBaseURL, '!'), 'jar:'),
'/', $href, $optionalURLSuffix)"/>
                                                        </xsl:when>
                                                         <!-- for absolute URLs 
& absolute paths -->
                                                        <xsl:when 
test="contains($href, ':') or starts-with($href, '/')">
                                                                <xsl:value-of 
select="concat($href, $optionalURLSuffix)"/>
                                                        </xsl:when>
                                                        <!-- for images jared 
in open office document -->
                                                        <xsl:otherwise>
                                                                <xsl:value-of 
select="concat($sourceBaseURL, $href, $optionalURLSuffix)"/>
                                                        </xsl:otherwise>
                                                </xsl:choose>
                                        </xsl:when>
                                        <xsl:otherwise>
                                                <xsl:choose>
                                                         <!-- for absolute URLs 
& Paths -->
                                                        <xsl:when 
test="contains($href, ':') or starts-with($href, '/')">
                                                                <xsl:value-of 
select="concat($href, $optionalURLSuffix)"/>
                                                        </xsl:when>
                                                         <!-- for relative URLs 
-->
                                                        <xsl:otherwise>
                                                                <xsl:value-of 
select="concat($sourceBaseURL, $href, $optionalURLSuffix)"/>
                                                        </xsl:otherwise>
                                                </xsl:choose>
                                        </xsl:otherwise>
                                </xsl:choose>
                        </xsl:otherwise>
                </xsl:choose>

        </xsl:template>

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to