2007-10-26 17:42:03 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2007-10-09 15:58:37 +00:00
|
|
|
<xsl:stylesheet version="1.0"
|
2008-02-14 22:23:25 +00:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:cc="http://web.resource.org/cc/"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
2007-10-09 15:58:37 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:output
|
2008-02-14 22:23:25 +00:00
|
|
|
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
|
|
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
|
|
|
encoding="UTF-8"
|
|
|
|
indent="yes"
|
|
|
|
method="xml"
|
|
|
|
media-type="application/xhtml+xml"
|
|
|
|
omit-xml-declaration="no"
|
2007-10-09 15:58:37 +00:00
|
|
|
/>
|
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
<!-- each xsl:template should have it's own file -->
|
|
|
|
<xsl:include href="./xhtml/advancedsearch.xsl" />
|
|
|
|
<xsl:include href="./xhtml/embedded.xsl" />
|
|
|
|
<xsl:include href="./xhtml/footer.xsl" />
|
|
|
|
<xsl:include href="./xhtml/header.xsl" />
|
|
|
|
<xsl:include href="./xhtml/messagebox.xsl" />
|
|
|
|
<xsl:include href="./xhtml/loginbox.xsl" />
|
|
|
|
<xsl:include href="./xhtml/register.xsl" />
|
|
|
|
<xsl:include href="./xhtml/results.xsl" />
|
|
|
|
<xsl:include href="./xhtml/settings.xsl" />
|
|
|
|
<xsl:include href="./xhtml/splash.xsl" />
|
|
|
|
<xsl:include href="./xhtml/searchbar.xsl" />
|
|
|
|
<xsl:include href="./xhtml/tagcloud.xsl" />
|
|
|
|
<xsl:include href="./xhtml/upload.xsl" />
|
|
|
|
<xsl:include href="./xhtml/video.xsl" />
|
|
|
|
<xsl:include href="./xhtml/xhtml-body.xsl" />
|
|
|
|
<xsl:include href="./xhtml/xhtml-head.xsl" />
|
2007-10-28 03:06:45 +00:00
|
|
|
|
2007-11-02 12:39:25 +00:00
|
|
|
<xsl:variable name="locale">
|
2008-02-14 22:23:25 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
|
|
|
<xsl:value-of select="//@locale" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>en-us</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2007-11-02 12:39:25 +00:00
|
|
|
</xsl:variable>
|
|
|
|
|
2007-12-19 15:30:00 +00:00
|
|
|
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
2007-12-01 04:43:13 +00:00
|
|
|
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
|
2007-10-09 15:58:37 +00:00
|
|
|
|
2008-04-02 20:59:30 +00:00
|
|
|
<xsl:variable name="language_strings" select="document('../locale/languages.xml')//languages/lang" />
|
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
<!--
|
|
|
|
this kills 99% of the processed XML
|
|
|
|
we have to do this because XHTML + CSS presentation is dependant on the order of XHTML elements
|
|
|
|
hopefully, CSS 3 will fix this
|
|
|
|
-->
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template match="@*|node()">
|
2008-02-14 22:23:25 +00:00
|
|
|
<xsl:if test="not(/)">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="@*|node()" />
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:if>
|
2007-10-28 03:06:45 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-09 15:58:37 +00:00
|
|
|
<xsl:template match="/">
|
2008-02-14 22:23:25 +00:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
2008-03-07 20:13:35 +00:00
|
|
|
<xsl:call-template name="xhtml-head" />
|
2008-03-02 09:56:02 +00:00
|
|
|
|
2008-03-07 20:13:35 +00:00
|
|
|
<xsl:call-template name="xhtml-body" />
|
2007-10-09 15:58:37 +00:00
|
|
|
|
2008-02-14 22:23:25 +00:00
|
|
|
</html>
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|