Improving desktop template
[geeqie.git] / doc / wiki2docbook / html2db / example.xsl
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <!-- Copyright 2004 by Laszlo Systems, Inc.\r
3      Released under the Artistic License.\r
4      Written by Oliver Steele.\r
5      http://osteele.com/sources/xslt/htm2db/\r
6      \r
7      This is an minimal embedding stylesheet.  Make a copy of\r
8      this file and customize it with parameter definitions and\r
9      template overrides to customize the transformation.\r
10      See example.xsl for an example.\r
11   -->\r
12 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
13                 xmlns:h="http://www.w3.org/1999/xhtml"\r
14                 exclude-result-prefixes="h"\r
15                 version="1.0">\r
16   \r
17   <xsl:import href="html2db.xsl"/>\r
18   \r
19   <xsl:template match="h:div[@class='abstract']">\r
20     <abstract>\r
21       <xsl:apply-templates/>\r
22     </abstract>\r
23   </xsl:template>\r
24   \r
25   <xsl:template match="h:p[@class='note']">\r
26     <note>\r
27       <para>\r
28         <xsl:apply-templates/>\r
29       </para>\r
30     </note>\r
31   </xsl:template>\r
32   \r
33   <xsl:template match="h:pre[@class='example']">\r
34     <informalexample>\r
35       <xsl:apply-imports/>\r
36     </informalexample>\r
37   </xsl:template>\r
38 \r
39 </xsl:stylesheet>\r