Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

block-inline-inline-break-before.xml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the
  3. NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses
  4. this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
  5. with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
  6. by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
  7. BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
  8. language governing permissions and limitations under the License. -->
  9. <!-- $Id$ -->
  10. <testcase>
  11. <info>
  12. <p>This tests a break inside nested inlines.</p>
  13. </info>
  14. <fo>
  15. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  16. <fo:layout-master-set>
  17. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"
  18. margin="0.5in">
  19. <fo:region-body/>
  20. </fo:simple-page-master>
  21. </fo:layout-master-set>
  22. <fo:page-sequence master-reference="normal">
  23. <fo:flow flow-name="xsl-region-body">
  24. <fo:block>one</fo:block>
  25. <fo:block>
  26. <fo:inline>
  27. <fo:inline>
  28. <fo:block break-before="page">two</fo:block>
  29. </fo:inline>
  30. </fo:inline>
  31. </fo:block>
  32. </fo:flow>
  33. </fo:page-sequence>
  34. </fo:root>
  35. </fo>
  36. <checks>
  37. <eval expected="1" xpath="//lineArea[starts-with(., 'one')]/ancestor::pageViewport/@nr" />
  38. <eval expected="2" xpath="//lineArea[starts-with(., 'two')]/ancestor::pageViewport/@nr" />
  39. </checks>
  40. </testcase>