You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2006/09/07 16:34:07 UTC

svn commit: r441096 - in /lenya/trunk/src/modules/sitetree: java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java xslt/navigation/sitetree2nav.xsl

Author: thorsten
Date: Thu Sep  7 07:34:06 2006
New Revision: 441096

URL: http://svn.apache.org/viewvc?view=rev&rev=441096
Log:
Teaching the sitetree generator to output as well the uuid. 
Further extending the sitetree2nav.xsl to output uuid as well.

Modified:
    lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java
    lenya/trunk/src/modules/sitetree/xslt/navigation/sitetree2nav.xsl

Modified: lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java?view=diff&rev=441096&r1=441095&r2=441096
==============================================================================
--- lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java (original)
+++ lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGenerator.java Thu Sep  7 07:34:06 2006
@@ -104,6 +104,7 @@
     protected static final String ATTR_BASE = "base";
     protected static final String ATTR_SUFFIX = "suffix";
     protected static final String ATTR_HREF = "href";
+    protected static final String ATTR_UUID = "uuid";
     protected static final String ATTR_LANG = "lang";
     protected static final String ATTR_TYPE = "mimetype";
 
@@ -399,6 +400,7 @@
         String href = node.getHref();
         String suffix = node.getSuffix();
         String isFolder = Boolean.toString(isFolder(node));
+        String uuid = node.getUuid();
 
         if (this.getLogger().isDebugEnabled()) {
             this.getLogger().debug("adding attribute id: " + id);
@@ -419,6 +421,8 @@
             this.attributes.addAttribute("", ATTR_HREF, ATTR_HREF, "CDATA", href);
         if (suffix != null)
             this.attributes.addAttribute("", ATTR_SUFFIX, ATTR_SUFFIX, "CDATA", suffix);
+        if (uuid != null)
+            this.attributes.addAttribute("", ATTR_UUID, ATTR_UUID, "CDATA", uuid);
         this.attributes.addAttribute("", ATTR_FOLDER, ATTR_FOLDER, "CDATA", isFolder);
         
         if (this.showType) {

Modified: lenya/trunk/src/modules/sitetree/xslt/navigation/sitetree2nav.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/xslt/navigation/sitetree2nav.xsl?view=diff&rev=441096&r1=441095&r2=441096
==============================================================================
--- lenya/trunk/src/modules/sitetree/xslt/navigation/sitetree2nav.xsl (original)
+++ lenya/trunk/src/modules/sitetree/xslt/navigation/sitetree2nav.xsl Thu Sep  7 07:34:06 2006
@@ -101,6 +101,7 @@
     <xsl:copy-of select="@visibleinnav"/>
     <xsl:copy-of select="@protected"/>
     <xsl:copy-of select="@folder"/>
+    <xsl:copy-of select="@uuid"/>
   
     <!-- basic url - for all nodes -->
   



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org