ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/jargon.xsl
Revision: 201
Committed: 2004-08-30T19:24:40-07:00 (20 years, 9 months ago) by Douglas Thrift
Content type: text/xml
File size: 1045 byte(s)
Log Message:
Huzzah!

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Feeping Creaturism
4
5 Douglas Thrift
6
7 $Id$
8 -->
9 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml">
11 <xsl:output encoding="UTF-8"/>
12 <xsl:template match="xhtml:html">
13 <jargon>
14 <xsl:apply-templates select="xhtml:head/xhtml:title"/>
15 <xsl:apply-templates select="xhtml:body/xhtml:dt/dt/xhtml:span"/>
16 <xsl:apply-templates select="xhtml:body/xhtml:dd"/>
17 </jargon>
18 </xsl:template>
19 <xsl:template match="xhtml:title">
20 <word><xsl:apply-templates/></word>
21 </xsl:template>
22 <xsl:template match="xhtml:span">
23 <xsl:choose>
24 <xsl:when test="@class='pronunciation'">
25 <pronunciation><xsl:apply-templates/></pronunciation>
26 </xsl:when>
27 <xsl:when test="@class='grammar'">
28 <grammar><xsl:apply-templates/></grammar>
29 </xsl:when>
30 </xsl:choose>
31 </xsl:template>
32 <xsl:template match="xhtml:dd">
33 <definition><xsl:copy-of select="*"/></definition>
34 </xsl:template>
35 </xsl:stylesheet>

Properties

Name Value
svn:eol-style native
svn:keywords Id