]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Reversed order of code: add string constant first to HashMap, *then* create
authorGlen Mazza <gmazza@apache.org>
Mon, 22 Dec 2003 21:50:58 +0000 (21:50 +0000)
committerGlen Mazza <gmazza@apache.org>
Mon, 22 Dec 2003 21:50:58 +0000 (21:50 +0000)
corresponding maker (latter classes weren't having access to the string constant
in their constructors.)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197049 13f79535-47bb-0310-9956-ffa450edef68

src/codegen/fo-property-mapping.xsl

index c51a08bda10d807a4ab6899e0295029ba1e6468c..ad226264586119d68a55476a8f9fcf7895522dae 100644 (file)
@@ -79,8 +79,8 @@ Software Foundation, please see <http://www.apache.org/>.
   <xsl:variable name="lcletters" select="'abcdefghijklmnopqrstuvwxyz-:'" />
   <xsl:variable name="ucletters" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ__'" />
   <xsl:variable name="enum" select="translate($prop/name, $lcletters, $ucletters)"/>
-<xsl:text>    </xsl:text><xsl:value-of select="$htname"/>[PR_<xsl:value-of select="$enum"/>] =<xsl:value-of select="$makerclass"/>.maker(PR_<xsl:value-of select="$enum"/>);
 <xsl:text>    addPropertyName("</xsl:text><xsl:value-of select="$prop/name"/>", PR_<xsl:value-of select="$enum"/>);
+<xsl:text>    </xsl:text><xsl:value-of select="$htname"/>[PR_<xsl:value-of select="$enum"/>] =<xsl:value-of select="$makerclass"/>.maker(PR_<xsl:value-of select="$enum"/>);
 </xsl:template>