]> git.stg.codes - stg.git/blob - doc/xslt/slides/keynote/xsltsl/example.xsl
Ticket 37. if (schemaVersion > 1) checking added in the RestoreTariff()
[stg.git] / doc / xslt / slides / keynote / xsltsl / example.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet
4   version="1.0"
5   extension-element-prefixes="doc"
6   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7   xmlns:doc="http://xsltsl.org/xsl/documentation/1.0"
8   xmlns:eg="http://xsltsl.org/example"
9 >
10
11   <doc:reference xmlns="">
12     <referenceinfo>
13       <releaseinfo role="meta">
14         $Id: example.xsl 3991 2004-11-10 06:51:55Z balls $
15       </releaseinfo>
16       <author>
17         <surname>Ball</surname>
18         <firstname>Steve</firstname>
19       </author>
20       <copyright>
21         <year>2001</year>
22         <holder>Steve Ball</holder>
23       </copyright>
24     </referenceinfo>
25
26     <title>Example Stylesheet</title>
27
28     <partintro>
29       <section>
30         <title>Introduction</title>
31
32         <para>This module provides a template for adding stylesheet modules to the XSLT Standard Library.</para>
33         <para>To add a new module to the library, follow these easy steps:</para>
34         <orderedlist>
35           <listitem>
36             <para>Copy this file and replace its contents with the new module templates and documentation.</para>
37           </listitem>
38           <listitem>
39             <para>Copy the corresponding test file in the <filename>test</filename> directory.  Replace its contents with tests for the new module.</para>
40           </listitem>
41           <listitem>
42             <para>Add an include element in the <filename>stdlib.xsl</filename> stylesheet.</para>
43           </listitem>
44           <listitem>
45             <para>Add an entry in the <filename>test/test.xml</filename> file.</para>
46           </listitem>
47           <listitem>
48             <para>Add entries in the <filename>test/test.xsl</filename> stylesheet.</para>
49           </listitem>
50           <listitem>
51             <para>Add an entry in the <filename>doc/build.xml</filename> file.</para>
52           </listitem>
53         </orderedlist>
54
55         <para>The <filename>example.xsl</filename> stylesheet provides a more extensive example.</para>
56
57       </section>
58     </partintro>
59
60   </doc:reference>
61
62   <doc:template name="eg:example" xmlns="">
63     <refpurpose>Template Example</refpurpose>
64
65     <refdescription>
66       <para>Provides a template for writing templates.  Replace this paragraph with a description of your template</para>
67     </refdescription>
68
69     <refparameter>
70       <variablelist>
71         <varlistentry>
72           <term>text</term>
73           <listitem>
74             <para>The example string</para>
75           </listitem>
76         </varlistentry>
77       </variablelist>
78     </refparameter>
79
80     <refreturn>
81       <para>Returns nothing.</para>
82     </refreturn>
83   </doc:template>
84
85   <xsl:template name="eg:example">
86     <xsl:param name="text"/>
87   </xsl:template>
88
89 </xsl:stylesheet>
90