gmazza      2004/01/17 08:05:40

  Modified:    src/codegen prop-val-enum-interfaces.xsl
  Log:
  Further simplifications to file.
  
  Revision  Changes    Path
  1.3       +1 -94     xml-fop/src/codegen/prop-val-enum-interfaces.xsl
  
  Index: prop-val-enum-interfaces.xsl
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/codegen/prop-val-enum-interfaces.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- prop-val-enum-interfaces.xsl      17 Jan 2004 15:37:27 -0000      1.2
  +++ prop-val-enum-interfaces.xsl      17 Jan 2004 16:05:40 -0000      1.3
  @@ -112,97 +112,4 @@
     </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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to