GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
XML
Browse code
Defined a set of make functions for calling the various XSLT processors, removing the need for all the 'ifeq' code.
master
OLD_GRAPHICS_HANDLING
1 parent
d13d867
commit
4e6c527e788485fc96c35fcf85b367cf214969e9
cedwards
authored
on 23 Feb 2004
Patch
Showing
1 changed file
Makefile
Ignore Space
Show notes
View
Makefile
# $Id$ # XSLT processor specific calling templates/functions: xalanc = Xalan -p format "'$(4)'" -o $(3) $(1) $(2) xalanj = xalan -param format "'$(4)'" $(1) $(2) > $(3) saxon = saxon $(1) $(2) format=$(4) > $(3) # Generic function for runnning the local preferred XSLT processor: xslt = $(if $(findstring $(XSLT), 'xalan-c'), $(call xalanc,$(1),$(2),$(3),$(4)), $(if $(findstring $(XSLT), 'xalan-j'), $(call xalanj,$(1),$(2),$(3),$(4)), $(if $(findstring $(XSLT), 'saxon'), $(call saxon,$(1),$(2),$(3),$(4))))) .PHONY: clean all: xml2html.xsl xml2latex.xsl oracle-docs.xsl clean: rm -f xml2html.xsl xml2latex.xsl oracle-docs.xsl xml2html.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile $(call xslt,$<,xml2xslt.xsl,$@,html) xml2latex.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile $(call xslt,$<,xml2xslt.xsl,$@,latex) oracle-docs.xsl: oracle-docs.perl perl $< '.*' xslt > $@
# $Id$ .PHONY: clean all: xml2html.xsl xml2latex.xsl oracle-docs.xsl clean: rm -f xml2html.xsl xml2latex.xsl oracle-docs.xsl xml2html.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile ifeq ($(XSLT),xalan-c) Xalan -p format "'html'" $< xml2xslt.xsl > $@ else ifeq ($(XSLT),xalan-j) xalan -param format "'html'" $< xml2xslt.xsl > $@ else saxon $< xml2xslt.xsl format=html > $@ endif endif xml2latex.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile ifeq ($(XSLT),xalan-c) Xalan -p format "'latex'" $< xml2xslt.xsl > $@ else ifeq ($(XSLT),xalan-j) xalan -param format "'latex'" $< xml2xslt.xsl > $@ else saxon $< xml2xslt.xsl format=latex > $@ endif endif oracle-docs.xsl: oracle-docs.perl perl $< '.*' xslt > $@
Show line notes below