Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

fop-intermediate-format-ng-nav.xsd 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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"
  18. elementFormDefault="qualified"
  19. targetNamespace="http://xmlgraphics.apache.org/fop/intermediate/document-navigation"
  20. xmlns:nav="http://xmlgraphics.apache.org/fop/intermediate/document-navigation"
  21. xmlns:if="http://xmlgraphics.apache.org/fop/intermediate">
  22. <xs:import schemaLocation="fop-intermediate-format-ng-datatypes.xsd"
  23. namespace="http://xmlgraphics.apache.org/fop/intermediate"/>
  24. <xs:element name="bookmark-tree">
  25. <xs:complexType>
  26. <xs:sequence minOccurs="1" maxOccurs="unbounded">
  27. <xs:element ref="nav:bookmark"/>
  28. </xs:sequence>
  29. </xs:complexType>
  30. </xs:element>
  31. <xs:element name="bookmark">
  32. <xs:complexType>
  33. <xs:complexContent>
  34. <xs:extension base="nav:actionType">
  35. <xs:sequence>
  36. <xs:element ref="nav:bookmark" maxOccurs="unbounded" minOccurs="0"/>
  37. </xs:sequence>
  38. <xs:attribute name="title" type="xs:string"/>
  39. <xs:attribute name="starting-state">
  40. <xs:simpleType>
  41. <xs:restriction base="xs:string">
  42. <xs:enumeration value="show"/>
  43. <xs:enumeration value="hide"/>
  44. </xs:restriction>
  45. </xs:simpleType>
  46. </xs:attribute>
  47. <!-- Not yet implemented:
  48. <xs:attribute name="color" type="if:colorType"/>
  49. <xs:attribute name="font-style">
  50. <xs:simpleType>
  51. <xs:restriction base="xs:string">
  52. <xs:enumeration value="normal"/>
  53. <xs:enumeration value="italic"/>
  54. </xs:restriction>
  55. </xs:simpleType>
  56. </xs:attribute>
  57. <xs:attribute name="font-weight">
  58. <xs:simpleType>
  59. <xs:restriction base="xs:string">
  60. <xs:enumeration value="normal"/>
  61. <xs:enumeration value="bold"/>
  62. </xs:restriction>
  63. </xs:simpleType>
  64. </xs:attribute>
  65. -->
  66. </xs:extension>
  67. </xs:complexContent>
  68. </xs:complexType>
  69. </xs:element>
  70. <xs:element name="link">
  71. <xs:complexType>
  72. <xs:complexContent>
  73. <xs:extension base="nav:actionType">
  74. <xs:attribute name="rect" type="if:rectangleType"/>
  75. </xs:extension>
  76. </xs:complexContent>
  77. </xs:complexType>
  78. </xs:element>
  79. <xs:complexType name="actionType">
  80. <xs:choice>
  81. <xs:element ref="nav:goto-uri"/>
  82. <xs:element ref="nav:goto-xy"/>
  83. </xs:choice>
  84. </xs:complexType>
  85. <xs:element name="goto-uri">
  86. <xs:complexType>
  87. <xs:attributeGroup ref="nav:idAtts"/>
  88. <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  89. <xs:attribute name="show-destination" use="optional" default="replace">
  90. <xs:simpleType>
  91. <xs:restriction base="xs:string">
  92. <xs:enumeration value="new"/>
  93. <xs:enumeration value="replace"/>
  94. </xs:restriction>
  95. </xs:simpleType>
  96. </xs:attribute>
  97. </xs:complexType>
  98. </xs:element>
  99. <xs:element name="goto-xy">
  100. <xs:complexType>
  101. <xs:attributeGroup ref="nav:refDef"/>
  102. <xs:attribute name="page-index" type="xs:int"/>
  103. <xs:attributeGroup ref="nav:posAtts"/>
  104. </xs:complexType>
  105. </xs:element>
  106. <xs:attributeGroup name="posAtts">
  107. <xs:attribute name="x" type="if:lengthType" default="0"/>
  108. <xs:attribute name="y" type="if:lengthType" default="0"/>
  109. </xs:attributeGroup>
  110. <xs:attributeGroup name="idAtts">
  111. <xs:attribute name="id" type="xs:NCName"/>
  112. </xs:attributeGroup>
  113. <xs:attributeGroup name="refDef">
  114. <xs:attributeGroup ref="nav:idAtts"/>
  115. <xs:attribute name="idref" type="xs:NCName"/>
  116. </xs:attributeGroup>
  117. </xs:schema>