Commit 486adf7f authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Commiting servlet generation

parent dbb23972
This is supposed to generate the BibServ.war servlet.
through:
$ ./make-war.sh
This sample generates a Servlet from the Biblio sample.
This demonstrates the servlet feature and the ant task features as the
Ant build file first use transmorpher to generate a Java Servlet source
and then compile it.
It also demonstrates the integration of FO and other publishing frameworks.
To test this:
- Generate the servlet:
$ sh ../../scripts/ant -Durl=<a url at which you have a bibliographic file>
- Move the servlet in the servlet directory of you system.
- You will be able from: <your servlet base>/BibServ/index.html
To my opinion, some stuff is missing:
- we should bring the libs with us in the WEB-INF/lib
......@@ -8,4 +17,4 @@ To my opinion, some stuff is missing:
It is sure that the libs are used.
It is not sure how to use the xslt (currently we use the barbara server, should be replaced at least by exmo/papers/WEB-INF/xslt)
It is not sure that this will compile in Java 1.4.1.
......@@ -47,7 +47,7 @@
<dispatch id="disp" type="broadcast" in="O2" out="OO1 OO2 OO3 OO4"/>
<apply-external type="xslt" id="FormatHTML" in="OO1" out="O3">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-hyear.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-hyear.xsl</with-param>
<with-param name="filename">$file</with-param>
<with-param name="layout">$layout</with-param>
</apply-external>
......@@ -60,7 +60,7 @@
</serialize>
<apply-external type="xslt" id="FormatBib" in="OO2" out="O4">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-bibtex.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-bibtex.xsl</with-param>
</apply-external>
<serialize type="writefile" id="writeBIB" in="O4" file="_null_">
......@@ -78,7 +78,7 @@
</serialize>
<apply-external type="xslt" id="FormatPDF" in="OO4" out="X1">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-fo.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-fo.xsl</with-param>
</apply-external>
<serialize type="fop" id="writePDF" in="X1" file="_null_">
......
......@@ -51,7 +51,7 @@
</generate>
<apply-external type="xslt" id="sort" in="O1" out="O10">
<with-param name="file">http://barbara.inrialpes.fr/xslt/sort-${sort}.xsl</with-param>
<with-param name="file">WEB-INF/xslt/sort-${sort}.xsl</with-param>
</apply-external>
<apply-ruleset ref="cvshide" id="StripCVS" in="O10" out="O11"/>
......@@ -62,7 +62,7 @@
<!-- ############### PDF ############### -->
<apply-external type="xslt" id="FormatFOP" in="X1" out="P1">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-fo.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-fo.xsl</with-param>
</apply-external>
<apply-ruleset ref="form-text" id="formtext" in="P1" out="P2"/>
......@@ -94,7 +94,7 @@
<!-- ############### BIB ############### -->
<apply-external type="xslt" id="FormatBib" in="X3" out="A1">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-bibtex.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-bibtex.xsl</with-param>
</apply-external>
<serialize type="writefile" id="writeBIB" in="A1" file="_null_">
......@@ -109,7 +109,7 @@
<dispatch type="broadcast" id="dispatchHTML" in="X4" out="H1 H2 H3 H4"/>
<apply-external type="xslt" id="FormatHTML1" in="H1" out="HH1">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-hauth.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-hauth.xsl</with-param>
<with-param name="format">html</with-param>
<with-param name="sort">ay</with-param>
<with-param name="layout">${layout}</with-param>
......@@ -126,7 +126,7 @@
</serialize>
<apply-external type="xslt" id="FormatHTML2" in="H2" out="HH2">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-harea.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-harea.xsl</with-param>
<with-param name="format">html</with-param>
<with-param name="sort">ty</with-param>
<with-param name="layout">${layout}</with-param>
......@@ -143,7 +143,7 @@
</serialize>
<apply-external type="xslt" id="FormatHTML3" in="H3" out="HH3">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-htype.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-htype.xsl</with-param>
<with-param name="format">html</with-param>
<with-param name="sort">cya</with-param>
<with-param name="layout">${layout}</with-param>
......@@ -160,7 +160,7 @@
</serialize>
<apply-external type="xslt" id="FormatHTML4" in="H4" out="HH4">
<with-param name="file">http://barbara.inrialpes.fr/xslt/form-hyear.xsl</with-param>
<with-param name="file">WEB-INF/xslt/form-hyear.xsl</with-param>
<with-param name="format">html</with-param>
<with-param name="sort">ya</with-param>
<with-param name="layout">${layout}</with-param>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment