]> source.dussan.org Git - poi.git/commitdiff
Apply patch from bug #51293 from Sergey for hdf types generation
authorNick Burch <nick@apache.org>
Tue, 31 May 2011 14:24:49 +0000 (14:24 +0000)
committerNick Burch <nick@apache.org>
Tue, 31 May 2011 14:24:49 +0000 (14:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1129693 13f79535-47bb-0310-9956-ffa450edef68

src/types/styles/hdftype.xsl

index 7562f9b5ba706d0df4a9572d31e5eb0faeeb6499..354596b2733186e87751680e9a6725fb8f84df77 100644 (file)
@@ -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 select="@name"/>AbstractType
 <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 select="@name"/>AbstractType
         buffer.append("[/<xsl:value-of select="@name"/>]\n");
         return buffer.toString();
     }
-</xsl:if>
+
     /**
      * Size of record (exluding 4 byte header)
      */