From afc1323fe177b87b89a53204b70f0664ae3cb73a Mon Sep 17 00:00:00 2001 From: evenisse Date: Wed, 21 Jan 2004 09:14:44 +0000 Subject: [PATCH] From Arnaud Heritier : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit plugin.jelly : code reformating, + debug mode corrected : uses correctly the project property �maven.pdf.debug� for the style task and the FO transformation, + uses a new property �maven.pdf.navigationFile� to specify a navigation file specific to the pdf doc. plugin.properties : New property : �maven.pdf.navigationFile� project.xml : code reformating, fo-body.xslt : code reformating, + corrects some problem with external and internal links + write the link on the page when the navigation file points to an external link. fo-table-column-widths.xslt, fo-tables.xslt : code reformating, + add the generation of tables with only tr/td and th. project2fo.xslt : code reformating, + remove the generation of pages which are not hosted in the project. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114603 13f79535-47bb-0310-9956-ffa450edef68 --- pdf/plugin.jelly | 216 ++-- pdf/plugin.properties | 1 + pdf/project.xml | 189 +-- pdf/src/plugin-resources/fo-body.xslt | 1051 +++++++++-------- .../fo-table-column-widths.xslt | 567 +++++---- pdf/src/plugin-resources/fo-tables.xslt | 213 +++- pdf/src/plugin-resources/fo-toc.xslt | 407 +++---- pdf/src/plugin-resources/project2fo.xslt | 314 +++-- 8 files changed, 1666 insertions(+), 1292 deletions(-) diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index c1d952ec..29f4b9be 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -1,135 +1,93 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generating ${docsDest}/project.fo ... - - - ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} - - - - - - - - - - - - - - - - - - - - - - - - - - - - Generating ${docsPdf}/project.pdf ... - Config file: ${docsPdf}/userconfig.xml - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generating ${docsPdf}/project.pdf ... + Config file: ${docsPdf}/userconfig.xml + + + + + + + + + + + + + + + + + + diff --git a/pdf/plugin.properties b/pdf/plugin.properties index dea3c6a1..a320806d 100644 --- a/pdf/plugin.properties +++ b/pdf/plugin.properties @@ -10,6 +10,7 @@ maven.pdf.companyIncName=${pom.organization.name} maven.pdf.copyrightYear=${pom.inceptionYear} maven.pdf.imageDpi=150 maven.pdf.debug=false +maven.pdf.navigationFile=navigation.xml # Reserved for future use... maven.pdf.cover.projectCompany=${pom.organization.name} maven.pdf.cover.projectName=${pom.name} diff --git a/pdf/project.xml b/pdf/project.xml index 82462886..8382c9d2 100644 --- a/pdf/project.xml +++ b/pdf/project.xml @@ -1,91 +1,104 @@ - - ${basedir}/../project.xml - 3 - maven - maven-pdf-plugin - maven-pdf-plugin - Maven PDF Plug-in - 2.0-SNAPSHOT - - Java Project Management Tools - http://maven.apache.org/reference/plugins/pdf/ - /www/maven.apache.org/reference/plugins/pdf/ - http://jira.codehaus.org/secure/BrowseProject.jspa?id=10356 - - scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/pdf/ - http://cvs.apache.org/viewcvs/maven-plugins/pdf/ - - - - dIon Gillard - dion - dion@multitask.com.au - Multitask Consulting - - Documentation - - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - - - Andrew Jaquith - arjaquith@mindspring.com - freshcookies.org - - - - - fop - fop - 0.20.5 - - - batik - batik - 1.5-fop-0.20-5 - - - logkit - logkit - 1.0.1 - - - avalon-framework - avalon-framework - 4.0 - - - xerces - xerces - 2.3.0 - - root - - - - xml-apis - xml-apis - 1.0.b2 - - root - - - - xalan - xalan - 2.4.1 - - + ${basedir}/../project.xml + 3 + maven + maven-pdf-plugin + maven-pdf-plugin + Maven PDF Plug-in + 2.0-SNAPSHOT + + Java Project Management Tools + http://maven.apache.org/reference/plugins/pdf/ + /www/maven.apache.org/reference/plugins/pdf/ + http://jira.codehaus.org/secure/BrowseProject.jspa?id=10356 + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/pdf/ + http://cvs.apache.org/viewcvs/maven-plugins/pdf/ + + + + dIon Gillard + dion + dion@multitask.com.au + Multitask Consulting + + Documentation + + + + Jason van Zyl + jvanzyl + jason@zenplex.com + Zenplex + + Architect + Release Manager + + + + Emmanuel Venisse + evenisse + emmanuel@venisse.net + + + Java Developer + + + + + + Andrew Jaquith + arjaquith@mindspring.com + freshcookies.org + + + Arnaud Heritier + + + + + + + fop + fop + 0.20.5 + + + batik + batik + 1.5-fop-0.20-5 + + + logkit + logkit + 1.0.1 + + + avalon-framework + avalon-framework + 4.0 + + + xerces + xerces + 2.3.0 + + root + + + + xml-apis + xml-apis + 1.0.b2 + + root + + + + xalan + xalan + 2.4.1 + + diff --git a/pdf/src/plugin-resources/fo-body.xslt b/pdf/src/plugin-resources/fo-body.xslt index 61e99312..b08814be 100644 --- a/pdf/src/plugin-resources/fo-body.xslt +++ b/pdf/src/plugin-resources/fo-body.xslt @@ -1,494 +1,573 @@ - - - - - - - - Garamond,serif - - - - Helvetica,sans-serif - #000000 - always - - - - monospace - - - - - 11pt - 12pt - true - - - - 10pt - - - - 8pt - wrap - false - black - dotted - 0.5pt - - 1.0em - 1.25em - 0.75em - 0.75em - inherited-property-value(start-indent) + 2.5em - inherited-property-value(end-indent) + 3em - 0.75em - 1em - - - - Helvetica,sans-serif - 9.0pt - - - - 16pt - bold - - - - 12pt - bold - 18pt - 6pt - - - - 9.5pt - bold - 18pt - 5pt - - - - 9.5pt - 15pt - 3pt - - - - 9.5pt - 9pt - 3pt - - - - 9.5pt - italic - 3pt - - - - - - 10pt - 6pt - - - - 100% - dots - 1pt - - - - - - 9.5pt - - 10pt - right - - - - - 2pt - Helvetica,sans-serif - 6pt - - - - - 2pt - Helvetica,sans-serif - 6pt - - left - - - - Helvetica,sans-serif - 9.5pt - right - black - - - - - black - - - - - 3pt - 6pt - - - - - inherited-property-value(start-indent) - 1em - 1em - - - - - inherited-property-value(start-indent) + .5em - 0.15em - 0.25em + + + Garamond,serif - - - 1em - 1em - - - - 1em - 1em - - - - 1em - 1em - 0.6em - 0.6em - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.125 - - - - - - - - - + + Helvetica,sans-serif + #000000 + always + + + monospace + + + + 11pt + 12pt + true + + + 10pt + + + 8pt + wrap + false + black + dotted + 0.5pt + + 1.0em + 1.25em + 0.75em + 0.75em + inherited-property-value(start-indent) + 2.5em + inherited-property-value(end-indent) + 3em + 0.75em + 1em + + + Helvetica,sans-serif + 9.0pt + + + 16pt + bold + + + 12pt + bold + 18pt + 6pt + + + 9.5pt + bold + 18pt + 5pt + + + 9.5pt + 15pt + 3pt + + + 9.5pt + 9pt + 3pt + + + 9.5pt + italic + 3pt + + + + 10pt + 6pt + + + 100% + dots + 1pt + + + + + 9.5pt + + 10pt + right + + + + 2pt + Helvetica,sans-serif + 6pt + + + + 2pt + Helvetica,sans-serif + 6pt + + left + + + Helvetica,sans-serif + 9.5pt + right + black + + + + blue + + + + 3pt + 6pt + + + + inherited-property-value(start-indent) + 1em + 1em + + + + inherited-property-value(start-indent) + .5em + 0.15em + 0.25em + + + 1em + 1em + + + 1em + 1em + + + 1em + 1em + 0.6em + 0.6em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + 0.125 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - diff --git a/pdf/src/plugin-resources/fo-table-column-widths.xslt b/pdf/src/plugin-resources/fo-table-column-widths.xslt index 65654bee..d205c072 100644 --- a/pdf/src/plugin-resources/fo-table-column-widths.xslt +++ b/pdf/src/plugin-resources/fo-table-column-widths.xslt @@ -1,230 +1,373 @@ - - - - - ----------111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999" - 5? 5? 5? 5? 5? 5? 5? 5? 5? 5? - - - 1 - 1 - ---------- - ---------- - - - - - + ----------111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999" + 5? 5? 5? 5? 5? 5? 5? 5? 5? 5? + + 1 + 1 + ---------- + ---------- + + + + + - - - - 1 - - - - - - 1 - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - + - - - + - - - - Cell (,) text()='' rowspan= colspan= width= - Current cell mask : in out - Next row mask : in out - Estimated cell widths: - Cell widths so far : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - 1? - 0 - 0 - - - - - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - + + - Columns= ( resizable), width=, leftover= + Cell (,) text()='' rowspan= colspan= width= + + Current cell mask : in out + Next row mask : in out + Estimated cell widths: + + Cell widths so far : + - - - - - - - - - - - - - 1 - 1 - 1? - 0 - 0 - 1 - - - - - - - - - - - - - - - in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + 1? + 0 + 0 + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + Columns= ( resizable), width=, leftover= + + + + + + + + + + + + + + 1 + 1 + 1? + 0 + 0 + 1 + + + + + + + + + + + + + + in - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + 1 + 1 + ---------- + ---------- + + + + + + + + + + + 1 + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cell (,) text()='' rowspan= colspan= width= + + Current cell mask : in out + Next row mask : in out + Estimated cell widths: + + Cell widths so far : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pdf/src/plugin-resources/fo-tables.xslt b/pdf/src/plugin-resources/fo-tables.xslt index 4a1a99cb..d73137ff 100644 --- a/pdf/src/plugin-resources/fo-tables.xslt +++ b/pdf/src/plugin-resources/fo-tables.xslt @@ -141,13 +141,222 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> - + + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + :::::: New table :::::: + + + + + + + + This table has a @title, so add a row for it + + + + + + + + + + + + This table has a caption, so add a row for it + + + + + + + + + + + + + + + + + + + + + + + + + ::: Subheading row ::: + + + + + + + + 1 + + + ::: Table body row ( columns) ::: + + + + + ::: Table row spacer for last row ::: + + + + Ending border (solid rule) + + + + + + + + 1 + + + + + ::: Table body row ( columns) ::: + + + + + ::: Table row spacer for row ::: + + + + + + + Spacer only + + + + + Regular border (rule) + + + + + Ending border (rule) + + + + + + + + + + : Table subheading cell : + + + + + + + + + + : Table body cell : + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 @@ -404,5 +613,7 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> + + diff --git a/pdf/src/plugin-resources/fo-toc.xslt b/pdf/src/plugin-resources/fo-toc.xslt index f56588c4..f3fc7a31 100644 --- a/pdf/src/plugin-resources/fo-toc.xslt +++ b/pdf/src/plugin-resources/fo-toc.xslt @@ -1,216 +1,195 @@ - - - - - - - after - - - - Helvetica,sans-serif - 16pt - start - no-wrap - - - - dots - 5pt - - - - - 9.5pt - end - - 16pt - 6pt - - - - 12pt - bold - 18pt - - - - 9.5pt - 15pt - 3pt - - - - 9.5pt - 4pt - - - - 9.5pt - 4pt - - - - - - - - - - - - - - - - - - - Table of Contents - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - - - - - - - - - - - + + after + + + Helvetica,sans-serif + 16pt + start + no-wrap + + + dots + 5pt + + + + 9.5pt + end + + 16pt + 6pt + + + 12pt + bold + 18pt + + + 9.5pt + 15pt + 3pt + + + 9.5pt + 4pt + + + 9.5pt + 4pt + + + + + + + + + + + + + + + + Table of Contents + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ... + + + + + + + + + + + + + + + + + + + + + + + + + - - diff --git a/pdf/src/plugin-resources/project2fo.xslt b/pdf/src/plugin-resources/project2fo.xslt index bedac651..9fc73d68 100644 --- a/pdf/src/plugin-resources/project2fo.xslt +++ b/pdf/src/plugin-resources/project2fo.xslt @@ -1,169 +1,159 @@ - - - - - - - - - . - US - The Jakarta Project - Apache Software Foundation, Inc. - false - 2003 - 150 - - - Apache Software Foundation - Jakarta Maven - Project Documentation - 1.0 - January 1, 1901 - - - abcdefghijklmnopqrstuvwxyz - ABCDEFGHIJKLMNOPQRSTUVWXYZ - © - • All rights reserved + + + + + + + + . + US + The Jakarta Project + Apache Software Foundation, Inc. + false + 2003 + 150 + + + Apache Software Foundation + Jakarta Maven + Project Documentation + 1.0 + January 1, 1901 + false + + abcdefghijklmnopqrstuvwxyz + ABCDEFGHIJKLMNOPQRSTUVWXYZ + © + • All rights reserved • Proprietary and Confidential - - #454545 - #A9A9A9 - #D3D3D3 - - #4b4542 - - - - - - - - 8pt - bold - red - solid - 0.5pt - red - 0.75em - inherited-property-value(start-indent) + 2.5em - inherited-property-value(end-indent) + 3em - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - .. - - - - - - - - ... - - - - - Foo - - - - - auto - - - 1 - - - - + #4b4542 + + + + 8pt + bold + red + solid + 0.5pt + red + 0.75em + inherited-property-value(start-indent) + 2.5em + inherited-property-value(end-indent) + 3em + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + .. + + + + + + + + + ... + + + + + Foo + + + + + auto + + + 1 + + + + + - - - - - - -Href = - -Doc Name = - -Doc Path = - Creating XSL:FO for - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + Creating XSL:FO for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -