2 <!--#############################################################################
3 | $Id: graphic.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
4 |- #############################################################################
8 + ############################################################################## -->
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
12 exclude-result-prefixes="doc" version='1.0'>
16 <!--############################################################################# -->
17 <!-- DOCUMENTATION -->
18 <doc:reference id="graphic" xmlns="">
20 <releaseinfo role="meta">
21 $Id: graphic.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
24 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
25 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
28 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
29 <holder>Ramon Casellas</holder>
33 <title>Graphics <filename>graphic.mod.xsl</filename></title>
35 <section><title>Introduction</title>
44 <xsl:template match="screenshot">
45 <xsl:apply-templates/>
48 <xsl:template match="screeninfo">
52 <xsl:template match="graphic[@fileref]">
53 <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="normalize-space(@fileref)"/>}
56 <xsl:template match="graphic[@entityref]">
57 <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}
61 <xsl:template match="inlinegraphic[@fileref]">
63 <xsl:when test="@format='linespecific'">
64 <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
67 <xsl:text>\includegraphics{</xsl:text>
68 <xsl:if test="@align">
69 <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
71 <xsl:value-of select="normalize-space(@fileref)"/>}
76 <xsl:template match="inlinegraphic[@entityref]">
78 <xsl:when test="@format='linespecific'">
79 <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
82 <xsl:text>\includegraphics{</xsl:text>
83 <xsl:if test="@align">
84 <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
86 <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}