Debian Codegraph @

xsl/graphic.xsl

raw
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <!--############################################################################
5 XSLT Stylesheet DocBook -> LaTeX
6 ############################################################################ -->
7
8 <xsl:template match="screenshot">
9 <xsl:if test="not(parent::figure)">
10 <xsl:call-template name="figure.begin"/>
11 </xsl:if>
12 <xsl:apply-templates/>
13 <xsl:if test="not(parent::figure)">
14 <xsl:call-template name="figure.end"/>
15 </xsl:if>
16 </xsl:template>
17
18 <xsl:template match="screeninfo"/>
19
20 <xsl:template match="inlinegraphic|graphic">
21 <xsl:choose>
22 <xsl:when test="$imagedata.file.check='1'">
23 <xsl:variable name="filename">
24 <xsl:apply-templates select="." mode="filename.get"/>
25 </xsl:variable>
26 <xsl:text>\imgexists{</xsl:text>
27 <xsl:value-of select="$filename"/>
28 <xsl:text>}{</xsl:text>
29 <xsl:call-template name="imagedata"/>
30 <xsl:text>}{[</xsl:text>
31 <xsl:call-template name="scape">
32 <xsl:with-param name="string" select="$filename"/>
33 </xsl:call-template>
34 <xsl:text> not found]}</xsl:text>
35 </xsl:when>
36 <xsl:otherwise>
37 <xsl:call-template name="imagedata"/>
38 </xsl:otherwise>
39 </xsl:choose>
40 </xsl:template>
41
42 </xsl:stylesheet>