Browse Subversion Repository
Contents of /topo/body/topo2html.xsl
Parent Directory
| Revision Log
Revision 27 -
( show annotations)
( download)
Tue Nov 23 07:14:38 2010 UTC
(13 years, 4 months ago)
by ohkubo-k
File MIME type: text/plain
File size: 1926 byte(s)
update for 2010/11/23 release
| 1 |
<?xml version="1.0" encoding="utf-8" ?> |
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 |
|
| 4 |
<xsl:template match="/"> |
| 5 |
<html><body> |
| 6 |
<xsl:apply-templates select=".//div0" /> |
| 7 |
</body></html> |
| 8 |
</xsl:template> |
| 9 |
|
| 10 |
<xsl:template match="div0/head"></xsl:template> |
| 11 |
<xsl:template match="div1/head"></xsl:template> |
| 12 |
|
| 13 |
<xsl:template match="p"><p><xsl:apply-templates/></p></xsl:template> |
| 14 |
<xsl:template match="quote"><i><xsl:apply-templates/></i></xsl:template> |
| 15 |
<xsl:template match="key"><key type="<xsl:value-of select="@type"/>"><xsl:apply-templates/></key></xsl:template> |
| 16 |
|
| 17 |
<xsl:template match="ref"><a href="#<xsl:value-of select="@target" />"><xsl:apply-templates/></a></xsl:template> |
| 18 |
<xsl:template match="figure"><xsl:if test="string-length(@id) != 0"></p><indent val="+1"><p><img src="figs/<xsl:value-of select="@id" />.jpg" alt="<xsl:value-of select="head" />"/></p><indent val="-1"><p></xsl:if></xsl:template> |
| 19 |
|
| 20 |
<xsl:template match="p/note"> |
| 21 |
</p><indent val="+2"><p>[NOTE: <xsl:apply-templates/>]</p><indent val="-2"><p> |
| 22 |
</xsl:template> |
| 23 |
<xsl:template match="div1/note"> |
| 24 |
<indent val="+2"><p>[NOTE: <xsl:apply-templates/>]</p><indent val="-2"> |
| 25 |
</xsl:template> |
| 26 |
<xsl:template match="div1"> |
| 27 |
<xsl:text> |
| 28 |
<dt id="</xsl:text><xsl:value-of select="@id" /><xsl:text>"></xsl:text><xsl:value-of select="head/placeName" /><xsl:text></dt><dd></xsl:text><xsl:apply-templates /><xsl:text></dd></xsl:text> |
| 29 |
</xsl:template> |
| 30 |
<xsl:template match="div0"> |
| 31 |
<H1><xsl:value-of select="@n" /></H1> |
| 32 |
<xsl:apply-templates/> |
| 33 |
</xsl:template> |
| 34 |
|
| 35 |
</xsl:stylesheet> |
|