Apply patch from bug #51293 from Sergey for hdf types generation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1129693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f3b6cc03d4
commit
3e0b243605
@ -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)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user