Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:fo="http://www.w3.org/1999/XSL/Format">
  5.  
  6. <xsl:output indent="yes"/>
  7.  
  8. <xsl:template match="/">
  9. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  10.  
  11. <fo:layout-master-set>
  12. <fo:simple-page-master master-name="A4"
  13. page-width="210mm" page-height="297mm"
  14. margin-top="0.5in" margin-bottom="0.5in"
  15. margin-left="0.5in" margin-right="0.5in">
  16. <fo:region-before extent="0.5in"/>
  17. <fo:region-body margin-top="0.5in"
  18. margin-bottom="0.5in"/>
  19. <fo:region-after extent="0.5in"/>
  20. </fo:simple-page-master>
  21. </fo:layout-master-set>
  22.  
  23. <fo:page-sequence master-reference="A4">
  24. <fo:flow flow-name="xsl-region-before">
  25. </fo:flow>
  26. <fo:flow flow-name="xsl-region-body">
  27. <fo:block font-weight="bold" margin-bottom="0.1in">
  28. <xsl:value-of select="TOETS/@SOORT"/>
  29. </fo:block>
  30. <fo:block>
  31. <fo:table>
  32. <fo:table-body>
  33. <fo:table-row>
  34. <fo:table-cell>
  35. <fo:block margin-right="1.5in">
  36. Module
  37. </fo:block>
  38. </fo:table-cell>
  39. <fo:table-cell>
  40. <fo:block>
  41. <xsl:value-of select="TOETS/MODULE"/>
  42. </fo:block>
  43. </fo:table-cell>
  44. </fo:table-row>
  45. <fo:table-row>
  46. <fo:table-cell>
  47. <fo:block margin-right="1.5in">
  48. Datum
  49. </fo:block>
  50. </fo:table-cell>
  51. <fo:table-cell>
  52. <fo:block>
  53. <xsl:value-of select="TOETS/DATUM"/>
  54. </fo:block>
  55. </fo:table-cell>
  56. </fo:table-row>
  57. <fo:table-row>
  58. <fo:table-cell>
  59. <fo:block margin-right="1.5in">
  60. Tijd
  61. </fo:block>
  62. </fo:table-cell>
  63. <fo:table-cell>
  64. <fo:block>
  65. <xsl:value-of select="TOETS/BEGIN-TIJD"/> tot <xsl:value-of select="TOETS/EIND-TIJD"/>
  66. </fo:block>
  67. </fo:table-cell>
  68. </fo:table-row>
  69. <fo:table-row>
  70. <fo:table-cell>
  71. <fo:block margin-right="1.5in">
  72. Lokaal
  73. </fo:block>
  74. </fo:table-cell>
  75. <fo:table-cell>
  76. <fo:block>
  77. <xsl:value-of select="TOETS/LOKAAL"/>
  78. </fo:block>
  79. </fo:table-cell>
  80. </fo:table-row>
  81. <fo:table-row>
  82. <fo:table-cell>
  83. <fo:block margin-right="1.5in">
  84. Docent
  85. </fo:block>
  86. </fo:table-cell>
  87. <fo:table-cell>
  88. <fo:block>
  89. <xsl:for-each select="TOETS/DOCENT"/>
  90. </fo:block>
  91. </fo:table-cell>
  92. </fo:table-row>
  93. <fo:table-row>
  94. <fo:table-cell>
  95. <fo:block margin-right="1.5in">
  96. Surveillant
  97. </fo:block>
  98. </fo:table-cell>
  99. <fo:table-cell>
  100. <fo:block>
  101. <xsl:value-of select="TOETS/SURVEILLANT"/>
  102. </fo:block>
  103. </fo:table-cell>
  104. </fo:table-row>
  105. <fo:table-row>
  106. <fo:table-cell>
  107. <fo:block margin-right="1.5in">
  108. Toegestane literatuur
  109. </fo:block>
  110. </fo:table-cell>
  111. <fo:table-cell>
  112. <fo:block>
  113. <xsl:value-of select="TOETS/LITERATUUR"/>
  114. </fo:block>
  115. </fo:table-cell>
  116. </fo:table-row>
  117. <fo:table-row>
  118. <fo:table-cell>
  119. <fo:block margin-right="1.5in">
  120. Toegestane hulpmiddelen
  121. </fo:block>
  122. </fo:table-cell>
  123. <fo:table-cell>
  124. <fo:block>
  125. <xsl:value-of select="TOETS/HULPMIDDEL"/>
  126. </fo:block>
  127. </fo:table-cell>
  128. </fo:table-row>
  129. </fo:table-body>
  130. </fo:table>
  131. </fo:block>
  132. </fo:flow>
  133. <fo:flow flow-name="xsl-region-after">
  134. </fo:flow>
  135. </fo:page-sequence>
  136.  
  137. </fo:root>
  138. </xsl:template>
  139. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement