[Yanel-commits] rev 26483 - public/yanel/trunk/src/contributions/resources/nutch/xslt

michi at wyona.com michi at wyona.com
Thu Aug 2 16:38:34 CEST 2007


Author: michi
Date: 2007-08-02 16:38:34 +0200 (Thu, 02 Aug 2007)
New Revision: 26483

Modified:
   public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl
Log:
check on group value

Modified: public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl	2007-08-02 14:28:43 UTC (rev 26482)
+++ public/yanel/trunk/src/contributions/resources/nutch/xslt/result2xhtml.xsl	2007-08-02 14:38:34 UTC (rev 26483)
@@ -16,6 +16,8 @@
   
   <xsl:param name="localization.language" select="'LOCALIZATION_LANG_IS_NULL'"/>
   <xsl:param name="translation.language" select="'TRANSLATION_LANG_IS_NULL'"/>
+
+  <xsl:param name="group" select="'GROUP_IS_NULL'"/>
   
   <xsl:variable name="query" select="/yanel:nutch/yanel:query"/>
 <!--
@@ -230,7 +232,7 @@
   </xsl:template>
 
   <xsl:template match="yanel:groups" mode="form">
-    <br/><input type="radio" name="group" value="usage"/>Usage <input type="radio" name="group" value="dev" checked="true"/>Development
+    <br/><input type="radio" name="group" value="usage"><xsl:if test="$group = 'usage'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>Usage <input type="radio" name="group" value="dev"><xsl:if test="$group = 'dev'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if></input>Development
   </xsl:template>
 
 </xsl:stylesheet>



More information about the Yanel-commits mailing list