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.

plan.fo 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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-body margin-top="1cm"/>
  13. <fo:region-before extent="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 line-height="14pt" font-size="10pt"
  20. text-align="end">Plan Extension</fo:block>
  21. </fo:static-content>
  22. <fo:static-content flow-name="xsl-region-after">
  23. <fo:block line-height="14pt" font-size="10pt"
  24. text-align="end">Page <fo:page-number/></fo:block>
  25. </fo:static-content>
  26. <fo:flow flow-name="xsl-region-body">
  27. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  28. The Plan Extension
  29. </fo:block>
  30. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  31. The plan extension is an addition to FOP that can be used to produce a
  32. simple plan diagram with tasks etc.
  33. </fo:block>
  34. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  35. Options
  36. </fo:block>
  37. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  38. There a few basic options to specify the width, height and type of graph.
  39. The start and end date to display is optional.
  40. The locale specific information can also be specified.
  41. All other options are set in the style attribute.
  42. </fo:block>
  43. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  44. Types of Graphs
  45. </fo:block>
  46. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  47. Sample Action Plan
  48. </fo:block>
  49. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  50. <fo:block space-after.optimum="5pt">
  51. <fo:instream-foreign-object>
  52. <plan xmlns="http://xml.apache.org/fop/plan" width="500" height="200" start="20020612" end="20020702">
  53. <title>Example Plan</title>
  54. <events>
  55. <group name="Task Group">
  56. <action type="grouping" id="gr1">
  57. <label>First Task</label>
  58. <owner>Team</owner>
  59. <startdate>20020618</startdate>
  60. <enddate>20020630</enddate>
  61. </action>
  62. <action type="task" belongs="gr1">
  63. <label>Another Task</label>
  64. <owner>Team</owner>
  65. <startdate>20020620</startdate>
  66. <enddate>20020627</enddate>
  67. </action>
  68. <action type="milestone" depends="gr1">
  69. <label>Milestone</label>
  70. <owner>Team</owner>
  71. <startdate>20020628</startdate>
  72. </action>
  73. <action type="grouping">
  74. <label>Task</label>
  75. <owner>Team</owner>
  76. <startdate>20020620</startdate>
  77. <enddate>20020630</enddate>
  78. </action>
  79. <action type="task">
  80. <label>Difficult Task</label>
  81. <owner>individual</owner>
  82. <startdate>20020620</startdate>
  83. <enddate>20020630</enddate>
  84. </action>
  85. </group>
  86. </events>
  87. </plan>
  88. </fo:instream-foreign-object>
  89. </fo:block>
  90. </fo:block>
  91. <fo:block>
  92. A plan as an external graphic.
  93. </fo:block>
  94. <fo:block>
  95. <fo:external-graphic src="june.xml"/>
  96. </fo:block>
  97. </fo:flow>
  98. </fo:page-sequence>
  99. </fo:root>