You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/07/26 02:26:37 UTC
svn commit: r225214 - in /lenya/trunk/src/webapp/lenya/pubs/blog:
sitemap.xmap xslt/feed/xinclude.xsl
Author: michi
Date: Mon Jul 25 17:26:32 2005
New Revision: 225214
URL: http://svn.apache.org/viewcvs?rev=225214&view=rev
Log:
TraversableGenerator instead of DirectoryGenerator used
Modified:
lenya/trunk/src/webapp/lenya/pubs/blog/sitemap.xmap
lenya/trunk/src/webapp/lenya/pubs/blog/xslt/feed/xinclude.xsl
Modified: lenya/trunk/src/webapp/lenya/pubs/blog/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/blog/sitemap.xmap?rev=225214&r1=225213&r2=225214&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/blog/sitemap.xmap (original)
+++ lenya/trunk/src/webapp/lenya/pubs/blog/sitemap.xmap Mon Jul 25 17:26:32 2005
@@ -188,10 +188,10 @@
<map:act type="resource-exists">
<map:parameter name="url" value="lenya://lenya/pubs/blog/content/{1}/entries"/>
- <map:generate type="directory" src="content/{../1}/entries">
<!--
- <map:generate type="traversable" src="lenya://lenya/pubs/blog/content/{../1}/entries">
+ <map:generate type="directory" src="content/{../1}/entries">
-->
+ <map:generate type="traversable" src="lenya://lenya/pubs/blog/content/{../1}/entries">
<map:parameter name="depth" value="4"/>
<map:parameter name="reverse" value="true"/>
</map:generate>
Modified: lenya/trunk/src/webapp/lenya/pubs/blog/xslt/feed/xinclude.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/blog/xslt/feed/xinclude.xsl?rev=225214&r1=225213&r2=225214&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/blog/xslt/feed/xinclude.xsl (original)
+++ lenya/trunk/src/webapp/lenya/pubs/blog/xslt/feed/xinclude.xsl Mon Jul 25 17:26:32 2005
@@ -26,6 +26,32 @@
<xsl:param name="area"/>
<xsl:template match="/">
+ <xsl:apply-templates select="col:collection" xmlns:col="http://apache.org/cocoon/collection/1.0"/>
+</xsl:template>
+<xsl:template match="col:collection" xmlns:col="http://apache.org/cocoon/collection/1.0">
+<echo:feed xmlns:echo="http://purl.org/atom/ns#" xmlns="http://www.w3.org/1999/xhtml" version="0.3" xml:lang="en">
+ <xi:include href="lenya://lenya/pubs/blog/content/{$area}/feeds/{$feedid}/index.xml#xmlns(atom=http://purl.org/atom/ns#)xpointer(/atom:feed/atom:title)"/>
+ <xi:include href="lenya://lenya/pubs/blog/content/{$area}/feeds/{$feedid}/index.xml#xmlns(atom=http://purl.org/atom/ns#)xpointer(/atom:feed/atom:link)"/>
+ <xi:include href="lenya://lenya/pubs/blog/content/{$area}/feeds/{$feedid}/index.xml#xmlns(atom=http://purl.org/atom/ns#)xpointer(/atom:feed/atom:modified)"/>
+
+ <xsl:for-each select="col:collection">
+ <xsl:variable name="year"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:for-each select="col:collection">
+ <xsl:variable name="month"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:for-each select="col:collection">
+ <xsl:variable name="day"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:for-each select="col:collection">
+ <xsl:variable name="entryid"><xsl:value-of select="@name"/></xsl:variable>
+ <xi:include href="{@uri}/index.xml"/>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:for-each>
+</echo:feed>
+</xsl:template>
+
+<!--
+<xsl:template match="/">
<xsl:apply-templates select="dir:directory" xmlns:dir="http://apache.org/cocoon/directory/2.0"/>
</xsl:template>
<xsl:template match="dir:directory" xmlns:dir="http://apache.org/cocoon/directory/2.0">
@@ -49,5 +75,6 @@
</xsl:for-each>
</echo:feed>
</xsl:template>
+-->
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org