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.

hide.fo 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <fo:layout-master-set>
  4. <fo:simple-page-master
  5. margin-right="1.5cm"
  6. margin-left="1.5cm"
  7. margin-bottom="2cm"
  8. margin-top="1cm"
  9. page-width="21cm"
  10. page-height="29.7cm"
  11. master-name="first">
  12. <fo:region-before extent="1cm"/>
  13. <fo:region-body margin-top="1cm"/>
  14. <fo:region-after extent="1.5cm"/>
  15. </fo:simple-page-master>
  16. </fo:layout-master-set>
  17. <fo:page-sequence master-reference="first">
  18. <fo:static-content flow-name="xsl-region-before">
  19. <fo:block-container height="1cm" width="15cm" top="0cm" left="0cm" position="absolute">
  20. <fo:block>
  21. <fo:retrieve-marker retrieve-class-name="message"
  22. retrieve-boundary="page"
  23. retrieve-position="first-starting-within-page"/>
  24. </fo:block>
  25. </fo:block-container>
  26. <fo:block-container height="1cm" width="15cm" top="0cm" left="0cm" position="absolute">
  27. <fo:block>
  28. <fo:retrieve-marker retrieve-class-name="term"
  29. retrieve-boundary="page"
  30. retrieve-position="last-ending-within-page"/>
  31. </fo:block>
  32. </fo:block-container>
  33. </fo:static-content>
  34. <fo:static-content flow-name="xsl-region-after">
  35. <fo:block text-align="start"
  36. font-size="10pt" font-family="serif" line-height="1em + 2pt">
  37. Page (<fo:page-number/> / <fo:page-number-citation
  38. ref-id="end-seq1"/>)
  39. </fo:block>
  40. </fo:static-content>
  41. <fo:flow flow-name="xsl-region-body">
  42. <fo:block><fo:marker
  43. marker-class-name="message">
  44. <fo:block>
  45. WARNING: Page sequence contains: <fo:page-number-citation
  46. ref-id="end-seq1"/> pages.
  47. </fo:block>
  48. </fo:marker>
  49. </fo:block>
  50. <fo:block text-align="start" font-size="12pt" font-family="sans-serif">
  51. This example shows how it is possible to have a message that appears
  52. only on the first page (in a page sequence) only if there is more
  53. than one page.
  54. </fo:block>
  55. <fo:block text-align="start" font-size="12pt" font-family="sans-serif">
  56. This page sequence only has one page so you will not see the message.
  57. </fo:block>
  58. <fo:block id="end-seq1"><fo:marker
  59. marker-class-name="term">
  60. <fo:instream-foreign-object>
  61. <svg xmlns="http://www.w3.org/2000/svg" width="15cm" height="1cm" xml:space="preserve">
  62. <rect style="fill:white;stroke:white" x="0" y="0" width="15cm" height="1cm"/>
  63. </svg>
  64. </fo:instream-foreign-object>
  65. </fo:marker>
  66. </fo:block>
  67. </fo:flow>
  68. </fo:page-sequence>
  69. <fo:page-sequence master-reference="first" initial-page-number="1">
  70. <fo:static-content flow-name="xsl-region-before">
  71. <fo:block-container height="1cm" width="15cm" top="0cm" left="0cm" position="absolute"> <fo:block>
  72. <fo:retrieve-marker retrieve-class-name="message"
  73. retrieve-boundary="page"
  74. retrieve-position="first-starting-within-page"/>
  75. </fo:block>
  76. </fo:block-container>
  77. <fo:block-container height="1cm" width="15cm" top="0cm" left="0cm" position="absolute"> <fo:block>
  78. <fo:retrieve-marker retrieve-class-name="term"
  79. retrieve-boundary="page"
  80. retrieve-position="last-ending-within-page"/>
  81. </fo:block>
  82. </fo:block-container>
  83. </fo:static-content>
  84. <fo:static-content flow-name="xsl-region-after">
  85. <fo:block text-align="start"
  86. font-size="10pt" font-family="serif" line-height="1em + 2pt">
  87. Page (<fo:page-number/> / <fo:page-number-citation
  88. ref-id="end-of-document"/>)
  89. </fo:block>
  90. </fo:static-content>
  91. <fo:flow flow-name="xsl-region-body">
  92. <fo:block><fo:marker
  93. marker-class-name="message">
  94. <fo:block>
  95. WARNING: Page sequence contains: <fo:page-number-citation
  96. ref-id="end-of-document"/> pages.
  97. </fo:block>
  98. </fo:marker>
  99. </fo:block>
  100. <fo:block text-align="start" font-size="12pt" font-family="sans-serif">
  101. This page sequence has more than one page so you will see the message
  102. only at the top of the first page.
  103. </fo:block>
  104. <fo:block break-before="page" text-align="start" font-size="12pt" font-family="sans-serif">
  105. Some text.
  106. </fo:block>
  107. <fo:block break-before="page" text-align="start" font-size="12pt" font-family="sans-serif">
  108. Some text.
  109. </fo:block>
  110. <fo:block break-before="page" text-align="start" font-size="12pt" font-family="sans-serif">
  111. Some more text on last page.
  112. </fo:block>
  113. <fo:block id="end-of-document"><fo:marker
  114. marker-class-name="term">
  115. <fo:instream-foreign-object>
  116. <svg xmlns="http://www.w3.org/2000/svg" width="15cm" height="1cm" xml:space="preserve"> <rect style="fill:white;stroke:white" x="0" y="0" width="15cm" height="1cm"/>
  117. </svg>
  118. </fo:instream-foreign-object>
  119. </fo:marker>
  120. </fo:block>
  121. </fo:flow>
  122. </fo:page-sequence>
  123. </fo:root>