revegen ramp up. here we go!
This commit is contained in:
100
legacy-resumes/resume-1/examples/addressing/Makefile
Normal file
100
legacy-resumes/resume-1/examples/addressing/Makefile
Normal file
@@ -0,0 +1,100 @@
|
||||
# Makefile
|
||||
#
|
||||
# Makefile for resumes
|
||||
#
|
||||
# Copyright (c) 2000-2001 Sean Kelly
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# Replace this with the basename (no .xml extension) of your resume
|
||||
# source file. In this example, my resume is in "example.xml", so I
|
||||
# put "example" here.
|
||||
# This can also be passed on the command line: "make RESUME=canada".
|
||||
#
|
||||
RESUME = usa
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
# uncomment these lines - and set STYLEDIR appropriately - to use a local
|
||||
# installation.
|
||||
#STYLEDIR=file:/usr/local/cvs/resume/src/www/xsl
|
||||
#HTML_STYLE = $(STYLEDIR)/us-html.xsl
|
||||
#FO_STYLE = $(STYLEDIR)/us-letter.xsl
|
||||
#TXT_STYLE = $(STYLEDIR)/us-text.xsl
|
||||
|
||||
# otherwise, use the published versions over the net.
|
||||
HTML_STYLE = http://xmlresume.sourceforge.net/xsl/html.xsl
|
||||
FO_STYLE = http://xmlresume.sourceforge.net/xsl/fo.xsl
|
||||
TXT_STYLE = http://xmlresume.sourceforge.net/xsl/text.xsl
|
||||
|
||||
# The Java virtual machine. If it's in your $PATH, you only need
|
||||
# the first version; if it isn't you'll need to specify the full path.
|
||||
JAVACMD=java
|
||||
#JAVACMD=/usr/jdk1.3.0_02/bin/java
|
||||
|
||||
# You may need to uncomment this and have it point to your Fop installation.
|
||||
#CLASSPATH = /usr/local/Fop/lib/xalan-2.0.0.jar:/usr/local/Fop/xerces-1.2.3.jar:/usr/local/Fop/fop.jar
|
||||
|
||||
# End of configurable parameters.
|
||||
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .html .fo .pdf .xml .xsl .txt
|
||||
|
||||
|
||||
HDRFMT=-param header.format standard
|
||||
|
||||
RESUMES=usa canada italy norway
|
||||
|
||||
# Define the address format. Need one of these lines for each
|
||||
# .xml source file.
|
||||
brazil_format = european
|
||||
canada_format = standard
|
||||
ireland_format = standard
|
||||
italy_format = italian
|
||||
norway_format = european
|
||||
nz_format = standard
|
||||
uk_format = standard
|
||||
untagged_format = standard
|
||||
usa_format = standard
|
||||
|
||||
all: $(RESUME).html $(RESUME).pdf $(RESUME).txt
|
||||
|
||||
clean:
|
||||
-rm -f $(RESUME).html $(RESUME).pdf $(RESUME).fo $(RESUME).txt *~
|
||||
|
||||
|
||||
%.html: %.xml
|
||||
$(JAVACMD) -cp $(CLASSPATH) org.apache.xalan.xslt.Process -in $< -xsl $(HTML_STYLE) -out $@ $(HDRFMT) -param address.format $($*_format)
|
||||
|
||||
%.txt: %.xml
|
||||
$(JAVACMD) -cp $(CLASSPATH) org.apache.xalan.xslt.Process -in $< -xsl $(TXT_STYLE) -out $@ $(HDRFMT) -param address.format $($*_format)
|
||||
|
||||
%.fo: %.xml
|
||||
$(JAVACMD) -cp $(CLASSPATH) org.apache.xalan.xslt.Process -in $< -xsl $(FO_STYLE) -out $@ $(HDRFMT) -param address.format $($*_format)
|
||||
|
||||
%.pdf: %.fo
|
||||
$(JAVACMD) -cp $(CLASSPATH) org.apache.fop.apps.Fop $< $@
|
||||
|
10
legacy-resumes/resume-1/examples/addressing/README
Normal file
10
legacy-resumes/resume-1/examples/addressing/README
Normal file
@@ -0,0 +1,10 @@
|
||||
This directory contains a set of minimal documents for testing the
|
||||
address handling code. Each test can be built by passing the RESUME
|
||||
variable to make, for example:
|
||||
|
||||
make RESUME=italy
|
||||
|
||||
will build italy.html, italy.txt and italy.pdf from the source file italy.xml.
|
||||
|
||||
If you add additional XML test files to this directory, please be sure to
|
||||
set the <filename>_format variable in the Makefile accordingly.
|
45
legacy-resumes/resume-1/examples/addressing/brazil.xml
Normal file
45
legacy-resumes/resume-1/examples/addressing/brazil.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample Brazilian address. Uses 'european' format. Correct formatting is:
|
||||
|
||||
Marina Costa e Silva
|
||||
Rua Afonso Camargo, 805
|
||||
Santana
|
||||
85070-200 Guarapuava
|
||||
PR
|
||||
Brazil
|
||||
|
||||
This is actually a small variation on the canonical version according to
|
||||
http://www.correios.com.br/Servicos/cep/Forma_Enderecamento.cfm .
|
||||
The most absolutely correct would be:
|
||||
|
||||
Marina Costa e Silva
|
||||
Rua Afonso Camargo, 805
|
||||
Santana
|
||||
Guarapuava - PR
|
||||
85070-200
|
||||
Brazil
|
||||
|
||||
$Id: brazil.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>Marina</firstname>
|
||||
<surname>Costa e Silva</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>Rua Afonso Camargo, 805</street>
|
||||
<ward>Santana</ward>
|
||||
<city>Guarapuava</city>
|
||||
<state>PR</state>
|
||||
<postalCode>85070-200</postalCode>
|
||||
<country>Brazil</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
33
legacy-resumes/resume-1/examples/addressing/canada.xml
Normal file
33
legacy-resumes/resume-1/examples/addressing/canada.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample Canadian address. Uses 'standard' format. Correct formatting is:
|
||||
|
||||
M.J. Arthur
|
||||
1156 Rue McLean
|
||||
Suite 1500
|
||||
Kamloops, BC V2B 5S8
|
||||
Canada
|
||||
|
||||
$Id: canada.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>M.J.</firstname>
|
||||
<surname>Arthur</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>1165 Rue McLean</street>
|
||||
<street2>Suite 1500</street2>
|
||||
<city>Kamloops</city>
|
||||
<province>BC</province>
|
||||
<postalCode>V2B 5S8</postalCode>
|
||||
<country>Canada</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
30
legacy-resumes/resume-1/examples/addressing/ireland.xml
Normal file
30
legacy-resumes/resume-1/examples/addressing/ireland.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample Ireland address. Uses 'standard' format. Correct formatting is:
|
||||
|
||||
William Clifton
|
||||
1 O'Leary Place
|
||||
Cobh, Co. Cork
|
||||
Ireland
|
||||
|
||||
$Id: ireland.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>William</firstname>
|
||||
<surname>Clifton</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>1 O'Leary Place</street>
|
||||
<city>Coby</city>
|
||||
<county>Co. Cork</county>
|
||||
<country>Ireland</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
31
legacy-resumes/resume-1/examples/addressing/italy.xml
Normal file
31
legacy-resumes/resume-1/examples/addressing/italy.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample Italian address. Use 'italian' format. Correct formatting is:
|
||||
|
||||
Giuseppe Verdi
|
||||
Via Garibaldi, 23
|
||||
123 456 Sorrento (NA)
|
||||
Italy
|
||||
|
||||
$Id: italy.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>Giuseppe</firstname>
|
||||
<surname>Verdi</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>Via Garibaldi, 23</street>
|
||||
<city>Sorrento</city>
|
||||
<postalCode>123 456</postalCode>
|
||||
<province>NA</province>
|
||||
<country>Italy</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
30
legacy-resumes/resume-1/examples/addressing/norway.xml
Normal file
30
legacy-resumes/resume-1/examples/addressing/norway.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample Norwegian address. Uses 'european' format. Correct formatting is:
|
||||
|
||||
Henrik Ibsen
|
||||
POB 1181 Sentrum
|
||||
0107 Oslo
|
||||
Norway
|
||||
|
||||
$Id: norway.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>Henrik</firstname>
|
||||
<surname>Ibsen</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>POB 1181 Sentrum</street>
|
||||
<city>Oslo</city>
|
||||
<postalCode>0107</postalCode>
|
||||
<country>Norway</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
32
legacy-resumes/resume-1/examples/addressing/nz.xml
Normal file
32
legacy-resumes/resume-1/examples/addressing/nz.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample New Zealand address. Use 'standard' format. Correct formatting is:
|
||||
|
||||
John Brown
|
||||
236 Majoribanks Street
|
||||
Mount Victoria
|
||||
Wellington 6001
|
||||
New Zealand
|
||||
|
||||
$Id: nz.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>John</firstname>
|
||||
<surname>Brown</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>236 Majoribanks Street</street>
|
||||
<suburb>Mount Victoria</suburb>
|
||||
<city>Wellington</city>
|
||||
<postalCode>6001</postalCode>
|
||||
<country>New Zealand</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
36
legacy-resumes/resume-1/examples/addressing/uk.xml
Normal file
36
legacy-resumes/resume-1/examples/addressing/uk.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample UK address. Uses 'standard' format. Correct formatting is:
|
||||
|
||||
A.J. Smith
|
||||
3 High Street
|
||||
Otterly
|
||||
Southampton, Hants SO31 4NG
|
||||
UK
|
||||
|
||||
Note that county is no longer a required field for UK addresses, but
|
||||
it is in fairly common usage.
|
||||
|
||||
$Id: uk.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>A.J.</firstname>
|
||||
<surname>Smith</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>3 High Street</street>
|
||||
<street2>Otterly</street2>
|
||||
<city>Southampton</city>
|
||||
<county>Hants</county>
|
||||
<postalCode>SO31 4NG</postalCode>
|
||||
<country>UK</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
29
legacy-resumes/resume-1/examples/addressing/untagged.xml
Normal file
29
legacy-resumes/resume-1/examples/addressing/untagged.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample untagged address; should be displayed exactly as entered,
|
||||
with line breaks preserved.
|
||||
|
||||
Stewart Evans
|
||||
PO Box 1273
|
||||
Santa Cruz, CA
|
||||
95061
|
||||
|
||||
$Id: untagged.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>Stewart</firstname>
|
||||
<surname>Evans</surname>
|
||||
</name>
|
||||
<address>PO Box 1273
|
||||
Santa Cruz, CA
|
||||
95061
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
31
legacy-resumes/resume-1/examples/addressing/usa.xml
Normal file
31
legacy-resumes/resume-1/examples/addressing/usa.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Sample USA address. Uses 'standard' format. Correct formatting is:
|
||||
|
||||
Stewart Evans
|
||||
PO Box 1273
|
||||
Santa Cruz, CA 95061
|
||||
USA
|
||||
|
||||
$Id: usa.xml,v 1.1 2001/12/15 06:02:05 stewarte Exp $
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="html.xsl" type="text/xsl"?>
|
||||
<!DOCTYPE resume PUBLIC "-//Sean Kelly//DTD Resume 1.2.2//EN" "http://xmlresume.sourceforge.net/dtd/resume.dtd">
|
||||
|
||||
<resume>
|
||||
<header>
|
||||
<name>
|
||||
<firstname>Stewart</firstname>
|
||||
<surname>Evans</surname>
|
||||
</name>
|
||||
<address>
|
||||
<street>PO Box 1273</street>
|
||||
<city>Santa Cruz</city>
|
||||
<zip>95061</zip>
|
||||
<state>CA</state>
|
||||
<country>USA</country>
|
||||
</address>
|
||||
</header>
|
||||
</resume>
|
Reference in New Issue
Block a user