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.

newlinktest.fo 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  2. <fo:layout-master-set>
  3. <!-- layout for the first page -->
  4. <fo:simple-page-master master-name="first"
  5. margin-top="1in"
  6. margin-bottom="1in"
  7. margin-left="1in"
  8. margin-right="1in">
  9. <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/>
  10. <fo:region-before extent="2.5cm"/>
  11. <fo:region-after extent="1.5cm"/>
  12. </fo:simple-page-master>
  13. </fo:layout-master-set>
  14. <!-- end: defines page layout -->
  15. <!-- actual layout -->
  16. <fo:page-sequence master-reference="first">
  17. <!-- header -->
  18. <fo:static-content flow-name="xsl-region-before">
  19. <fo:block text-align="end"
  20. font-size="8pt"
  21. font-family="serif"
  22. line-height="14pt" >
  23. <fo:basic-link external-destination="http://xmlgraphics.apache.org/fop"
  24. color="rgb(150,150,150)" font-style="italic">
  25. http://xmlgraphics.apache.org/fop
  26. </fo:basic-link>
  27. </fo:block>
  28. </fo:static-content>
  29. <fo:flow flow-name="xsl-region-body">
  30. <fo:block space-after.optimum="3pt" font-family="serif" id="block1">
  31. FOP is the world's first print formatter driven by XSL formatting
  32. objects. It is a Java 1.1 application that reads a formatting object
  33. tree and then turns it into a PDF document. The formatting object
  34. tree, can be in the form of an XML document (output by an XSLT engine
  35. like XT or Xalan) or can be passed in memory as a DOM Document or (in
  36. the case of XT) SAX events.
  37. </fo:block>
  38. <fo:block space-after.optimum="12pt" font-family="serif">FOP is part of Apache's XML project. The homepage of FOP is
  39. <fo:inline font-style="italic" font-family="serif"><fo:basic-link color="blue" external-destination="http://xmlgraphics.apache.org/fop">http://xmlgraphics.apache.org/fop</fo:basic-link></fo:inline>
  40. </fo:block>
  41. <fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center">
  42. align="start"
  43. </fo:block>
  44. <fo:block space-after.optimum="12pt" font-family="serif" text-align="start">
  45. Apache FOP is the world's first print formatter driven by XSL formatting
  46. objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link>
  47. tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object
  48. tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine
  49. like XT or Xalan) or can be passed in memory as a DOM Document or (in
  50. the case of XT) SAX events.
  51. </fo:block>
  52. <fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center">
  53. align="center"
  54. </fo:block>
  55. <fo:block space-after.optimum="12pt" font-family="serif" text-align="center">
  56. Apache FOP is the world's first print formatter driven by XSL formatting
  57. objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link>
  58. tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object
  59. tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine
  60. like XT or Xalan) or can be passed in memory as a DOM Document or (in
  61. the case of XT) SAX events.
  62. </fo:block>
  63. <fo:block space-after.optimum="12pt" font-family="serif" font-weight="bold" text-align="center">
  64. align="justify"
  65. </fo:block>
  66. <fo:block space-after.optimum="12pt" font-family="serif" text-align="justify">
  67. Apache FOP is the world's first print formatter driven by XSL formatting
  68. objects. It is a Java 1.1 application that reads a <fo:basic-link internal-destination="block1" color="blue">formatting object</fo:basic-link>
  69. tree and then turns it into a <fo:basic-link internal-destination="block1" color="blue">PDF document</fo:basic-link>. The formatting object
  70. tree, can be in the form of an XML <fo:basic-link internal-destination="block1" color="blue">document</fo:basic-link> (output by an XSLT engine
  71. like XT or Xalan) or can be passed in memory as a DOM Document or (in
  72. the case of XT) SAX events.
  73. </fo:block>
  74. <!-- table start -->
  75. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  76. <fo:table-column column-width="50mm"/>
  77. <fo:table-column column-width="50mm"/>
  78. <fo:table-column column-width="50mm"/>
  79. <fo:table-body>
  80. <fo:table-row>
  81. <fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
  82. <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
  83. <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">ugly</fo:basic-link></fo:block></fo:table-cell>
  84. </fo:table-row>
  85. <fo:table-row>
  86. <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
  87. <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">dice</fo:basic-link></fo:block></fo:table-cell>
  88. <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
  89. </fo:table-row>
  90. <fo:table-row>
  91. <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
  92. <fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
  93. <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">art</fo:basic-link></fo:block></fo:table-cell>
  94. </fo:table-row>
  95. <fo:table-row>
  96. <fo:table-cell ><fo:block><fo:basic-link internal-destination="block1" color="blue">java</fo:basic-link></fo:block></fo:table-cell>
  97. <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
  98. <fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
  99. </fo:table-row>
  100. </fo:table-body>
  101. </fo:table>
  102. <!-- table end -->
  103. <fo:block break-before="page" space-after.optimum="12pt" font-family="serif" text-align="start" font-weight="bold">
  104. Links in different orientations
  105. </fo:block>
  106. <fo:block>
  107. This block container has a different reference orientation.
  108. <fo:block-container reference-orientation="90" inline-progression-dimension="150pt">
  109. <fo:block>
  110. A link applies to the inline parent area that is created
  111. by the basic-link. This inline area has a trait specifying
  112. the link.
  113. </fo:block>
  114. <fo:block>
  115. <fo:basic-link external-destination="http://xmlgraphics.apache.org/fop"
  116. color="blue" text-decoration="underline">
  117. http://xmlgraphics.apache.org/fop
  118. </fo:basic-link>
  119. </fo:block>
  120. </fo:block-container>
  121. </fo:block>
  122. </fo:flow>
  123. </fo:page-sequence>
  124. </fo:root>