You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/01/06 18:02:27 UTC

svn commit: r124412 - /lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl

Author: andreas
Date: Thu Jan  6 09:02:26 2005
New Revision: 124412

URL: http://svn.apache.org/viewcvs?view=rev&rev=124412
Log:
transforming non-namespace elements to XHTML
Modified:
   lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl

Modified: lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl?view=diff&rev=124412&p1=lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl&r1=124411&p2=lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl&r2=124412
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl	(original)
+++ lenya/trunk/src/webapp/lenya/pubs/blog/xslt/entry/body.xsl	Thu Jan  6 09:02:26 2005
@@ -46,7 +46,7 @@
 </xsl:template>
 
 <xsl:template match="echo:content[@type='application/xhtml+xml']">
-  <xsl:copy-of select="node()"/>
+  <xsl:apply-templates/>
 </xsl:template>
 
 <xsl:template match="echo:content">
@@ -69,6 +69,12 @@
 
 <xsl:template name="permalink">
   <a href="index.html">Permalink</a>
+</xsl:template>
+
+<xsl:template match="*[namespace-uri() = '']">
+  <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
+    <xsl:apply-templates select="@*|node()"/>
+  </xsl:element>
 </xsl:template>
  
 </xsl:stylesheet>  

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