</xsl:choose>
</xsl:template>
-<xsl:template name="is.graphic.format">
- <xsl:param name="format"></xsl:param>
- <xsl:if test="$format = 'PNG'
- or $format = 'JPG'
- or $format = 'JPEG'
- or $format = 'linespecific'
- or $format = 'GIF'
- or $format = 'GIF87a'
- or $format = 'GIF89a'
- or $format = 'BMP'">1</xsl:if>
-</xsl:template>
-
-<xsl:template name="is.graphic.extension">
- <xsl:param name="ext"></xsl:param>
- <xsl:if test="$ext = 'png'
- or $ext = 'jpeg'
- or $ext = 'jpg'
- or $ext = 'avi'
- or $ext = 'mpg'
- or $ext = 'mpeg'
- or $ext = 'qt'
- or $ext = 'gif'
- or $ext = 'bmp'">1</xsl:if>
-</xsl:template>
-
<xsl:template name="mediaobject.filename">
<xsl:param name="object"></xsl:param>
******************************************************************** -->
-<xsl:template match="screenshot">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
-</xsl:template>
-
-<xsl:template match="screeninfo">
-</xsl:template>
-
<!-- ==================================================================== -->
-<!-- Override these templates for FO -->
+<!-- Graphic format tests for the FO backend -->
<!--
FIXME: make is.graphic.* work correctly depending on the backend!
<!-- ==================================================================== -->
+<xsl:template match="screenshot">
+ <fo:block>
+ <xsl:apply-templates/>
+ </fo:block>
+</xsl:template>
+
+<xsl:template match="screeninfo">
+</xsl:template>
+
+<!-- ==================================================================== -->
+<!-- Override these templates for FO -->
+<!-- ==================================================================== -->
+
<xsl:template name="process.image">
<!-- When this template is called, the current node should be -->
<!-- a graphic, inlinegraphic, imagedata, or videodata. All -->
<lxslt:component prefix="xtext"
elements="insertfile"/>
+<!-- ==================================================================== -->
+<!-- Graphic format tests for the HTML backend -->
+
+<xsl:template name="is.graphic.format">
+ <xsl:param name="format"></xsl:param>
+ <xsl:if test="$format = 'PNG'
+ or $format = 'JPG'
+ or $format = 'JPEG'
+ or $format = 'linespecific'
+ or $format = 'GIF'
+ or $format = 'GIF87a'
+ or $format = 'GIF89a'
+ or $format = 'BMP'">1</xsl:if>
+</xsl:template>
+
+<xsl:template name="is.graphic.extension">
+ <xsl:param name="ext"></xsl:param>
+ <xsl:if test="$ext = 'png'
+ or $ext = 'jpeg'
+ or $ext = 'jpg'
+ or $ext = 'avi'
+ or $ext = 'mpg'
+ or $ext = 'mpeg'
+ or $ext = 'qt'
+ or $ext = 'gif'
+ or $ext = 'bmp'">1</xsl:if>
+</xsl:template>
+
<!-- ==================================================================== -->
<xsl:template match="screenshot">