svn commit: r591105 - /lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: nettings
Date: Thu Nov  1 11:16:21 2007
New Revision: 591105

URL: http://svn.apache.org/viewvc?rev=591105&view=rev
Log:
made xml prettyprinter aware of the xhtml pre tag (e.g. leave it alone)


Modified:
    lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl

Modified: lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl?rev=591105&r1=591104&r2=591105&view=diff
==============================================================================
--- lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl (original)
+++ lenya/trunk/src/modules/prettyprinting/xslt/xml2nicexml.xsl Thu Nov  1 11:16:21 2007
@@ -7,7 +7,9 @@
 -->
 
 <xsl:stylesheet version="1.0"
-      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+      xmlns:xhtml="http://www.w3.org/1999/xhtml"
+>
 <xsl:output method="xml"/>
 
 <xsl:param name="indent-increment" select="'  '" />
@@ -81,4 +83,11 @@
     <xsl:value-of select="normalize-space(.)"/>
   </xsl:template>
 
-</xsl:stylesheet>
+<!--
+  leave the contents of the xhtml pre tag alone to preserve intended formatting
+-->
+  <xsl:template match="xhtml:pre/node()">
+    <xsl:copy-of select="."/>
+  </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
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.