summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@luxion>2008-10-01 12:19:58 +0000
committerdakkar <dakkar@luxion>2008-10-01 12:19:58 +0000
commita473222d8aef7411f49efbc24495768762afc96f (patch)
tree178eabce2ec7e9b1d74209dbd74976d9731df109
parentfurther cleanup, and models (diff)
downloadthenautilus-a473222d8aef7411f49efbc24495768762afc96f.tar.gz
thenautilus-a473222d8aef7411f49efbc24495768762afc96f.tar.bz2
thenautilus-a473222d8aef7411f49efbc24495768762afc96f.zip
mess with tags
git-svn-id: svn://luxion/repos/thenautilus@376 fcb26f47-9200-0410-b104-b98ab5b095f3
-rw-r--r--tags/japanese/document-listing.tt3
-rw-r--r--tags/japanese/document.en.rest.tt6
-rw-r--r--tags/japanese/document.it.rest.tt6
-rw-r--r--tags/japanese/du2html.xsl101
-rw-r--r--tags/keyboard/document-listing.tt3
-rw-r--r--tags/keyboard/document.en.rest.tt6
-rw-r--r--tags/keyboard/document.it.rest.tt6
-rw-r--r--tags/keyboard/du2html.xsl101
l---------tags/software/document-listing.tt1
-rw-r--r--tags/software/document.en.rest.tt6
-rw-r--r--tags/software/document.it.rest.tt6
l---------tags/software/du2html.xsl1
12 files changed, 246 insertions, 0 deletions
diff --git a/tags/japanese/document-listing.tt b/tags/japanese/document-listing.tt
new file mode 100644
index 0000000..729e08c
--- /dev/null
+++ b/tags/japanese/document-listing.tt
@@ -0,0 +1,3 @@
+[% FOR doc IN tagged.$path %]
+[% IF isLang(language,doc) %]* `<[% dstUriFor(doc) %]>`_[% END %]
+[% END %]
diff --git a/tags/japanese/document.en.rest.tt b/tags/japanese/document.en.rest.tt
new file mode 100644
index 0000000..a057d1c
--- /dev/null
+++ b/tags/japanese/document.en.rest.tt
@@ -0,0 +1,6 @@
+Japanese
+========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/japanese/document.it.rest.tt b/tags/japanese/document.it.rest.tt
new file mode 100644
index 0000000..f1908d9
--- /dev/null
+++ b/tags/japanese/document.it.rest.tt
@@ -0,0 +1,6 @@
+Giapponese
+==========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/japanese/du2html.xsl b/tags/japanese/du2html.xsl
new file mode 100644
index 0000000..fdb1b76
--- /dev/null
+++ b/tags/japanese/du2html.xsl
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:wc="http://webcoso.thenautilus.net/"
+ version="1.0"
+ >
+
+ <x:import href="reST.xsl"/>
+
+ <x:param name="language" select="'en'"/>
+ <x:param name="path"/>
+ <x:param name="filename"/>
+
+ <x:output method="html" encoding="utf-8"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ indent="yes"/>
+
+ <x:template match="reference">
+ <x:element name="a">
+ <x:attribute name="href">
+ <x:choose>
+ <x:when test="@refid">
+ <x:value-of select="concat('#', @refid)" />
+ </x:when>
+ <x:when test="@refuri">
+ <x:value-of select="@refuri" />
+ </x:when>
+ </x:choose>
+ </x:attribute>
+
+ <x:choose>
+ <x:when test="@refuri and string(.)=string(@refuri)">
+ <x:apply-templates select="wc:title-for($language,$filename,@refuri)"/>
+ </x:when>
+ <x:otherwise>
+ <x:apply-templates />
+ </x:otherwise>
+ </x:choose>
+ </x:element>
+ </x:template>
+
+ <x:template match="/document">
+ <html xml:lang="{$language}" lang="{$language}">
+ <head>
+ <title><x:value-of select="title"/></title>
+ </head>
+ <body>
+ <div id="content">
+ <h1><x:apply-templates select="title/node()"/></h1>
+ <x:apply-templates/>
+ </div>
+ <div id="tags">
+ <x:apply-templates select="wc:tagged()"/>
+ </div>
+ <div id="dates">
+ <x:apply-templates select="wc:dates-for($language,$filename,'./')"/>
+ </div>
+ </body>
+ </html>
+ </x:template>
+
+ <x:template match="/wc:dates">
+ <span id="created">Creato: <span class="date created"><x:value-of select="wc:creation-date"/></span></span>
+ <span id="lastmod">Ultima modifica: <span class="date lastmod"><x:value-of select="wc:last-change"/></span></span>
+ </x:template>
+
+ <x:template match="/wc:tags">
+ <dl>
+ <x:apply-templates/>
+ </dl>
+ </x:template>
+
+ <x:template match="wc:tag">
+ <dt><span class="tag title"><x:apply-templates select="wc:title-for($language,$filename,concat('/tags/',@name,'/'))"/></span></dt>
+ <dd>
+ <ul>
+ <x:apply-templates/>
+ </ul>
+ </dd>
+ </x:template>
+
+ <x:template match="wc:doc">
+ <li>
+ <a class="tag" href="{@uri}"><x:apply-templates select="wc:title-for($language,$filename,@uri)"/></a>
+ (<span class="tag count"><x:apply-templates/></span>)
+ </li>
+ </x:template>
+
+ <x:template match="wc:lang">
+ <x:choose>
+ <x:when test=".!=$language">
+ <a href="{../@uri}{.}"><x:value-of select="."/></a>
+ </x:when>
+ <x:otherwise>
+ <x:value-of select="."/>
+ </x:otherwise>
+ </x:choose>
+ <x:if test="following-sibling::wc:lang"> | </x:if>
+ </x:template>
+
+</x:stylesheet> \ No newline at end of file
diff --git a/tags/keyboard/document-listing.tt b/tags/keyboard/document-listing.tt
new file mode 100644
index 0000000..729e08c
--- /dev/null
+++ b/tags/keyboard/document-listing.tt
@@ -0,0 +1,3 @@
+[% FOR doc IN tagged.$path %]
+[% IF isLang(language,doc) %]* `<[% dstUriFor(doc) %]>`_[% END %]
+[% END %]
diff --git a/tags/keyboard/document.en.rest.tt b/tags/keyboard/document.en.rest.tt
new file mode 100644
index 0000000..ecf2c06
--- /dev/null
+++ b/tags/keyboard/document.en.rest.tt
@@ -0,0 +1,6 @@
+Keyboard
+========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/keyboard/document.it.rest.tt b/tags/keyboard/document.it.rest.tt
new file mode 100644
index 0000000..944fe9e
--- /dev/null
+++ b/tags/keyboard/document.it.rest.tt
@@ -0,0 +1,6 @@
+Tastiera
+========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/keyboard/du2html.xsl b/tags/keyboard/du2html.xsl
new file mode 100644
index 0000000..fdb1b76
--- /dev/null
+++ b/tags/keyboard/du2html.xsl
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:wc="http://webcoso.thenautilus.net/"
+ version="1.0"
+ >
+
+ <x:import href="reST.xsl"/>
+
+ <x:param name="language" select="'en'"/>
+ <x:param name="path"/>
+ <x:param name="filename"/>
+
+ <x:output method="html" encoding="utf-8"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ indent="yes"/>
+
+ <x:template match="reference">
+ <x:element name="a">
+ <x:attribute name="href">
+ <x:choose>
+ <x:when test="@refid">
+ <x:value-of select="concat('#', @refid)" />
+ </x:when>
+ <x:when test="@refuri">
+ <x:value-of select="@refuri" />
+ </x:when>
+ </x:choose>
+ </x:attribute>
+
+ <x:choose>
+ <x:when test="@refuri and string(.)=string(@refuri)">
+ <x:apply-templates select="wc:title-for($language,$filename,@refuri)"/>
+ </x:when>
+ <x:otherwise>
+ <x:apply-templates />
+ </x:otherwise>
+ </x:choose>
+ </x:element>
+ </x:template>
+
+ <x:template match="/document">
+ <html xml:lang="{$language}" lang="{$language}">
+ <head>
+ <title><x:value-of select="title"/></title>
+ </head>
+ <body>
+ <div id="content">
+ <h1><x:apply-templates select="title/node()"/></h1>
+ <x:apply-templates/>
+ </div>
+ <div id="tags">
+ <x:apply-templates select="wc:tagged()"/>
+ </div>
+ <div id="dates">
+ <x:apply-templates select="wc:dates-for($language,$filename,'./')"/>
+ </div>
+ </body>
+ </html>
+ </x:template>
+
+ <x:template match="/wc:dates">
+ <span id="created">Creato: <span class="date created"><x:value-of select="wc:creation-date"/></span></span>
+ <span id="lastmod">Ultima modifica: <span class="date lastmod"><x:value-of select="wc:last-change"/></span></span>
+ </x:template>
+
+ <x:template match="/wc:tags">
+ <dl>
+ <x:apply-templates/>
+ </dl>
+ </x:template>
+
+ <x:template match="wc:tag">
+ <dt><span class="tag title"><x:apply-templates select="wc:title-for($language,$filename,concat('/tags/',@name,'/'))"/></span></dt>
+ <dd>
+ <ul>
+ <x:apply-templates/>
+ </ul>
+ </dd>
+ </x:template>
+
+ <x:template match="wc:doc">
+ <li>
+ <a class="tag" href="{@uri}"><x:apply-templates select="wc:title-for($language,$filename,@uri)"/></a>
+ (<span class="tag count"><x:apply-templates/></span>)
+ </li>
+ </x:template>
+
+ <x:template match="wc:lang">
+ <x:choose>
+ <x:when test=".!=$language">
+ <a href="{../@uri}{.}"><x:value-of select="."/></a>
+ </x:when>
+ <x:otherwise>
+ <x:value-of select="."/>
+ </x:otherwise>
+ </x:choose>
+ <x:if test="following-sibling::wc:lang"> | </x:if>
+ </x:template>
+
+</x:stylesheet> \ No newline at end of file
diff --git a/tags/software/document-listing.tt b/tags/software/document-listing.tt
new file mode 120000
index 0000000..9444be1
--- /dev/null
+++ b/tags/software/document-listing.tt
@@ -0,0 +1 @@
+../../common/document-listing.tt \ No newline at end of file
diff --git a/tags/software/document.en.rest.tt b/tags/software/document.en.rest.tt
new file mode 100644
index 0000000..6d9bfde
--- /dev/null
+++ b/tags/software/document.en.rest.tt
@@ -0,0 +1,6 @@
+Software
+========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/software/document.it.rest.tt b/tags/software/document.it.rest.tt
new file mode 100644
index 0000000..6d9bfde
--- /dev/null
+++ b/tags/software/document.it.rest.tt
@@ -0,0 +1,6 @@
+Software
+========
+:CreationDate: 2003-01-28 10:09:25
+
+[% PROCESS 'document-listing.tt' %]
+
diff --git a/tags/software/du2html.xsl b/tags/software/du2html.xsl
new file mode 120000
index 0000000..6737f0e
--- /dev/null
+++ b/tags/software/du2html.xsl
@@ -0,0 +1 @@
+../../common/du2html.xsl \ No newline at end of file