You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2011/05/31 16:24:49 UTC

svn commit: r1129693 - /poi/trunk/src/types/styles/hdftype.xsl

Author: nick
Date: Tue May 31 14:24:49 2011
New Revision: 1129693

URL: http://svn.apache.org/viewvc?rev=1129693&view=rev
Log:
Apply patch from bug #51293 from Sergey for hdf types generation

Modified:
    poi/trunk/src/types/styles/hdftype.xsl

Modified: poi/trunk/src/types/styles/hdftype.xsl
URL: http://svn.apache.org/viewvc/poi/trunk/src/types/styles/hdftype.xsl?rev=1129693&r1=1129692&r2=1129693&view=diff
==============================================================================
--- poi/trunk/src/types/styles/hdftype.xsl (original)
+++ poi/trunk/src/types/styles/hdftype.xsl Tue May 31 14:24:49 2011
@@ -23,6 +23,8 @@
    xmlns:field="org.apache.poi.hdf.generator.HDFFieldIterator"
    xmlns:java="java" >
 
+    <xsl:output method="text"/>
+
 <xsl:template match="record">
 
 <xsl:if test="@package">
@@ -74,6 +76,7 @@ public abstract class <xsl:value-of sele
 <xsl:text>        </xsl:text><xsl:value-of select="field:serialiseEncoder($fieldIterator,position(),@name,@size,@type)"/>;
 </xsl:for-each>
     }
+</xsl:if>
 
     public String toString()
     {
@@ -84,7 +87,7 @@ public abstract class <xsl:value-of sele
         buffer.append("[/<xsl:value-of select="@name"/>]\n");
         return buffer.toString();
     }
-</xsl:if>
+
     /**
      * Size of record (exluding 4 byte header)
      */



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