This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[ira/wip.git] / docs / docbook / xslt / db2latex / graphic.mod.xsl
1 <?xml version='1.0'?>
2 <!--############################################################################# 
3 |       $Id: graphic.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
4 |- #############################################################################
5 |       $Author: jelmer $
6 |                                                                                                               
7 |   PURPOSE:
8 + ############################################################################## -->
9 <xsl:stylesheet 
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'>
13
14
15
16     <!--############################################################################# -->
17     <!-- DOCUMENTATION                                                                -->
18     <doc:reference id="graphic" xmlns="">
19         <referenceinfo>
20             <releaseinfo role="meta">
21                 $Id: graphic.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
22             </releaseinfo>
23         <authorgroup>
24             <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
25             <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
26         </authorgroup>
27             <copyright>
28                 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
29                 <holder>Ramon Casellas</holder>
30             </copyright>
31         </referenceinfo>
32
33         <title>Graphics <filename>graphic.mod.xsl</filename></title>
34         <partintro>
35             <section><title>Introduction</title>
36                 <para></para>
37             </section>
38         </partintro>
39     </doc:reference>
40
41
42
43
44     <xsl:template match="screenshot">
45         <xsl:apply-templates/>
46     </xsl:template>
47
48     <xsl:template match="screeninfo">
49     </xsl:template>
50
51
52     <xsl:template match="graphic[@fileref]">
53         <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="normalize-space(@fileref)"/>}
54     </xsl:template>
55
56     <xsl:template match="graphic[@entityref]">
57         <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}
58     </xsl:template>
59
60
61     <xsl:template match="inlinegraphic[@fileref]">
62         <xsl:choose>
63             <xsl:when test="@format='linespecific'">
64                 <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
65             </xsl:when>
66             <xsl:otherwise>
67                 <xsl:text>\includegraphics{</xsl:text>
68                 <xsl:if test="@align">
69                     <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
70                 </xsl:if>
71                 <xsl:value-of select="normalize-space(@fileref)"/>}
72             </xsl:otherwise>
73         </xsl:choose>
74     </xsl:template>
75
76     <xsl:template match="inlinegraphic[@entityref]">
77         <xsl:choose>
78             <xsl:when test="@format='linespecific'">
79                 <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/>
80             </xsl:when>
81             <xsl:otherwise>
82                 <xsl:text>\includegraphics{</xsl:text>
83                 <xsl:if test="@align">
84                     <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> -->
85                 </xsl:if>
86                 <xsl:value-of select="unparsed-entity-uri(@entityref)"/>}
87             </xsl:otherwise>
88         </xsl:choose>
89     </xsl:template>
90 </xsl:stylesheet>