diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-17 13:50:15 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-17 13:50:15 +0200 |
commit | e358d831e4d491e79de9ef8a496076e11b9549e1 (patch) | |
tree | 0f413ed826773c42fc996a5878a35e46766dacbe /templates/du2html.xsl | |
parent | imported changes from the WebCoso tests (diff) | |
download | thenautilus-e358d831e4d491e79de9ef8a496076e11b9549e1.tar.gz thenautilus-e358d831e4d491e79de9ef8a496076e11b9549e1.tar.bz2 thenautilus-e358d831e4d491e79de9ef8a496076e11b9549e1.zip |
fixed newton pages
- moved the sub-doc under the main doc
- re-added images
- fixed internal anchors (both in document and in du2html)
Diffstat (limited to 'templates/du2html.xsl')
-rw-r--r-- | templates/du2html.xsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/du2html.xsl b/templates/du2html.xsl index 29d1cbb..3725333 100644 --- a/templates/du2html.xsl +++ b/templates/du2html.xsl @@ -2,6 +2,7 @@ <x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:e="http://exslt.org/common" + xmlns:s="http://exslt.org/strings" xmlns:wc="http://webcoso.thenautilus.net/" exclude-result-prefixes="wc e" version="1.0" @@ -70,6 +71,16 @@ </x:element> </x:template> + <x:template match="target[@refid and not(@refuri)]"> + <a name="{@refid}"/> + </x:template> + + <x:template match="target[@names and not(@refuri)]"> + <x:for-each select="s:split(@names,' ')/token"> + <a name="{.}"/> + </x:for-each> + </x:template> + <!-- qui ce ne freghiamo del @source, tanto viene usata solo per i documenti stand-alone --> |