svn commit: r643888 - /lenya/trunk/src/modules/news/xslt/collection2rss.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Apr  2 05:49:26 2008
New Revision: 643888

URL: http://svn.apache.org/viewvc?rev=643888&view=rev
Log:
Reverting previous changes, didn't help :(

Modified:
    lenya/trunk/src/modules/news/xslt/collection2rss.xsl

Modified: lenya/trunk/src/modules/news/xslt/collection2rss.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/xslt/collection2rss.xsl?rev=643888&r1=643887&r2=643888&view=diff
==============================================================================
--- lenya/trunk/src/modules/news/xslt/collection2rss.xsl (original)
+++ lenya/trunk/src/modules/news/xslt/collection2rss.xsl Wed Apr  2 05:49:26 2008
@@ -24,7 +24,7 @@
   xmlns:col="http://apache.org/cocoon/lenya/collection/1.0"
   xmlns:meta="http://apache.org/lenya/meta/1.0/"
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
-  exclude-result-prefixes="xhtml lenya col meta dc i18n"
+  exclude-result-prefixes="xhtml lenya col meta dc i18n xml"
   >
   
   <xsl:include href="fallback://lenya/modules/xhtml/xslt/helper-object.xsl"/>
@@ -73,19 +73,13 @@
         We have to use <xsl:attribute> instead of attribute-value-templates
         for @xml:lang to avoid the xmlns:xml declaration in the output.
       -->
-      <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}">
-        <xsl:attribute name="lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
-      </meta:value></title>
-      <description><meta:value element="description" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}">
-        <xsl:attribute name="lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
-      </meta:value></description>
+      <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}" lang="{@xml:lang}"/></title>
+      <description><meta:value element="description" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}" lang="{@xml:lang}"/></description>
       <xsl:variable name="href">
         <xsl:call-template name="getHref"/>
         </xsl:variable>
       <link><xhtml:a href="{$href}"/></link>
-      <author><meta:value element="creator" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}">
-        <xsl:attribute name="lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
-      </meta:value></author>
+      <author><meta:value element="creator" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}" lang="{@xml:lang}"/></author>
       <pubDate><i18n:date-time locale="en" src-pattern="yyyy-MM-dd hh:mm:ss" pattern="EEE, dd MMM yyyy HH:mm:ss Z" value="{dc:date}"/></pubDate>
     </item>
   </xsl:template>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.