]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Further simplifications to file.
authorGlen Mazza <gmazza@apache.org>
Sat, 17 Jan 2004 16:05:40 +0000 (16:05 +0000)
committerGlen Mazza <gmazza@apache.org>
Sat, 17 Jan 2004 16:05:40 +0000 (16:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197212 13f79535-47bb-0310-9956-ffa450edef68

src/codegen/prop-val-enum-interfaces.xsl

index 7109e786a4434d725d5d0790758f139ff0edf030..4832334bc2ff3be7a76aa375a3a30920d5d6b08e 100644 (file)
@@ -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>