[Yanel-commits] rev 36309 - public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs

michi at wyona.com michi at wyona.com
Fri May 2 15:13:43 CEST 2008


Author: michi
Date: 2008-05-02 15:13:42 +0200 (Fri, 02 May 2008)
New Revision: 36309

Modified:
   public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/google-sitemap.xsl
Log:
note about domain added

Modified: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/google-sitemap.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/google-sitemap.xsl	2008-05-02 13:05:37 UTC (rev 36308)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/google-sitemap.xsl	2008-05-02 13:13:42 UTC (rev 36309)
@@ -9,6 +9,8 @@
 
   <xsl:param name="yanel.back2realm" select="'BACK2REALM_IS_NULL'"/>
   <xsl:param name="yanel.reservedPrefix" select="'RESERVEDPREFIX_IS_NULL'"/>
+  <!-- TODO: Make the domain configurable per realm! -->
+  <xsl:param name="domain" select="'DOMAIN_IS_NULL'"/>
 
   <xsl:template match="/">
     <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@@ -17,12 +19,12 @@
   </xsl:template>
 
   <xsl:template match="collection">
-    <url><loc><xsl:value-of select="@path"/></loc></url>
+    <url><loc><xsl:value-of select="$domain"/><xsl:value-of select="@path"/></loc></url>
     <xsl:apply-templates/>
   </xsl:template>
 
   <xsl:template match="resource">
-    <url><loc><xsl:value-of select="@path"/></loc></url>
+    <url><loc><xsl:value-of select="$domain"/><xsl:value-of select="@path"/></loc></url>
   </xsl:template>
 
   <xsl:template match="label"></xsl:template>



More information about the Yanel-commits mailing list