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.xsd 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. xmlns:nav="http://xmlgraphics.apache.org/fop/intermediate/document-navigation">
  21. <xs:import namespace="http://xmlgraphics.apache.org/fop/intermediate/document-navigation"
  22. schemaLocation="fop-intermediate-format-ng-nav.xsd"/>
  23. <xs:import namespace="adobe:ns:meta/" schemaLocation="xmp-metadata.xsd"/>
  24. <xs:import namespace="http://xmlgraphics.apache.org/fop/intermediate/document-navigation"
  25. schemaLocation="fop-intermediate-format-ng-nav.xsd"/>
  26. <xs:include schemaLocation="fop-intermediate-format-ng-datatypes.xsd"/>
  27. <xs:include schemaLocation="fop-intermediate-format-ng-content.xsd"/>
  28. <xs:element name="document">
  29. <xs:complexType>
  30. <xs:sequence>
  31. <xs:element ref="mf:header"/>
  32. <xs:element ref="mf:page-sequence" minOccurs="1" maxOccurs="unbounded"/>
  33. <xs:element ref="mf:trailer"/>
  34. </xs:sequence>
  35. </xs:complexType>
  36. </xs:element>
  37. <xs:element name="header">
  38. <xs:complexType>
  39. <xs:sequence>
  40. <xs:element name="locale" minOccurs="0" maxOccurs="1">
  41. <xs:complexType>
  42. <xs:attributeGroup ref="mf:foreignAtts"/>
  43. </xs:complexType>
  44. </xs:element>
  45. <xs:choice minOccurs="0" maxOccurs="unbounded">
  46. <!--xs:element ref="x:xmpmeta" xmlns:x="adobe:ns:meta/"/-->
  47. <xs:any namespace="##other" processContents="lax"/>
  48. </xs:choice>
  49. </xs:sequence>
  50. </xs:complexType>
  51. </xs:element>
  52. <xs:element name="trailer">
  53. <xs:complexType>
  54. <xs:choice minOccurs="0" maxOccurs="unbounded">
  55. <!--xs:element ref="nav:bookmark-tree"/-->
  56. <xs:any namespace="##other" processContents="lax"/>
  57. </xs:choice>
  58. </xs:complexType>
  59. </xs:element>
  60. <xs:element name="page-sequence">
  61. <xs:complexType>
  62. <xs:sequence>
  63. <xs:choice minOccurs="0" maxOccurs="unbounded">
  64. <xs:any namespace="##other" processContents="lax"/>
  65. </xs:choice>
  66. <xs:element ref="mf:page" minOccurs="1" maxOccurs="unbounded"/>
  67. </xs:sequence>
  68. <xs:attribute name="id" type="xs:ID"/>
  69. <xs:attribute ref="mf:xmlSpace"/>
  70. <xs:attributeGroup ref="mf:foreignAtts"/>
  71. </xs:complexType>
  72. </xs:element>
  73. <xs:element name="page">
  74. <xs:complexType>
  75. <xs:sequence>
  76. <xs:element name="page-header" type="mf:anyContent"/>
  77. <xs:element name="content" type="mf:contentType"/>
  78. <xs:element name="page-trailer" minOccurs="0">
  79. <xs:complexType>
  80. <xs:choice minOccurs="0" maxOccurs="unbounded">
  81. <xs:element ref="nav:link"/>
  82. <xs:element ref="nav:goto-xy"/>
  83. </xs:choice>
  84. </xs:complexType>
  85. </xs:element>
  86. </xs:sequence>
  87. <xs:attribute name="index" type="xs:nonNegativeInteger" use="required"/>
  88. <xs:attribute name="name" type="xs:string"/>
  89. <xs:attribute name="page-master-name" type="xs:string"/>
  90. <xs:attributeGroup ref="mf:sizeAtts"/>
  91. <xs:attributeGroup ref="mf:foreignAtts"/>
  92. </xs:complexType>
  93. </xs:element>
  94. <xs:complexType name="anyContent">
  95. <xs:choice minOccurs="0" maxOccurs="unbounded">
  96. <xs:any namespace="##other" processContents="lax"/>
  97. </xs:choice>
  98. </xs:complexType>
  99. </xs:schema>