SF.net SVN: geonetwork:[5455] trunk/web/geonetwork/xsl/harvesting/ client-error-tip.xsl

1 message Options
Embed this post
Permalink
sppigot

SF.net SVN: geonetwork:[5455] trunk/web/geonetwork/xsl/harvesting/ client-error-tip.xsl

Reply Threaded More More options
Print post
Permalink
Revision: 5455
          http://geonetwork.svn.sourceforge.net/geonetwork/?rev=5455&view=rev
Author:   sppigot
Date:     2009-11-06 12:51:55 +0000 (Fri, 06 Nov 2009)

Log Message:
-----------
Remove extraneous text produced by client-error-tip.xsl which runs
in the browser to display harvester errors

Modified Paths:
--------------
    trunk/web/geonetwork/xsl/harvesting/client-error-tip.xsl

Modified: trunk/web/geonetwork/xsl/harvesting/client-error-tip.xsl
===================================================================
--- trunk/web/geonetwork/xsl/harvesting/client-error-tip.xsl 2009-11-06 12:17:54 UTC (rev 5454)
+++ trunk/web/geonetwork/xsl/harvesting/client-error-tip.xsl 2009-11-06 12:51:55 UTC (rev 5455)
@@ -10,7 +10,11 @@
  <!-- === Generate the error tooltip for the harvesting entry list -->
  <!-- ============================================================================================= -->
 
- <xsl:template match="/root/node/error">
+ <xsl:template match="/root">
+ <xsl:apply-templates select="*"/>
+ </xsl:template>
+
+ <xsl:template match="error">
  <table>
  <tr>
  <td><b>Class</b> </td>
@@ -41,6 +45,11 @@
  </xsl:if>
  </table>
  </xsl:template>
+
+ <!-- swallow the rest of the elements -->
+ <xsl:template match="@*|node()">
+ <xsl:apply-templates select="*"/>
+ </xsl:template>
 
  <!-- ============================================================================================= -->
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-commit mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-commit