You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linearea_nonempty_1.xml 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. This test checks that no lines are created for which the
  21. KnuthPossPosIter is empty. It depends on the font used for the word
  22. 'maybe'.
  23. </p>
  24. <p>
  25. This is a cut-down version of test file param-tidy.fo as
  26. submitted in bug 38053
  27. (http://issues.apache.org/bugzilla/attachment.cgi?id=17285).
  28. </p>
  29. </info>
  30. <fo>
  31. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="10pt" text-align="justify" line-height="normal" font-selection-strategy="character-by-character" line-height-shift-adjustment="disregard-shifts" language="en">
  32. <fo:layout-master-set>
  33. <fo:simple-page-master master-name="blank" page-width="8.5in" page-height="11in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1in - -4pc" margin-right="1in">
  34. <fo:region-body display-align="center" margin-bottom="0.5in" margin-top="0.5in" />
  35. <fo:region-before region-name="xsl-region-before-blank" extent="0.4in" display-align="before" />
  36. <fo:region-after region-name="xsl-region-after-blank" extent="0.4in" display-align="after" />
  37. </fo:simple-page-master>
  38. <fo:simple-page-master master-name="body-first" page-width="8.5in" page-height="11in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1in - -4pc" margin-right="1in">
  39. <fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-gap="12pt" column-count="1" />
  40. <fo:region-before region-name="xsl-region-before-first" extent="0.4in" display-align="before" />
  41. <fo:region-after region-name="xsl-region-after-first" extent="0.4in" display-align="after" />
  42. </fo:simple-page-master>
  43. <fo:simple-page-master master-name="body-odd" page-width="8.5in" page-height="11in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1in - -4pc" margin-right="1in">
  44. <fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-gap="12pt" column-count="1" />
  45. <fo:region-before region-name="xsl-region-before-odd" extent="0.4in" display-align="before" />
  46. <fo:region-after region-name="xsl-region-after-odd" extent="0.4in" display-align="after" />
  47. </fo:simple-page-master>
  48. <fo:simple-page-master master-name="body-even" page-width="8.5in" page-height="11in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1in - -4pc" margin-right="1in">
  49. <fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-gap="12pt" column-count="1" />
  50. <fo:region-before region-name="xsl-region-before-even" extent="0.4in" display-align="before" />
  51. <fo:region-after region-name="xsl-region-after-even" extent="0.4in" display-align="after" />
  52. </fo:simple-page-master>
  53. <fo:page-sequence-master master-name="body">
  54. <fo:repeatable-page-master-alternatives>
  55. <fo:conditional-page-master-reference master-reference="blank" blank-or-not-blank="blank" />
  56. <fo:conditional-page-master-reference master-reference="body-first" page-position="first" />
  57. <fo:conditional-page-master-reference master-reference="body-odd" odd-or-even="odd" />
  58. <fo:conditional-page-master-reference odd-or-even="even" master-reference="body-odd" />
  59. </fo:repeatable-page-master-alternatives>
  60. </fo:page-sequence-master>
  61. </fo:layout-master-set>
  62. <fo:page-sequence hyphenate="true" master-reference="body" language="en" format="1" initial-page-number="auto" force-page-count="no-force" hyphenation-character="-" hyphenation-push-character-count="2" hyphenation-remain-character-count="2">
  63. <fo:flow flow-name="xsl-region-body">
  64. <fo:block id="olink.doctitle">
  65. <fo:block xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" id="id382742">
  66. <fo:list-block id="id382851" provisional-distance-between-starts="5em * 0.60+1em" provisional-label-separation="1em" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" space-after.optimum="1em" space-after.minimum="0.8em" space-after.maximum="1.2em">
  67. <fo:list-item id="id382899" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
  68. <fo:list-item-label end-indent="label-end()" text-align="start">
  69. <fo:block>
  70. <fo:inline>
  71. <fo:inline font-family="Courier">maybe</fo:inline>
  72. </fo:inline>
  73. </fo:block>
  74. </fo:list-item-label>
  75. <fo:list-item-body start-indent="body-start()">
  76. <fo:block>
  77. <fo:block>
  78. Only insert the title to the target document, if requested
  79. in an
  80. <fo:inline font-family="Courier">xrefstyle</fo:inline>
  81. attribute.
  82. </fo:block>
  83. </fo:block>
  84. </fo:list-item-body>
  85. </fo:list-item>
  86. </fo:list-block>
  87. </fo:block>
  88. </fo:block>
  89. </fo:flow>
  90. </fo:page-sequence>
  91. </fo:root>
  92. </fo>
  93. <checks>
  94. <eval expected="maybe" xpath="//flow/block[1]/block[1]/block[1]/block[1]/block[1]/block[1]/lineArea[1]"/>
  95. </checks>
  96. </testcase>