You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fop-intermediate-format-ng-content.xsd 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
  18. targetNamespace="http://xmlgraphics.apache.org/fop/intermediate"
  19. xmlns:mf="http://xmlgraphics.apache.org/fop/intermediate">
  20. <xs:include schemaLocation="fop-intermediate-format-ng-datatypes.xsd"/>
  21. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  22. schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  23. <xs:complexType name="contentType">
  24. <xs:choice maxOccurs="unbounded" minOccurs="0">
  25. <xs:element name="viewport">
  26. <xs:complexType>
  27. <xs:complexContent>
  28. <xs:extension base="mf:contentType">
  29. <xs:attribute name="transform" type="xs:string"/>
  30. <xs:attributeGroup ref="mf:sizeAtts"/>
  31. <xs:attribute name="clip-rect" type="mf:rectangleType"/>
  32. </xs:extension>
  33. </xs:complexContent>
  34. </xs:complexType>
  35. </xs:element>
  36. <xs:element name="g">
  37. <xs:complexType>
  38. <xs:complexContent>
  39. <xs:extension base="mf:contentType">
  40. <xs:attribute name="transform" type="xs:string"/>
  41. </xs:extension>
  42. </xs:complexContent>
  43. </xs:complexType>
  44. </xs:element>
  45. <xs:element name="font">
  46. <xs:complexType>
  47. <xs:attribute name="family" type="xs:string"/>
  48. <xs:attribute name="style" type="mf:fontStyleType"/>
  49. <xs:attribute name="variant" type="mf:fontVariantType"/>
  50. <xs:attribute name="weight" type="mf:fontWeightType"/>
  51. <xs:attribute name="stretch" type="mf:fontStretchType"/>
  52. <xs:attribute name="size" type="mf:lengthType"/>
  53. <xs:attribute name="color" type="mf:colorType"/>
  54. </xs:complexType>
  55. </xs:element>
  56. <xs:element name="text">
  57. <xs:complexType>
  58. <xs:simpleContent>
  59. <xs:extension base="xs:string">
  60. <xs:attribute name="x" use="required" type="mf:lengthType"/>
  61. <xs:attribute name="y" use="required" type="mf:lengthType"/>
  62. <xs:attribute name="letter-spacing" type="mf:lengthType"/>
  63. <xs:attribute name="word-spacing" type="mf:lengthType"/>
  64. <xs:attribute name="dx">
  65. <xs:simpleType>
  66. <xs:list itemType="mf:lengthType"/>
  67. </xs:simpleType>
  68. </xs:attribute>
  69. <xs:attribute ref="xml:space"/>
  70. </xs:extension>
  71. </xs:simpleContent>
  72. </xs:complexType>
  73. </xs:element>
  74. <xs:element name="clip-rect">
  75. <xs:complexType>
  76. <xs:attributeGroup ref="mf:rectAtts"/>
  77. </xs:complexType>
  78. </xs:element>
  79. <xs:element name="rect">
  80. <xs:complexType>
  81. <xs:attributeGroup ref="mf:rectAtts"/>
  82. <xs:attributeGroup ref="mf:fillAtts"/>
  83. </xs:complexType>
  84. </xs:element>
  85. <xs:element name="line">
  86. <xs:complexType>
  87. <xs:attribute name="x1" use="required" type="mf:lengthType"/>
  88. <xs:attribute name="y1" use="required" type="mf:lengthType"/>
  89. <xs:attribute name="x2" use="required" type="mf:lengthType"/>
  90. <xs:attribute name="y2" use="required" type="mf:lengthType"/>
  91. <xs:attribute name="color" use="required" type="mf:colorType"/>
  92. <xs:attribute name="stroke-width" use="required" type="mf:lengthType"/>
  93. <xs:attribute name="style" use="required" type="mf:ruleStyle"/>
  94. </xs:complexType>
  95. </xs:element>
  96. <xs:element name="border-rect">
  97. <xs:complexType>
  98. <xs:attributeGroup ref="mf:rectAtts"/>
  99. <xs:attribute name="start" type="mf:borderDef"/>
  100. <xs:attribute name="end" type="mf:borderDef"/>
  101. <xs:attribute name="before" type="mf:borderDef"/>
  102. <xs:attribute name="after" type="mf:borderDef"/>
  103. </xs:complexType>
  104. </xs:element>
  105. <xs:element name="image">
  106. <xs:complexType>
  107. <xs:complexContent>
  108. <xs:extension base="xs:anyType">
  109. <!-- Either use element content with any namespace or xlink:href -->
  110. <xs:attributeGroup ref="mf:rectAtts"/>
  111. <xs:attributeGroup ref="mf:foreignAtts"/>
  112. </xs:extension>
  113. </xs:complexContent>
  114. </xs:complexType>
  115. </xs:element>
  116. </xs:choice>
  117. </xs:complexType>
  118. <xs:attributeGroup name="sizeAtts">
  119. <xs:attribute name="width" type="mf:lengthType" use="required"/>
  120. <xs:attribute name="height" type="mf:lengthType" use="required"/>
  121. </xs:attributeGroup>
  122. <xs:attributeGroup name="posAtts">
  123. <xs:attribute name="x" type="mf:lengthType" default="0"/>
  124. <xs:attribute name="y" type="mf:lengthType" default="0"/>
  125. </xs:attributeGroup>
  126. <xs:attributeGroup name="rectAtts">
  127. <xs:attributeGroup ref="mf:posAtts"/>
  128. <xs:attributeGroup ref="mf:sizeAtts"/>
  129. </xs:attributeGroup>
  130. <xs:attributeGroup name="fillAtts">
  131. <xs:attribute name="fill" type="xs:string" default="none"/>
  132. </xs:attributeGroup>
  133. <!--xs:attributeGroup name="fillStrokeAtts">
  134. <xs:attribute name="fill" type="xs:string" default="none"/>
  135. <xs:attribute name="stroke" type="xs:string" default="none"/>
  136. </xs:attributeGroup-->
  137. <xs:attributeGroup name="foreignAtts">
  138. <xs:anyAttribute namespace="##other" processContents="lax"/>
  139. </xs:attributeGroup>
  140. </xs:schema>