forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r698744 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.tei/resources/stylesheets/document-to-teiLite.xsl
Date Wed, 24 Sep 2008 21:28:55 GMT
Author: rgardler
Date: Wed Sep 24 14:28:55 2008
New Revision: 698744

URL: http://svn.apache.org/viewvc?rev=698744&view=rev
Log:
only show each link once Thanks to Pablo Barrera (ISSUE 1114)

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=698744&r1=698743&r2=698744&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
Wed Sep 24 14:28:55 2008
@@ -13,6 +13,8 @@
         name="reference-section"
         select="$properties/*[@name='output.tei.reference-section']/@value" />
 
+  <xsl:key name="references" match="*" use="concat(name(), '::', .)" />
+  
   <xsl:template match='/'>
     <xsl:text disable-output-escaping="yes">
   <![CDATA[
@@ -153,12 +155,13 @@
     </xsl:choose>
   </xsl:template>
 
-  <!-- FIXME: add parameter to remove this field, remove duplicates, remove mailto field
-->
+  <!-- FIXME: remove mailto field -->
   <xsl:template name="references">
     <div>
       <head>References</head>
       <ul>
-        <xsl:for-each select="//link">
+        <xsl:for-each select="//link[generate-id(.) =
+            generate-id(key('references', concat(name(), '::', .))[1])]">
           <xsl:sort select ="."/>
           <li>
             <a>



Mime
View raw message