diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-01-30 11:25:57 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-01-30 11:25:57 +0000 |
commit | 258df651e15f515d6eb925ce32038116d5cc73df (patch) | |
tree | 6fb55838eb8715fbfd5629215e434ebf6197bbc2 /src/documentation | |
parent | 193d746a5685668aae25400f1a7a19a316d41f47 (diff) | |
download | xmlgraphics-fop-258df651e15f515d6eb925ce32038116d5cc73df.tar.gz xmlgraphics-fop-258df651e15f515d6eb925ce32038116d5cc73df.zip |
Bookmarks are now in the doc navigation namespace, so move the definition and update it.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@739242 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation')
-rw-r--r-- | src/documentation/intermediate-format-ng/fop-intermediate-format-ng-nav.xsd | 63 | ||||
-rw-r--r-- | src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd | 54 |
2 files changed, 66 insertions, 51 deletions
diff --git a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-nav.xsd b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-nav.xsd index cc53483f8..ff6697cdf 100644 --- a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-nav.xsd +++ b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-nav.xsd @@ -21,8 +21,57 @@ targetNamespace="http://xmlgraphics.apache.org/fop/intermediate/document-navigation" xmlns:nav="http://xmlgraphics.apache.org/fop/intermediate/document-navigation" xmlns:if="http://xmlgraphics.apache.org/fop/intermediate"> + <xs:import schemaLocation="fop-intermediate-format-ng-datatypes.xsd" namespace="http://xmlgraphics.apache.org/fop/intermediate"/> + + <xs:element name="bookmark-tree"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="nav:bookmark"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="bookmark"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="nav:actionType"> + <xs:sequence> + <xs:element ref="nav:bookmark" maxOccurs="unbounded" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="title" type="xs:string"/> + <xs:attribute name="starting-state"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="show"/> + <xs:enumeration value="hide"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <!-- Not yet implemented: + <xs:attribute name="color" type="if:colorType"/> + <xs:attribute name="font-style"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="normal"/> + <xs:enumeration value="italic"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="font-weight"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="normal"/> + <xs:enumeration value="bold"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + --> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> + <xs:element name="link"> <xs:complexType> <xs:complexContent> @@ -32,6 +81,7 @@ </xs:complexContent> </xs:complexType> </xs:element> + <xs:complexType name="actionType"> <xs:choice> <xs:element ref="nav:goto-uri"/> @@ -42,6 +92,14 @@ <xs:complexType> <xs:attributeGroup ref="nav:idAtts"/> <xs:attribute name="uri" type="xs:anyURI" use="required"/> + <xs:attribute name="show-destination" use="optional" default="replace"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="new"/> + <xs:enumeration value="replace"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> <xs:element name="goto-xy"> @@ -51,15 +109,16 @@ <xs:attributeGroup ref="nav:posAtts"/> </xs:complexType> </xs:element> + <xs:attributeGroup name="posAtts"> <xs:attribute name="x" type="if:lengthType" default="0"/> <xs:attribute name="y" type="if:lengthType" default="0"/> </xs:attributeGroup> <xs:attributeGroup name="idAtts"> - <xs:attribute name="id" type="xs:ID"/> + <xs:attribute name="id" type="xs:NCName"/> </xs:attributeGroup> <xs:attributeGroup name="refDef"> <xs:attributeGroup ref="nav:idAtts"/> - <xs:attribute name="idref" type="xs:IDREF"/> + <xs:attribute name="idref" type="xs:NCName"/> </xs:attributeGroup> </xs:schema> diff --git a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd index bd5a09739..483935c16 100644 --- a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd +++ b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd @@ -40,60 +40,16 @@ <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <!--xs:element ref="x:xmpmeta" xmlns:x="adobe:ns:meta/"/--> - <xs:element ref="mf:bookmark-tree"/> <xs:any namespace="##other" processContents="lax"/> </xs:choice> </xs:complexType> </xs:element> - <xs:element name="trailer" type="mf:anyContent"/> - <xs:element name="bookmark-tree"> + <xs:element name="trailer"> <xs:complexType> - <xs:sequence minOccurs="1" maxOccurs="unbounded"> - <xs:element ref="mf:bookmark"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="bookmark"> - <xs:complexType> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="bookmark-title"> - <xs:complexType> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute name="color" type="mf:colorType"/> - <xs:attribute name="font-style"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:enumeration value="normal"/> - <xs:enumeration value="italic"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="font-weight"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:enumeration value="normal"/> - <xs:enumeration value="bold"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - </xs:element> - <xs:element ref="mf:bookmark" maxOccurs="unbounded" minOccurs="0"/> - </xs:sequence> - <xs:attribute name="external-destination" type="xs:anyURI"/> - <xs:attribute name="internal-destination" type="xs:NCName"> - </xs:attribute> - <xs:attribute name="starting-state"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:enumeration value="show"/> - <xs:enumeration value="hide"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <!--xs:element ref="nav:bookmark-tree"/--> + <xs:any namespace="##other" processContents="lax"/> + </xs:choice> </xs:complexType> </xs:element> <xs:element name="page-sequence"> |