| Revision 1135,
1.8 KB
checked in by jharrop, 23 months ago
(diff) |
|
PDF via XSL FO: support for multiple sections
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" |
|---|
| 3 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|---|
| 4 | xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" |
|---|
| 5 | xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="2.1" |
|---|
| 6 | jaxb:extensionBindingPrefixes="xjc"> |
|---|
| 7 | |
|---|
| 8 | <!-- |
|---|
| 9 | |
|---|
| 10 | JAXB INSTRUCTIONS |
|---|
| 11 | |
|---|
| 12 | To generate java classes, you need xjc, from the JAXB 2.1 RI. |
|---|
| 13 | |
|---|
| 14 | (I used JAXB 2.1.10 included in JDK 1.6.0_15) |
|---|
| 15 | |
|---|
| 16 | To generate the classes (from the same directory) |
|---|
| 17 | |
|---|
| 18 | xjc sections.xsd -d ~/workspace/docx4j/src/main/java -no-header -target 2.0 -extension |
|---|
| 19 | |
|---|
| 20 | It would be nice to be able to add the fluent api |
|---|
| 21 | |
|---|
| 22 | sh ~/jaxb-ri-20071219/bin/xjc.sh -classpath ~/workspace/docx4j/m2/org/jvnet/jaxb2_commons/ppp/parent-pointer-plugin/1.0/parent-pointer-plugin-1.0.jar:~/workspace/docx4j/lib/jaxb-fluent-api-2.1.8.jar -Xfluent-api -Xparent-pointer wml.xsd -d tmp/ -no-header -target 2.0 |
|---|
| 23 | |
|---|
| 24 | jaxb-ri-20071219 is 2.1.6; jaxb-ri-20070917 works equally well. |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | --> |
|---|
| 28 | |
|---|
| 29 | <xs:annotation> |
|---|
| 30 | <xs:appinfo> |
|---|
| 31 | <xs:appinfo> |
|---|
| 32 | <jaxb:globalBindings> |
|---|
| 33 | </jaxb:globalBindings> |
|---|
| 34 | </xs:appinfo> |
|---|
| 35 | <jaxb:schemaBindings> |
|---|
| 36 | <jaxb:package name="org.docx4j.model.structure.jaxb"/> |
|---|
| 37 | </jaxb:schemaBindings> |
|---|
| 38 | </xs:appinfo> |
|---|
| 39 | </xs:annotation> |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | <xs:element name="sections"> |
|---|
| 43 | <xs:complexType> |
|---|
| 44 | <xs:sequence> |
|---|
| 45 | <xs:element maxOccurs="unbounded" name="section"> |
|---|
| 46 | <xs:complexType> |
|---|
| 47 | <xs:sequence> |
|---|
| 48 | <xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded" /> |
|---|
| 49 | </xs:sequence> |
|---|
| 50 | <xs:attribute name="name" type="xs:string" use="required" /> |
|---|
| 51 | </xs:complexType> |
|---|
| 52 | </xs:element> |
|---|
| 53 | </xs:sequence> |
|---|
| 54 | </xs:complexType> |
|---|
| 55 | </xs:element> |
|---|
| 56 | </xs:schema> |
|---|
Note: See
TracBrowser
for help on using the repository browser.