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ů.

external-graphic_content-height_content-width.xml 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2005 The Apache Software Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <!-- $Id$ -->
  15. <testcase>
  16. <info>
  17. <p>
  18. This test checks external-graphics with relative content-height
  19. </p>
  20. </info>
  21. <fo>
  22. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  23. <fo:layout-master-set>
  24. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  25. <fo:region-body/>
  26. </fo:simple-page-master>
  27. </fo:layout-master-set>
  28. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  29. <fo:flow flow-name="xsl-region-body">
  30. <fo:block>plain external-graphic</fo:block>
  31. <fo:block>
  32. <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" content-height="200%" content-width="200%" />EOG
  33. </fo:block>
  34. <fo:block>EOF</fo:block>
  35. </fo:flow>
  36. </fo:page-sequence>
  37. </fo:root>
  38. </fo>
  39. <checks>
  40. <eval expected="360000" xpath="//flow/block[2]/@ipd"/>
  41. <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
  42. <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
  43. <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
  44. <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
  45. </checks>
  46. </testcase>