source: trunk/docx4j/xsd/relationships.xsd @ 533

Revision 533, 2.6 KB checked in by jharrop, 4 years ago (diff)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsd:schema
3        xmlns="http://schemas.openxmlformats.org/package/2006/relationships"
4        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5        targetNamespace="http://schemas.openxmlformats.org/package/2006/relationships" 
6        elementFormDefault="qualified"
7        attributeFormDefault="unqualified" blockDefault="#all"
8        xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
9        xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="2.1">
10               
11        <!-- 
12       
13        For similar schema, see United States Patent 20080104203; Application Number: 11/555154
14    Publication Date: 05/01/2008
15        see http://www.freepatentsonline.com/y2008/0104203.html
16       
17        I'm not sure where else this is published.
18       
19       
20        <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
21                <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended
22-properties" Target="docProps/app.xml"/>
23                <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
24                <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
25        </Relationships>
26       
27       
28         sh ~/jaxb-ri-20071219/bin/xjc.sh relationships.xsd -d ~/workspace/docx4j/src/main/java/ -no-header -target 2.0
29       
30       
31        -->
32       
33        <xsd:annotation>
34                <xsd:appinfo>
35                        <xsd:appinfo>
36                                <jaxb:globalBindings>
37                                </jaxb:globalBindings>
38                        </xsd:appinfo>
39                        <jaxb:schemaBindings>
40                                <jaxb:package name="org.docx4j.relationships"/>
41                        </jaxb:schemaBindings>
42                </xsd:appinfo>
43        </xsd:annotation>
44       
45       
46        <xsd:element name="Relationships">
47                <xsd:complexType>
48                        <xsd:sequence>
49                                <xsd:element ref="Relationship" minOccurs="0"
50                                        maxOccurs="unbounded" />
51                        </xsd:sequence>
52                </xsd:complexType>
53        </xsd:element>
54
55
56        <xsd:element name="Relationship">
57                <xsd:complexType>
58                        <xsd:simpleContent>
59                                <xsd:extension base="xsd:string">
60                                        <!--                                    <xsd:attribute name="TargetMode" type="ST_TargetMode"
61                                                use="optional" /> -->
62                                        <xsd:attribute name="TargetMode" use="optional">
63                                                <xsd:simpleType>
64                                                        <xsd:restriction base="xsd:string">
65                                                                <xsd:enumeration value="External" />
66                                                                <xsd:enumeration value="Internal" />
67                                                        </xsd:restriction>
68                                                </xsd:simpleType>
69                                        </xsd:attribute>
70                                        <xsd:attribute name="Target" type="xsd:anyURI"
71                                                use="required" />
72                                        <xsd:attribute name="Type" type="xsd:anyURI"
73                                                use="required" />
74                                        <xsd:attribute name="Id" type="xsd:ID"
75                                                use="required" />
76                                </xsd:extension>
77                        </xsd:simpleContent>
78                </xsd:complexType>
79        </xsd:element>
80
81
82</xsd:schema>
83
Note: See TracBrowser for help on using the repository browser.