mirror of https://github.com/apache/poi.git
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
7956f9da8b
commit
3d7cd947fd
|
@ -23,6 +23,8 @@
|
||||||
xmlns:field="org.apache.poi.hdf.generator.HDFFieldIterator"
|
xmlns:field="org.apache.poi.hdf.generator.HDFFieldIterator"
|
||||||
xmlns:java="java" >
|
xmlns:java="java" >
|
||||||
|
|
||||||
|
<xsl:output method="text"/>
|
||||||
|
|
||||||
<xsl:template match="record">
|
<xsl:template match="record">
|
||||||
|
|
||||||
<xsl:if test="@package">
|
<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:text> </xsl:text><xsl:value-of select="field:serialiseEncoder($fieldIterator,position(),@name,@size,@type)"/>;
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
}
|
}
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
@ -84,7 +87,7 @@ public abstract class <xsl:value-of select="@name"/>AbstractType
|
||||||
buffer.append("[/<xsl:value-of select="@name"/>]\n");
|
buffer.append("[/<xsl:value-of select="@name"/>]\n");
|
||||||
return buffer.toString();
|
return buffer.toString();
|
||||||
}
|
}
|
||||||
</xsl:if>
|
|
||||||
/**
|
/**
|
||||||
* Size of record (exluding 4 byte header)
|
* Size of record (exluding 4 byte header)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue