diff options
author | Glen Mazza <gmazza@apache.org> | 2004-01-17 16:05:40 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-01-17 16:05:40 +0000 |
commit | bb7e90c3a404703f461b45c8b43d8811f3acf62d (patch) | |
tree | 8720e575d815d435dab6249859bb9d9d628e4653 /src | |
parent | 506246bf703c01958f15461da26fc26e427438aa (diff) | |
download | xmlgraphics-fop-bb7e90c3a404703f461b45c8b43d8811f3acf62d.tar.gz xmlgraphics-fop-bb7e90c3a404703f461b45c8b43d8811f3acf62d.zip |
Further simplifications to file.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197212 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen/prop-val-enum-interfaces.xsl | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/src/codegen/prop-val-enum-interfaces.xsl b/src/codegen/prop-val-enum-interfaces.xsl index 7109e786a..4832334bc 100644 --- a/src/codegen/prop-val-enum-interfaces.xsl +++ b/src/codegen/prop-val-enum-interfaces.xsl @@ -112,97 +112,4 @@ import org.apache.fop.fo.Constants; </xsl:if> </xsl:template> -<xsl:template name="genSubpropEnum"> - <xsl:param name="prop" select="."/> - <xsl:choose> - <xsl:when test="$prop/compound/subproperty/enumeration"> - <xsl:for-each select="compound/subproperty[enumeration]"> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="name"/> - <xsl:text> { -</xsl:text> - <xsl:for-each select="enumeration/value"> - <xsl:text> - int </xsl:text> - <xsl:value-of select="@const"/> - <xsl:text> = Constants.</xsl:text> - <xsl:value-of select="@const"/> - <xsl:text>;</xsl:text> - </xsl:for-each> - <xsl:text> - } -</xsl:text> - </xsl:for-each> - </xsl:when> - <xsl:when test="$prop/use-generic"> - <xsl:call-template name="inhspenums"> - <xsl:with-param name="prop" select="key('genericref', $prop/use-generic)"/> - </xsl:call-template> - </xsl:when> - <xsl:when test="$prop/compound/subproperty/use-generic"> - <!-- generate "interface <subprop> extends <gensubprop>.Enums" --> - <xsl:for-each select="$prop/compound/subproperty[use-generic]"> - <xsl:variable name="bSpEnum"> - <xsl:call-template name="hasEnum"> - <xsl:with-param name="prop" - select="key('genericref', use-generic)"/> - </xsl:call-template> - </xsl:variable> - <xsl:if test="$bSpEnum='true'"> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="name"/> - <xsl:text> extends </xsl:text> - <xsl:value-of select="use-generic"/> - <xsl:text>.Enums { } -</xsl:text> - </xsl:if> - </xsl:for-each> - </xsl:when> - <xsl:otherwise> - <xsl:text> - false</xsl:text> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - -<xsl:template name="inhspenums"> - <xsl:param name="prop"/> - <xsl:variable name="generic_name"> - <xsl:choose> - <xsl:when test="$prop/class-name"> - <xsl:value-of select="$prop/class-name"/> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name="makeClassName"> - <xsl:with-param name="propstr" select="$prop/name"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <!-- generate "interface <subprop> extends <genprop>.<subprop>" --> - <xsl:for-each select="$prop/compound/subproperty[enumeration]"> - <xsl:variable name="spname"> - <xsl:call-template name="makeClassName"> - <xsl:with-param name="propstr" select="name"/> - </xsl:call-template> - </xsl:variable> - <xsl:text> - public interface </xsl:text> - <xsl:value-of select="$spname"/> - <xsl:text> extends </xsl:text> - <xsl:value-of select="$generic_name"/> - <xsl:text>.Enums.</xsl:text> - <xsl:value-of select="$spname"/> - <xsl:text> { }</xsl:text> - </xsl:for-each> - - <xsl:if test="$prop/use-generic"> - <xsl:call-template name="inhspenums"> - <xsl:with-param name="prop" select="key('genericref', $prop/use-generic)"/> - </xsl:call-template> - </xsl:if> -</xsl:template> - </xsl:stylesheet> |