You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2009/07/20 16:31:43 UTC

svn commit: r795858 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl

Author: rgardler
Date: Mon Jul 20 14:31:42 2009
New Revision: 795858

URL: http://svn.apache.org/viewvc?rev=795858&view=rev
Log:
some TEI tidy ups

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl?rev=795858&r1=795857&r2=795858&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl Mon Jul 20 14:31:42 2009
@@ -43,6 +43,10 @@
     </TEI.2>
   </xsl:template>
 
+  <xsl:template match="document">
+    <xsl:apply-templates/>
+  </xsl:template>
+
   <xsl:template match="header">
     <teiHeader>
       <fileDesc>
@@ -181,36 +185,34 @@
     <div>
       <head>Further Reading</head>
       <p>
-	<h1>Links:</h1>
-	<list type="unorderd">
+	<hi>Links:</hi>
+	<list type="unordered">
           <xsl:for-each select="//link[generate-id(.) =
             generate-id(key('references', concat(name(), '::', .))[1])
             and not (contains(@href, 'mailto:'))
             and not (starts-with(@href, 'http://www.oss-watch.ac.uk'))]">
             <xsl:sort select ="."/>
-            <item type="unordered">
+            <item>
               FIXME: Document Title
-              [<xptr>
-                <xsl:attribute name="url">
+              [<xptr><xsl:attribute name="url">
                   <xsl:value-of select="@href"/>
-                </xsl:attribute>
-              ]</xptr>
+                </xsl:attribute></xptr>]
             </item>
           </xsl:for-each>
         </list>
       </p>
       <p>
-        <h1>Related information from OSS Watch</h1>
+        <hi>Related information from OSS Watch</hi>
         <list rend="copytosidebar" type="unordered">
           <xsl:for-each select="//link[generate-id(.) =
             generate-id(key('references', concat(name(), '::', .))[1])
             and not (contains(@href, 'mailto:'))
             and (starts-with(@href, 'http://www.oss-watch.ac.uk'))]">
             <xsl:sort select ="."/>
-            <item type="unordered">
+            <item>
               <xref>
                 <xsl:attribute name="url">
-                  <xsl:value-of select="@href"/>
+                  <xsl:value-of select="substring(@href,27)"/>
                 </xsl:attribute>
 		FIXME: Document Title
               </xref>