From fff5e8fe24000a12efe046e2bab4057a5512ec74 Mon Sep 17 00:00:00 2001 From: fotis Date: Tue, 29 Feb 2000 09:41:19 +0000 Subject: [PATCH] to utilize the Xalan parser rather than XT for autogeneration of the various Java files (submitted by Sean Timm) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193279 13f79535-47bb-0310-9956-ffa450edef68 --- Makefile | 7 +- Makefile.rules | 4 +- src/codegen/code-point-mapping.xsl | 33 ++++---- src/codegen/font-file.xsl | 49 ++++++----- src/codegen/properties.xsl | 127 +++++++++++++++-------------- 5 files changed, 119 insertions(+), 101 deletions(-) diff --git a/Makefile b/Makefile index 8a22c526b..6c9a54505 100644 --- a/Makefile +++ b/Makefile @@ -88,13 +88,13 @@ $(GENDIR): mkdir -p $(GENDIR)/org/apache/fop/render/pdf/fonts; properties: $(PROPERTIESXML) $(PROPERTIESXSL) - cd $(GENDIR) && $(XT) ../$(PROPERTIESXML) ../$(PROPERTIESXSL) + cd $(GENDIR) && $(XALAN) -IN ../$(PROPERTIESXML) -XSL ../$(PROPERTIESXSL) charlist: $(CHARLISTXML) $(CHARLISTXSL) - cd $(GENDIR) && $(XT) ../$(CHARLISTXML) ../$(CHARLISTXSL) + cd $(GENDIR) && $(XALAN) -IN ../$(CHARLISTXML) -XSL ../$(CHARLISTXSL) fonts: $(FONTXML) $(FONTXSL) - cd $(GENDIR) && for font in $(FONTXML) ; do $(XT) ../$$font ../$(FONTXSL) ; done + cd $(GENDIR) && for font in $(FONTXML) ; do $(XALAN) -IN ../$$font -XSL ../$(FONTXSL) ; done docs: all $(APIDOCDIR) $(JAVADOC) $(JAVADOC_ARGS) $(PACKAGES) @@ -130,3 +130,4 @@ $(TARGETS:%=%subs): %subs : (cd $$dir && pwd && $(MAKE) $(MFLAGS) $*) || exit 1 ; \ done + diff --git a/Makefile.rules b/Makefile.rules index 2826a757b..6fc79344c 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -15,7 +15,8 @@ FIND=find TAR=tar JAR=jar -XT=${JAVA} com.jclark.xsl.sax.Driver +#XT=${JAVA} com.jclark.xsl.sax.Driver +XALAN=${JAVA} org.apache.xalan.xslt.Process JAVADOC = javadoc JAVADOC_ARGS = -overview $(BASEDIR)/src/overview.html -sourcepath "$(BASEDIR)/src;$(BASEDIR)/generated" -classpath "$(BASEDIR)/src;$(BASEDIR)/generated;$(CLASSPATH)" -d $(APIDOCDIR) @@ -26,3 +27,4 @@ TARGETS = all clean clobber .java.class: $(JAVAC) $(JAVAC_ARGS) $< + diff --git a/src/codegen/code-point-mapping.xsl b/src/codegen/code-point-mapping.xsl index 7c45b0fea..c972aed2e 100644 --- a/src/codegen/code-point-mapping.xsl +++ b/src/codegen/code-point-mapping.xsl @@ -1,19 +1,24 @@ - - - + + + + diff --git a/src/codegen/font-file.xsl b/src/codegen/font-file.xsl index b72fa5fc9..4bba5933f 100644 --- a/src/codegen/font-file.xsl +++ b/src/codegen/font-file.xsl @@ -1,26 +1,30 @@ - - - + + + + diff --git a/src/codegen/properties.xsl b/src/codegen/properties.xsl index a48135b77..6bb33db5c 100644 --- a/src/codegen/properties.xsl +++ b/src/codegen/properties.xsl @@ -1,128 +1,132 @@ - - + + - - + + + + -- 2.39.5