diff options
author | Andrew C. Oliver <acoliver@apache.org> | 2002-09-05 00:26:28 +0000 |
---|---|---|
committer | Andrew C. Oliver <acoliver@apache.org> | 2002-09-05 00:26:28 +0000 |
commit | 744ffde73d282e8254b70d76aa0c1e400872563f (patch) | |
tree | 571ec8b70195a4c4171bcad981e3e990302460bc /src/records | |
parent | 5e907911d8fe3bf9651f5392b83849be05340565 (diff) | |
download | poi-744ffde73d282e8254b70d76aa0c1e400872563f.tar.gz poi-744ffde73d282e8254b70d76aa0c1e400872563f.zip |
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11721 clone for sheets
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352836 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/records')
-rw-r--r-- | src/records/styles/record.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/records/styles/record.xsl b/src/records/styles/record.xsl index d4ae2ac80d..685af43c72 100644 --- a/src/records/styles/record.xsl +++ b/src/records/styles/record.xsl @@ -177,6 +177,16 @@ public class <xsl:value-of select="@name"/>Record return this.sid; } + public Object clone() { + <xsl:value-of select="@name"/>Record rec = new <xsl:value-of select="@name"/>Record(); + +<xsl:for-each select="//fields/field"><xsl:text> rec.</xsl:text><xsl:value-of select="recutil:getFieldName(position(),@name,0)"/><xsl:text> = </xsl:text><xsl:value-of select="recutil:getFieldName(position(),@name,0)"/><xsl:text>; +</xsl:text></xsl:for-each> + return rec; + } + + + <xsl:apply-templates select="//field" mode="getset"/> <xsl:apply-templates select="//field" mode="bits"/> |