[Yanel-commits] rev 49014 - public/yanel/trunk/src/webapp/htdocs/Google-Analytics

michi at wyona.com michi at wyona.com
Fri Apr 23 14:38:27 CEST 2010


Author: michi
Date: 2010-04-23 14:38:27 +0200 (Fri, 23 Apr 2010)
New Revision: 49014

Modified:
   public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt
Log:
query string fixed and comments added

Modified: public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt
===================================================================
--- public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt	2010-04-23 12:29:48 UTC (rev 49013)
+++ public/yanel/trunk/src/webapp/htdocs/Google-Analytics/GA.xslt	2010-04-23 12:38:27 UTC (rev 49014)
@@ -20,13 +20,15 @@
   </xsl:copy>
 </xsl:template>
 
+
+
+<!-- INFO: Check if URL corresponds to an asset -->
 <xsl:template name="yanel-xsl:is-asset-URL">
   <xsl:param name="URL"/>
-  <xsl:variable name="url_without_qs" select="$URL"/>
-<!--
-  <xsl:variable name="url_without_qs" select="substring-before($URL, '?')"/>
--->
 
+  <!-- INFO: Remove query string from URL -->
+  <xsl:variable name="url_without_qs"><xsl:choose><xsl:when test="contains($URL, '?')"><xsl:value-of select="substring-before($URL, '?')"/></xsl:when><xsl:otherwise><xsl:value-of select="$URL"/></xsl:otherwise></xsl:choose></xsl:variable>
+
   <xsl:choose>
     <!-- INFO: Do not track assets on full-qualified (presumably other than the current/local) domains -->
     <!--TODO: Check the realm URL in case someone wants to use the full URL (also locally)? -->
@@ -58,6 +60,8 @@
 </xsl:template>
 
 
+
+<!-- INFO: Add onclick if URL corresponds to an asset -->
 <xsl:template match="xhtml:a">
   <xsl:param name="URL" select="@href"/>
 



More information about the Yanel-commits mailing list