source: branches/samba-3.2.x/docs-xml/xslt/db2latex-xsl/xsl/graphic.mod.xsl

Last change on this file was 203, checked in by Herwig Bauernfeind, 16 years ago

Missing 3.2.2 client and HOWTO files

File size: 3.2 KB
Line 
1<?xml version='1.0'?>
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+ ############################################################################## -->
8<xsl:stylesheet
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'>
12
13 <doc:reference id="graphic" xmlns="">
14 <referenceinfo>
15 <releaseinfo role="meta">
16 $Id: graphic.mod.xsl,v 1.5 2004/01/02 07:25:45 j-devenish Exp $
17 </releaseinfo>
18 <authorgroup>
19 &ramon;
20 &james;
21 </authorgroup>
22 <copyright>
23 <year>2000</year><year>2001</year><year>2002</year><year>2003</year><year>2004</year>
24 <holder>Ramon Casellas</holder>
25 </copyright>
26 <revhistory>
27 <doc:revision rcasver="1.12">&rev_2003_05;</doc:revision>
28 </revhistory>
29 </referenceinfo>
30 <title>Graphics <filename>graphic.mod.xsl</filename></title>
31 <partintro>
32 <para>
33
34
35
36 </para>
37 </partintro>
38 </doc:reference>
39
40 <doc:template xmlns="">
41 <refpurpose>Process <doc:db>screenshot</doc:db> elements</refpurpose>
42 <doc:description>
43 <para>
44 Applies templates.
45 </para>
46 </doc:description>
47 <doc:variables>
48 &no_var;
49 </doc:variables>
50 </doc:template>
51 <xsl:template match="screenshot">
52 <xsl:apply-templates/>
53 </xsl:template>
54
55 <doc:template xmlns="">
56 <refpurpose>Process <doc:db>screeninfo</doc:db> elements</refpurpose>
57 <doc:description>
58 <para>
59 Suppressed.
60 </para>
61 </doc:description>
62 <doc:variables>
63 &no_var;
64 </doc:variables>
65 </doc:template>
66 <xsl:template match="screeninfo"/>
67
68 <doc:template xmlns="">
69 <refpurpose>Process <doc:db>graphic</doc:db> elements</refpurpose>
70 <doc:description>
71 <para>
72 Formats a graphic as a paragraph.
73 </para>
74 </doc:description>
75 <doc:variables>
76 &no_var;
77 </doc:variables>
78 <doc:seealso>
79 <itemizedlist>
80 <listitem><simpara><xref linkend="template.inlinegraphic"/></simpara></listitem>
81 </itemizedlist>
82 </doc:seealso>
83 </doc:template>
84 <xsl:template match="graphic">
85 <xsl:text>&#10;&#10;</xsl:text>
86 <xsl:call-template name="inlinegraphic"/>
87 <xsl:text>&#10;&#10;</xsl:text>
88 </xsl:template>
89
90 <doc:template xmlns="">
91 <refpurpose>Process <doc:db>inlinegraphic</doc:db> elements</refpurpose>
92 <doc:description>
93 <para>
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>.
98 </para>
99 </doc:description>
100 <doc:variables>
101 &no_var;
102 </doc:variables>
103 </doc:template>
104 <xsl:template match="inlinegraphic" name="inlinegraphic">
105 <xsl:text>\includegraphics{</xsl:text>
106 <xsl:choose>
107 <xsl:when test="@entityref">
108 <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
109 </xsl:when>
110 <xsl:otherwise>
111 <xsl:value-of select="@fileref"/>
112 </xsl:otherwise>
113 </xsl:choose>
114 <xsl:text>}</xsl:text>
115 </xsl:template>
116
117</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.