Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

wrapper_text-transform_1.xml 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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>
  20. This test checks text-transform.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block>none: <fo:wrapper text-transform="none">This tExT is left as-IS.</fo:wrapper></fo:block>
  33. <fo:block>capitalize: <fo:wrapper text-transform="capitalize">This tExT is capitalized.</fo:wrapper></fo:block>
  34. <fo:block>uppercase: <fo:wrapper text-transform="uppercase">This tExT is converted to uppercase. Liberté, Égalité, Fraternité und Käse.</fo:wrapper></fo:block>
  35. <fo:block>lowercase: <fo:wrapper text-transform="lowercase">This tExT is CONVERTED to lowercase. LibertÉ, Égalité, Fraternité und KÄSE.</fo:wrapper></fo:block>
  36. </fo:flow>
  37. </fo:page-sequence>
  38. </fo:root>
  39. </fo>
  40. <checks>
  41. <eval expected="none: This tExT is left as-IS." xpath="//flow/block[1]"/>
  42. <eval expected="capitalize: This TExT Is Capitalized." xpath="//flow/block[2]"/>
  43. <!-- spaces are discarded when around a line break -->
  44. <eval expected="uppercase: THIS TEXT IS CONVERTED TO UPPERCASE.LIBERTÉ, ÉGALITÉ, FRATERNITÉ UND KÄSE." xpath="//flow/block[3]"/>
  45. <eval expected="lowercase: this text is converted to lowercase. liberté, égalité,fraternité und käse." xpath="//flow/block[4]"/>
  46. </checks>
  47. </testcase>