Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.6KB

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