diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-09-09 08:55:14 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-09-09 08:55:14 +0000 |
commit | c1fe047a4d7b6890809ba4ce2e25f290c5d11962 (patch) | |
tree | df8ae9fb1adbe06584916a01634ed4148f07c913 /stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl | |
parent | e7477591dd2a1302aadec48724cb070850caebee (diff) |
Merged r8368 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8369 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl index 4e94fec5c..c2973762a 100644 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl @@ -375,9 +375,11 @@ </xsl:otherwise> </xsl:choose> </xsl:when> - <xsl:otherwise> - <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" - href="{$filename}"/> + <xsl:otherwise> + <xsl:message terminate="yes"> + <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> + <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> + </xsl:message> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -494,9 +496,11 @@ </xsl:choose> </xsl:when> <xsl:otherwise> - <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" - href="{$filename}"/> - </xsl:otherwise> + <xsl:message terminate="yes"> + <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> + <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> + </xsl:message> + </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> @@ -532,6 +536,7 @@ </xsl:template> <xsl:template match="textdata"> + <xsl:variable name="vendor" select="system-property('xsl:vendor')"/> <xsl:variable name="filename"> <xsl:choose> <xsl:when test="@entityref"> @@ -564,16 +569,19 @@ <xsl:when test="element-available('xtext:insertfile')"> <xtext:insertfile href="{$filename}"/> </xsl:when> - <xsl:otherwise> - <xsl:message terminate="yes"> - <xsl:text>No insertfile extension available.</xsl:text> - </xsl:message> - </xsl:otherwise> + <xsl:otherwise> + <xsl:message terminate="yes"> + <xsl:text>Don't know how to insert files with </xsl:text> + <xsl:value-of select="$vendor"/> + </xsl:message> + </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> - <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" - href="{$filename}"/> + <xsl:message terminate="yes"> + <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> + <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> + </xsl:message> </xsl:otherwise> </xsl:choose> </xsl:template> |