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

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