Author: thorsten
Date: Thu Nov  6 17:12:42 2008
New Revision: 712029

URL: http://svn.apache.org/viewvc?rev=712029&view=rev
Log:
Updating solr result document matching

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl?rev=712029&r1=712028&r2=712029&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/stylesheets/solrResult-to-xdocs.xsl
 Thu Nov  6 17:12:42 2008
@@ -21,7 +21,7 @@
     <document>
       <header>
         <xsl:choose>
-          <xsl:when test="not(result/@status='0')">
+          <xsl:when test="not(response/[EMAIL 
PROTECTED]'responseHeader']/[EMAIL PROTECTED]'status']/text()='0')">
             <title>error in solr operation </title>
           </xsl:when>
           <xsl:otherwise>
@@ -30,11 +30,11 @@
         </xsl:choose>
       </header>
       <body>
-        <xsl:apply-templates select="result"/>
+        <xsl:apply-templates select="response"/>
       </body>
     </document>
   </xsl:template>
-  <xsl:template match="result">
+  <xsl:template match="response">
     <section id="result">
       <title>solr server response</title>
       <p>
@@ -42,7 +42,7 @@
         <xsl:value-of select="$command"/>
       </p>
       <xsl:choose>
-        <xsl:when test="not(@status='0')">
+        <xsl:when test="not([EMAIL PROTECTED]'responseHeader']/[EMAIL 
PROTECTED]'status']/text()='0')">
           <warning>
             There was a problem:
             <xsl:value-of select="."/>