[Yanel-commits] rev 48455 - public/yanel/trunk/src/webapp/xslt

guillaume at wyona.com guillaume at wyona.com
Thu Apr 1 17:55:04 CEST 2010


Author: guillaume
Date: 2010-04-01 17:55:03 +0200 (Thu, 01 Apr 2010)
New Revision: 48455

Modified:
   public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl
Log:
Now displaying /unspecified/ for the resource-type views' MIME-types
 when none has been set instead of nothing
 so that the link to the view has some clickable text and thus can be usable.


Modified: public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl	2010-04-01 15:36:15 UTC (rev 48454)
+++ public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl	2010-04-01 15:55:03 UTC (rev 48455)
@@ -246,7 +246,17 @@
   </xsl:template> 
 
   <xsl:template match="descriptor">
-    <br/>Descriptor (<xsl:value-of select="@yanel:id"/>): <a href="?yanel.resource.viewid={@yanel:id}"><xsl:value-of select="."/></a>
+    <p>
+      <xsl:text>Descriptor (</xsl:text>
+      <xsl:value-of select="@yanel:id"/>
+      <xsl:text>): </xsl:text>
+      <a href="?yanel.resource.viewid={@yanel:id}">
+        <xsl:value-of select="."/>
+        <xsl:if test=". = ''">
+          <em>unspecified</em>
+        </xsl:if>
+      </a>
+    </p>
   </xsl:template> 
 
 </xsl:stylesheet>



More information about the Yanel-commits mailing list