From: Tore Engvig Date: Thu, 6 Dec 2001 21:28:22 +0000 (+0000) Subject: PR: X-Git-Tag: fop-0_20_5rc~240 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27512d7a8d08bc6ab4341a6a216fde0459af8a97;p=xmlgraphics-fop.git PR: Obtained from: Submitted by: Christian Geisert [Christian.Geisert@isu-gmbh.de] Changed "master-name" to "master-reference" on fo:page-sequence, fo:single-page-master-reference, fo:repeatable-page-master-reference and fo:conditional-page-master-reference to comply with the latest XSL recommendation. Also changed the unimplemented property space-treatment to white-space-treatment and updated examples to use the new syntax. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@194589 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 76879fde6..b8ac46615 100644 --- a/CHANGES +++ b/CHANGES @@ -27,6 +27,12 @@ width work. (Karen Lease) remaining for content. (Karen Lease) *** Properties +- Changed "master-name" to "master-reference" on fo:page-sequence, + fo:single-page-master-reference, fo:repeatable-page-master-reference and + fo:conditional-page-master-reference to comply with the latest XSL recommendation. + Also changed the unimplemented property space-treatment to white-space-treatment and + updated examples to use the new syntax. + Submitted by: Christian Geisert [Christian.Geisert@isu-gmbh.de] - Add support for inline-progression-dimension and table-layout. (Karen) - Add support for letter-spacing. Submitted by: Raymond Penners diff --git a/docs/examples/advanced/cid-fonts.fo b/docs/examples/advanced/cid-fonts.fo index bc42d6e68..b84d17e23 100644 --- a/docs/examples/advanced/cid-fonts.fo +++ b/docs/examples/advanced/cid-fonts.fo @@ -70,7 +70,7 @@ - + diff --git a/docs/examples/advanced/giro.fo b/docs/examples/advanced/giro.fo index 675902435..f27b2a0e6 100644 --- a/docs/examples/advanced/giro.fo +++ b/docs/examples/advanced/giro.fo @@ -10,13 +10,13 @@ - - - + + + - + @@ -1241,4 +1241,4 @@ SVG logo and bar code - \ No newline at end of file + diff --git a/docs/examples/fo/border.fo b/docs/examples/fo/border.fo index 957e34ac8..1e89e221f 100644 --- a/docs/examples/fo/border.fo +++ b/docs/examples/fo/border.fo @@ -13,16 +13,16 @@ - - - + - + diff --git a/docs/examples/fo/bordershorthand.fo b/docs/examples/fo/bordershorthand.fo index f3f115f95..fc5d5b5d2 100644 --- a/docs/examples/fo/bordershorthand.fo +++ b/docs/examples/fo/bordershorthand.fo @@ -48,12 +48,12 @@ Below fo:root there is always - - - + @@ -61,7 +61,7 @@ Below fo:root there is always - + diff --git a/docs/examples/fo/character.fo b/docs/examples/fo/character.fo index a7944a15e..b3f9a0e63 100644 --- a/docs/examples/fo/character.fo +++ b/docs/examples/fo/character.fo @@ -39,7 +39,7 @@ the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> - + - + @@ -61,7 +61,7 @@ Below fo:root there is always - + diff --git a/docs/examples/fo/extensive.fo b/docs/examples/fo/extensive.fo index 8b9eb826a..3b9752257 100644 --- a/docs/examples/fo/extensive.fo +++ b/docs/examples/fo/extensive.fo @@ -4,7 +4,7 @@ - + A Block An End Aligned Block diff --git a/docs/examples/fo/fonts.fo b/docs/examples/fo/fonts.fo index aa415e521..43ab9f331 100644 --- a/docs/examples/fo/fonts.fo +++ b/docs/examples/fo/fonts.fo @@ -18,7 +18,7 @@ - + diff --git a/docs/examples/fo/hyphen.fo b/docs/examples/fo/hyphen.fo index 572d320d3..73995e534 100644 --- a/docs/examples/fo/hyphen.fo +++ b/docs/examples/fo/hyphen.fo @@ -39,7 +39,7 @@ the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> - + - + - + @@ -71,7 +71,7 @@ - + diff --git a/docs/examples/fo/inhprop.fo b/docs/examples/fo/inhprop.fo index 16b2fde0a..81e8cf730 100644 --- a/docs/examples/fo/inhprop.fo +++ b/docs/examples/fo/inhprop.fo @@ -48,12 +48,12 @@ Below fo:root there is always - - - + @@ -61,7 +61,7 @@ Below fo:root there is always - + diff --git a/docs/examples/fo/instream.fo b/docs/examples/fo/instream.fo index a29c5ceb0..01dde3872 100644 --- a/docs/examples/fo/instream.fo +++ b/docs/examples/fo/instream.fo @@ -4,7 +4,7 @@ - + This is used to show how foreign objects are placed in a line area. diff --git a/docs/examples/fo/leader.fo b/docs/examples/fo/leader.fo index f90769dbc..486386ad9 100644 --- a/docs/examples/fo/leader.fo +++ b/docs/examples/fo/leader.fo @@ -23,7 +23,7 @@ - + diff --git a/docs/examples/fo/link.fo b/docs/examples/fo/link.fo index e47d3ce8e..28ab1b31e 100644 --- a/docs/examples/fo/link.fo +++ b/docs/examples/fo/link.fo @@ -18,7 +18,7 @@ - + diff --git a/docs/examples/fo/list.fo b/docs/examples/fo/list.fo index 8ea1ca394..74d6916d9 100644 --- a/docs/examples/fo/list.fo +++ b/docs/examples/fo/list.fo @@ -41,7 +41,7 @@ the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> - + - + diff --git a/docs/examples/fo/normal.fo b/docs/examples/fo/normal.fo index e64feafe2..0959b4020 100644 --- a/docs/examples/fo/normal.fo +++ b/docs/examples/fo/normal.fo @@ -48,12 +48,12 @@ Below fo:root there is always - - - + @@ -61,7 +61,7 @@ Below fo:root there is always - + diff --git a/docs/examples/fo/normalex.fo b/docs/examples/fo/normalex.fo index 90941de19..00e3e5b7e 100644 --- a/docs/examples/fo/normalex.fo +++ b/docs/examples/fo/normalex.fo @@ -48,12 +48,12 @@ Below fo:root there is always - - - + @@ -61,7 +61,7 @@ Below fo:root there is always - + diff --git a/docs/examples/fo/pdfoutline.fo b/docs/examples/fo/pdfoutline.fo index 5f91c1952..4f1f74a6c 100644 --- a/docs/examples/fo/pdfoutline.fo +++ b/docs/examples/fo/pdfoutline.fo @@ -45,12 +45,12 @@ This files shows next to the trivial usage of fo:block and fo:inline examples of - - - + @@ -123,7 +123,7 @@ This files shows next to the trivial usage of fo:block and fo:inline examples of - + diff --git a/docs/examples/fo/readme.fo b/docs/examples/fo/readme.fo index f1f7e5cda..70e089ac0 100644 --- a/docs/examples/fo/readme.fo +++ b/docs/examples/fo/readme.fo @@ -43,12 +43,12 @@ This files shows next to the trivial usage of fo:block and fo:inline examples of - - - + @@ -56,7 +56,7 @@ This files shows next to the trivial usage of fo:block and fo:inline examples of - + diff --git a/docs/examples/fo/simple.fo b/docs/examples/fo/simple.fo index e8a49f1c4..27c4fd962 100644 --- a/docs/examples/fo/simple.fo +++ b/docs/examples/fo/simple.fo @@ -39,7 +39,7 @@ the attribute value of master-name refers to the page layout which is to be used to layout the text contained in this page-sequence--> - + - + diff --git a/docs/examples/fo/tableunits.fo b/docs/examples/fo/tableunits.fo index 6ede25aa7..502e676fc 100644 --- a/docs/examples/fo/tableunits.fo +++ b/docs/examples/fo/tableunits.fo @@ -19,7 +19,7 @@ - + diff --git a/docs/examples/fo/textdeko.fo b/docs/examples/fo/textdeko.fo index 08d01484f..af9f0dfb0 100644 --- a/docs/examples/fo/textdeko.fo +++ b/docs/examples/fo/textdeko.fo @@ -34,12 +34,12 @@ - - - + @@ -47,7 +47,7 @@ - + diff --git a/docs/examples/footnotes/columns.fo b/docs/examples/footnotes/columns.fo index 5591e5d2f..feed886b5 100644 --- a/docs/examples/footnotes/columns.fo +++ b/docs/examples/footnotes/columns.fo @@ -37,7 +37,7 @@ - + - + - + diff --git a/docs/examples/keeps_and_breaks/columnlevel1.fo b/docs/examples/keeps_and_breaks/columnlevel1.fo index a76163002..bda51efe2 100644 --- a/docs/examples/keeps_and_breaks/columnlevel1.fo +++ b/docs/examples/keeps_and_breaks/columnlevel1.fo @@ -22,7 +22,7 @@ This file addresses breaks in column context. - + - + diff --git a/docs/examples/keeps_and_breaks/pagelevel2.fo b/docs/examples/keeps_and_breaks/pagelevel2.fo index fc3369a18..a5069b6c2 100644 --- a/docs/examples/keeps_and_breaks/pagelevel2.fo +++ b/docs/examples/keeps_and_breaks/pagelevel2.fo @@ -21,7 +21,7 @@ This file addresses break-after's in page context. - + - + - + - + diff --git a/docs/examples/markers/hide.fo b/docs/examples/markers/hide.fo index 694cb9c99..49e62fce1 100644 --- a/docs/examples/markers/hide.fo +++ b/docs/examples/markers/hide.fo @@ -15,7 +15,7 @@ - + @@ -74,7 +74,7 @@ This page sequence only has one page so you will not see the message. - + - + diff --git a/docs/examples/pagination/basic1.fo b/docs/examples/pagination/basic1.fo index 74a673137..64739cbee 100644 --- a/docs/examples/pagination/basic1.fo +++ b/docs/examples/pagination/basic1.fo @@ -22,7 +22,7 @@ - + diff --git a/docs/examples/pagination/basic2.fo b/docs/examples/pagination/basic2.fo index 747fb5f52..96f11a440 100644 --- a/docs/examples/pagination/basic2.fo +++ b/docs/examples/pagination/basic2.fo @@ -19,13 +19,13 @@ - + - + diff --git a/docs/examples/pagination/franklin_2pageseqs.fo b/docs/examples/pagination/franklin_2pageseqs.fo index 6aa18e6c7..71184797e 100644 --- a/docs/examples/pagination/franklin_2pageseqs.fo +++ b/docs/examples/pagination/franklin_2pageseqs.fo @@ -53,20 +53,20 @@ - @@ -74,7 +74,7 @@ - + @@ -451,7 +451,7 @@ made to-day was not more than six miles. - + diff --git a/docs/examples/pagination/franklin_alt.fo b/docs/examples/pagination/franklin_alt.fo index 127c85070..dd3267964 100644 --- a/docs/examples/pagination/franklin_alt.fo +++ b/docs/examples/pagination/franklin_alt.fo @@ -44,11 +44,11 @@ - - - + @@ -56,7 +56,7 @@ - + diff --git a/docs/examples/pagination/franklin_rep.fo b/docs/examples/pagination/franklin_rep.fo index ab71e9c54..48f9b1194 100644 --- a/docs/examples/pagination/franklin_rep.fo +++ b/docs/examples/pagination/franklin_rep.fo @@ -19,13 +19,13 @@ - + - + diff --git a/docs/examples/pagination/franklin_rep_max_repeats.fo b/docs/examples/pagination/franklin_rep_max_repeats.fo index 0baf0956a..321cf56f9 100644 --- a/docs/examples/pagination/franklin_rep_max_repeats.fo +++ b/docs/examples/pagination/franklin_rep_max_repeats.fo @@ -19,15 +19,15 @@ - - + - + diff --git a/docs/examples/pagination/franklin_rep_max_repeats_expl.fo b/docs/examples/pagination/franklin_rep_max_repeats_expl.fo index 0baf0956a..321cf56f9 100644 --- a/docs/examples/pagination/franklin_rep_max_repeats_expl.fo +++ b/docs/examples/pagination/franklin_rep_max_repeats_expl.fo @@ -19,15 +19,15 @@ - - + - + diff --git a/docs/examples/pagination/franklin_rep_max_repeats_nl.fo b/docs/examples/pagination/franklin_rep_max_repeats_nl.fo index 09e75969b..05e6c2aef 100644 --- a/docs/examples/pagination/franklin_rep_max_repeats_nl.fo +++ b/docs/examples/pagination/franklin_rep_max_repeats_nl.fo @@ -19,15 +19,15 @@ - - + - + diff --git a/docs/examples/region_body/simplecol.fo b/docs/examples/region_body/simplecol.fo index 9536b430e..413702f8b 100644 --- a/docs/examples/region_body/simplecol.fo +++ b/docs/examples/region_body/simplecol.fo @@ -23,7 +23,7 @@ - + - + - + - + - + Embedding SVG examples diff --git a/docs/examples/svg/external.fo b/docs/examples/svg/external.fo index 9d908ea96..b42a3e5af 100644 --- a/docs/examples/svg/external.fo +++ b/docs/examples/svg/external.fo @@ -15,7 +15,7 @@ - + External SVG examples diff --git a/docs/examples/tables/background.fo b/docs/examples/tables/background.fo index 8ebfd6084..2b154430a 100644 --- a/docs/examples/tables/background.fo +++ b/docs/examples/tables/background.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/borders.fo b/docs/examples/tables/borders.fo index 60bbb6c25..054e95f16 100644 --- a/docs/examples/tables/borders.fo +++ b/docs/examples/tables/borders.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/break.fo b/docs/examples/tables/break.fo index 50ed0c89c..96831b942 100644 --- a/docs/examples/tables/break.fo +++ b/docs/examples/tables/break.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/headfoot.fo b/docs/examples/tables/headfoot.fo index 3813b573a..ccd740f2f 100644 --- a/docs/examples/tables/headfoot.fo +++ b/docs/examples/tables/headfoot.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/keep.fo b/docs/examples/tables/keep.fo index 79bd6fbf1..cbbbe6a2c 100644 --- a/docs/examples/tables/keep.fo +++ b/docs/examples/tables/keep.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/omit.fo b/docs/examples/tables/omit.fo index 01a946daa..ff8c48335 100644 --- a/docs/examples/tables/omit.fo +++ b/docs/examples/tables/omit.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/space.fo b/docs/examples/tables/space.fo index c9b7259a1..0474f11c9 100644 --- a/docs/examples/tables/space.fo +++ b/docs/examples/tables/space.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/docs/examples/tables/widowsorphans.fo b/docs/examples/tables/widowsorphans.fo index 2c4bba17b..0264b0b8b 100644 --- a/docs/examples/tables/widowsorphans.fo +++ b/docs/examples/tables/widowsorphans.fo @@ -15,7 +15,7 @@ - + table examples diff --git a/src/codegen/foproperties.xml b/src/codegen/foproperties.xml index a73eb40e9..533a4a540 100644 --- a/src/codegen/foproperties.xml +++ b/src/codegen/foproperties.xml @@ -1148,7 +1148,7 @@ treat-as-space - space-treatment + white-space-treatment true ToBeImplemented preserve @@ -1690,6 +1690,12 @@ String + + master-reference + false + String + + maximum-repeats false diff --git a/src/org/apache/fop/fo/expr/PropertyParser.java b/src/org/apache/fop/fo/expr/PropertyParser.java index f41cfc43a..669ee6d8d 100644 --- a/src/org/apache/fop/fo/expr/PropertyParser.java +++ b/src/org/apache/fop/fo/expr/PropertyParser.java @@ -53,7 +53,7 @@ public class PropertyParser extends PropertyTokenizer { /** * * NOT YET IMPLEMENTED!!! - * functionTable.put("icc-color", new ICCcolorFunction()); + * functionTable.put("rgb-icc", new RgbICCFunction()); * functionTable.put("system-color", new SystemColorFunction()); * functionTable.put("system-font", new SystemFontFunction()); * diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java index 1b6c812fa..ca439587b 100644 --- a/src/org/apache/fop/fo/flow/Block.java +++ b/src/org/apache/fop/fo/flow/Block.java @@ -123,7 +123,7 @@ public class Block extends FObjMixed { // this.properties.get("line-height-shift-adjustment"); // this.properties.get("line-stacking-strategy"); // this.properties.get("orphans"); - // this.properties.get("space-treatment"); + // this.properties.get("white-space-treatment"); // this.properties.get("span"); // this.properties.get("text-align"); // this.properties.get("text-align-last"); diff --git a/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java b/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java index 2e3a81431..fba2c52c0 100644 --- a/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java +++ b/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java @@ -38,8 +38,8 @@ public class ConditionalPageMasterReference extends FObj { super(parent, propertyList); this.name = getElementName(); - if (getProperty("master-name") != null) { - setMasterName(getProperty("master-name").getString()); + if (getProperty("master-reference") != null) { + setMasterName(getProperty("master-reference").getString()); } validateParent(parent); @@ -56,7 +56,7 @@ public class ConditionalPageMasterReference extends FObj { } /** - * Returns the "master-name" attribute of this page master reference + * Returns the "master-reference" attribute of this page master reference */ public String getMasterName() { return masterName; @@ -148,7 +148,7 @@ public class ConditionalPageMasterReference extends FObj { if (getMasterName() == null) { log.warn("single-page-master-reference" - + "does not have a master-name and so is being ignored"); + + "does not have a master-reference and so is being ignored"); } else { this.repeatablePageMasterAlternatives.addConditionalPageMasterReference(this); } diff --git a/src/org/apache/fop/fo/pagination/PageMasterReference.java b/src/org/apache/fop/fo/pagination/PageMasterReference.java index 05300a065..0af756abf 100644 --- a/src/org/apache/fop/fo/pagination/PageMasterReference.java +++ b/src/org/apache/fop/fo/pagination/PageMasterReference.java @@ -13,7 +13,7 @@ import org.apache.fop.apps.FOPException; /** * Base PageMasterReference class. Provides implementation for handling the - * master-name attribute and containment within a PageSequenceMaster + * master-reference attribute and containment within a PageSequenceMaster */ public abstract class PageMasterReference extends FObj implements SubSequenceSpecifier { @@ -25,8 +25,8 @@ public abstract class PageMasterReference extends FObj throws FOPException { super(parent, propertyList); this.name = getElementName(); - if (getProperty("master-name") != null) { - setMasterName(getProperty("master-name").getString()); + if (getProperty("master-reference") != null) { + setMasterName(getProperty("master-reference").getString()); } validateParent(parent); @@ -37,7 +37,7 @@ public abstract class PageMasterReference extends FObj } /** - * Returns the "master-name" attribute of this page master reference + * Returns the "master-reference" attribute of this page master reference */ public String getMasterName() { return _masterName; @@ -72,7 +72,7 @@ public abstract class PageMasterReference extends FObj if (getMasterName() == null) { log.warn("" + getElementName() - + " does not have a master-name and so is being ignored"); + + " does not have a master-reference and so is being ignored"); } else { _pageSequenceMaster.addSubsequenceSpecifier(this); } diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java index 290f19454..b0dbfb43c 100644 --- a/src/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/org/apache/fop/fo/pagination/PageSequence.java @@ -82,7 +82,9 @@ public class PageSequence extends FObj { private Hashtable _flowMap; /** - * the "master-name" attribute + * the "master-reference" attribute, + * which specifies the name of the page-sequence-master or + * page-master to be used to create pages in the sequence */ private String masterName; @@ -176,7 +178,7 @@ public class PageSequence extends FObj { } } - masterName = this.properties.get("master-name").getString(); + masterName = this.properties.get("master-reference").getString(); // get the 'format' properties this.pageNumberGenerator = @@ -527,7 +529,7 @@ public class PageSequence extends FObj { SimplePageMaster simpleMaster = this.layoutMasterSet.getSimplePageMaster(pageSequenceName); if (simpleMaster == null) { - throw new FOPException("'master-name' for 'fo:page-sequence'" + throw new FOPException("'master-reference' for 'fo:page-sequence'" + "matches no 'simple-page-master' or 'page-sequence-master'"); } currentPageMasterName = pageSequenceName; diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index 6c1c68429..45d39a456 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -339,7 +339,7 @@ public class LineArea extends Area { spaceWidth = getCharWidth(c); /* - * here is the place for space-treatment value 'ignore': + * here is the place for white-space-treatment value 'ignore': * if (this.spaceTreatment == * SpaceTreatment.IGNORE) { * // do nothing