[Yanel-commits] rev 23699 -
public/yanel/trunk/src/resources/add-realm/xslt
michi at wyona.com
michi at wyona.com
Thu Apr 12 23:04:49 CEST 2007
Author: michi
Date: 2007-04-12 23:04:47 +0200 (Thu, 12 Apr 2007)
New Revision: 23699
Modified:
public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl
Log:
crawler status implemented
Modified: public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl
===================================================================
--- public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl 2007-04-12 15:54:15 UTC (rev 23698)
+++ public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl 2007-04-12 21:04:47 UTC (rev 23699)
@@ -34,6 +34,12 @@
</xsl:otherwise>
</xsl:choose>
</xsl:when>
+ <xsl:when test="/yanel:add-realm/yanel:from-existing-website/yanel:downloadevents">
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:isdone"/>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:nofdownloads"/>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:downloadevents"/>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:errorevents"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:not-valid"/>
<xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:valid"/>
@@ -89,5 +95,35 @@
*
</xsl:if>
</xsl:template>
+
+ <xsl:template match="yanel:isdone">
+ <p>
+ <xsl:choose>
+ <xsl:when test=". = 'false'">
+ Still crawling resp. importing ...
+ </xsl:when>
+ <xsl:when test=". = 'true'">
+ Crawling resp. importing has been completed :-)
+ </xsl:when>
+ <xsl:otherwise>
+ Exception: <xsl:value-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="yanel:nofdownloads">
+ <p><xsl:value-of select="."/> number of "pages" downloaded.</p>
+ </xsl:template>
+
+ <xsl:template match="yanel:downloadevents">
+ <h2>Downloaded pages</h2>
+ <p><xsl:value-of select="."/></p>
+ </xsl:template>
+
+ <xsl:template match="yanel:errorevents">
+ <h2>Failed downloads</h2>
+ <p><xsl:value-of select="."/></p>
+ </xsl:template>
</xsl:stylesheet>
More information about the Yanel-commits
mailing list