2005-12-07 17:33:00 +08:00
|
|
|
<?xml version="1.0"?>
|
2008-04-24 01:08:31 +08:00
|
|
|
<xsl:stylesheet
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:exsl="http://exslt.org/common"
|
|
|
|
exclude-result-prefixes="xsl exsl"
|
|
|
|
version="1.0">
|
2005-12-07 17:33:00 +08:00
|
|
|
|
2008-04-24 01:08:31 +08:00
|
|
|
<xsl:import href="page.xsl"/>
|
2006-01-20 23:49:04 +08:00
|
|
|
|
2008-04-24 01:08:31 +08:00
|
|
|
<xsl:output
|
|
|
|
method="xml"
|
2009-12-08 23:09:33 +08:00
|
|
|
encoding="UTF-8"
|
2008-04-24 01:08:31 +08:00
|
|
|
indent="yes"
|
2009-11-14 06:19:09 +08:00
|
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
2008-04-26 00:23:51 +08:00
|
|
|
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
|
2006-01-20 23:49:04 +08:00
|
|
|
|
2012-06-22 21:21:18 +08:00
|
|
|
<xsl:variable name="href_base">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="$pagename = '404.html'">
|
|
|
|
<xsl:value-of select="'/'"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="''"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
2006-01-20 23:49:04 +08:00
|
|
|
|
2008-04-24 01:08:31 +08:00
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:apply-templates select="." mode="page">
|
|
|
|
<xsl:with-param name="pagename" select="$pagename"/>
|
|
|
|
</xsl:apply-templates>
|
2005-12-07 17:33:00 +08:00
|
|
|
</xsl:template>
|
2006-01-20 23:49:04 +08:00
|
|
|
|
2005-12-07 17:33:00 +08:00
|
|
|
</xsl:stylesheet>
|