2 <!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
3 <!--#############################################################################
4 | $Id: graphic.mod.xsl,v 1.5 2004/01/02 07:25:45 j-devenish Exp $
5 |- #############################################################################
6 | $Author: j-devenish $
7 + ############################################################################## -->
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
11 exclude-result-prefixes="doc" version='1.0'>
13 <doc:reference id="graphic" xmlns="">
15 <releaseinfo role="meta">
16 $Id: graphic.mod.xsl,v 1.5 2004/01/02 07:25:45 j-devenish Exp $
23 <year>2000</year><year>2001</year><year>2002</year><year>2003</year><year>2004</year>
24 <holder>Ramon Casellas</holder>
27 <doc:revision rcasver="1.12">&rev_2003_05;</doc:revision>
30 <title>Graphics <filename>graphic.mod.xsl</filename></title>
40 <doc:template xmlns="">
41 <refpurpose>Process <doc:db>screenshot</doc:db> elements</refpurpose>
51 <xsl:template match="screenshot">
52 <xsl:apply-templates/>
55 <doc:template xmlns="">
56 <refpurpose>Process <doc:db>screeninfo</doc:db> elements</refpurpose>
66 <xsl:template match="screeninfo"/>
68 <doc:template xmlns="">
69 <refpurpose>Process <doc:db>graphic</doc:db> elements</refpurpose>
72 Formats a graphic as a paragraph.
80 <listitem><simpara><xref linkend="template.inlinegraphic"/></simpara></listitem>
84 <xsl:template match="graphic">
85 <xsl:text> </xsl:text>
86 <xsl:call-template name="inlinegraphic"/>
87 <xsl:text> </xsl:text>
90 <doc:template xmlns="">
91 <refpurpose>Process <doc:db>inlinegraphic</doc:db> elements</refpurpose>
94 Calls &LaTeX; <function
95 condition="latex">includegraphics</function>
96 with the value of <sgmltag class="attribute">fileref</sgmltag>
97 or the URI of <sgmltag class="attribute">entityref</sgmltag>.
104 <xsl:template match="inlinegraphic" name="inlinegraphic">
105 <xsl:text>\includegraphics{</xsl:text>
107 <xsl:when test="@entityref">
108 <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
111 <xsl:value-of select="@fileref"/>
114 <xsl:text>}</xsl:text>