Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

change-bar_overlapped.xml 5.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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>This test checks fo:change-bar-* on list elements.</p>
  20. </info>
  21. <fo>
  22. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  23. <fo:layout-master-set>
  24. <fo:simple-page-master page-height="145mm" page-width="210mm" margin="10mm"
  25. master-name="master">
  26. <fo:region-body column-count="2" column-gap="10mm"/>
  27. </fo:simple-page-master>
  28. </fo:layout-master-set>
  29. <fo:page-sequence master-reference="master">
  30. <fo:flow flow-name="xsl-region-body">
  31. <fo:block change-bar-style="solid" change-bar-color="red" change-bar-offset="2mm"
  32. change-bar-width="0.3mm">
  33. <fo:block>
  34. <fo:change-bar-begin change-bar-class="first-half"/><fo:inline color="red"
  35. id="first-half">January February March April May </fo:inline><fo:change-bar-begin
  36. change-bar-class="summer" change-bar-color="green" change-bar-offset="1mm"
  37. /><fo:inline color="brown" id="june-inline">June</fo:inline><fo:change-bar-end
  38. change-bar-class="first-half"/><fo:inline color="green" id="summer"> July
  39. August</fo:inline><fo:change-bar-end change-bar-class="summer"/> September October
  40. November December</fo:block>
  41. <fo:change-bar-begin change-bar-class="first-half"/>
  42. <fo:block id="january">January</fo:block>
  43. <fo:block id="february">February</fo:block>
  44. <fo:block id="march">March</fo:block>
  45. <fo:wrapper color="red">
  46. <fo:block id="april">April</fo:block>
  47. <fo:block id="may">May</fo:block>
  48. </fo:wrapper>
  49. <fo:change-bar-begin change-bar-class="summer" change-bar-color="green"
  50. change-bar-offset="1mm"/>
  51. <fo:wrapper color="brown">
  52. <fo:block id="june-block">June</fo:block>
  53. </fo:wrapper>
  54. <fo:change-bar-end change-bar-class="first-half"/>
  55. <fo:wrapper color="red">
  56. <fo:block id="july">July</fo:block>
  57. <fo:block id="august">August</fo:block>
  58. </fo:wrapper>
  59. <fo:change-bar-end change-bar-class="summer"/>
  60. <fo:block id="september">September</fo:block>
  61. <fo:block id="october">October</fo:block>
  62. <fo:block id="november">November</fo:block>
  63. <fo:block id="december">December</fo:block>
  64. </fo:block>
  65. </fo:flow>
  66. </fo:page-sequence>
  67. </fo:root>
  68. </fo>
  69. <checks>
  70. <!-- inline -->
  71. <eval expected="(solid,#ff0000,850)" xpath="//inlineparent[@prod-id='first-half']/inlineblock[1]/@border-start"/>
  72. <eval expected="-6519" xpath="//inlineparent[@prod-id='first-half']/inlineblock[1]/@left-offset"/>
  73. <eval expected="(solid,#ff0000,850)" xpath="//inlineparent[@prod-id='june-inline']/inlineblock[1]/@border-start"/>
  74. <eval expected="-6519" xpath="//inlineparent[@prod-id='june-inline']/inlineblock[1]/@left-offset"/>
  75. <eval expected="(solid,#008000,850)" xpath="//inlineparent[@prod-id='june-inline']/inlineblock[2]/@border-start"/>
  76. <eval expected="-3684" xpath="//inlineparent[@prod-id='june-inline']/inlineblock[2]/@left-offset"/>
  77. <eval expected="(solid,#008000,850)" xpath="//lineArea[2]/inlineparent[@prod-id='summer']/inlineblock[1]/@border-start"/>
  78. <eval expected="-3684" xpath="//lineArea[2]/inlineparent[@prod-id='summer']/inlineblock[1]/@left-offset"/>
  79. <!-- block -->
  80. <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='may']/block[1]/@border-start"/>
  81. <eval expected="-6519" xpath="//block[@prod-id='may']/block[1]/@left-offset"/>
  82. <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='june-block']/block[1]/@border-start"/>
  83. <eval expected="-6519" xpath="//block[@prod-id='june-block']/block[1]/@left-offset"/>
  84. <eval expected="(solid,#008000,850)" xpath="//block[@prod-id='june-block']/block[2]/@border-start"/>
  85. <eval expected="-3684" xpath="//block[@prod-id='june-block']/block[2]/@left-offset"/>
  86. <eval expected="(solid,#008000,850)" xpath="//block[@prod-id='july']/block[1]/@border-start"/>
  87. <eval expected="-3684" xpath="//block[@prod-id='july']/block[1]/@left-offset"/>
  88. </checks>
  89. </testcase>