123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!-- $Id$ -->
-
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified">
-
- <xsd:annotation>
- <xsd:documentation>This W3C schema document documents and validates the expected
- structure of a configuration file for FOP.</xsd:documentation>
- </xsd:annotation>
-
- <xsd:element name="fop">
- <xsd:complexType>
- <xsd:all>
- <xsd:element name="base" type="xsd:anyURI" minOccurs="0"></xsd:element>
- <xsd:element name="font-base" type="xsd:anyURI" minOccurs="0"></xsd:element>
- <xsd:element name="hyphenation-base" type="xsd:anyURI" minOccurs="0"></xsd:element>
- <xsd:element name="source-resolution"
- type="xsd:positiveInteger" minOccurs="0">
- </xsd:element>
- <xsd:element name="target-resolution"
- type="xsd:positiveInteger" minOccurs="0">
- </xsd:element>
- <xsd:element name="strict-validation" type="xsd:boolean" minOccurs="0"></xsd:element>
- <xsd:element name="strict-configuration" type="xsd:boolean" minOccurs="0"></xsd:element>
- <xsd:element name="break-indent-inheritance"
- type="xsd:boolean" minOccurs="0">
- </xsd:element>
- <xsd:element name="default-page-settings" minOccurs="0">
- <xsd:complexType>
- <xsd:attribute name="width" type="xsd:string"></xsd:attribute>
- <xsd:attribute name="height" type="xsd:string"></xsd:attribute>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="renderers" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="renderer" maxOccurs="unbounded"
- type="rendererType">
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:all>
- <xsd:attribute name="version" use="optional">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="1.0"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
- </xsd:element>
- <xsd:complexType name="rendererType">
- <xsd:annotation>
- <xsd:documentation>This type is stricter than required by FOP, in that it imposes an
- order of the elements, which is not required by FOP.</xsd:documentation>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:choice minOccurs="0">
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>Configuration elements used by the PDF renderer,
- MIME type application/pdf</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="filterList" minOccurs="0" maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>filterLists are used by the PDF renderer, MIME type
- application/pdf.</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="type" use="optional">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="default"/>
- <xsd:enumeration value="content"/>
- <xsd:enumeration value="image"/>
- <xsd:enumeration value="jpeg"/>
- <xsd:enumeration value="tiff"/>
- <xsd:enumeration value="font"/>
- <xsd:enumeration value="metadata"/>
- <!-- Available values: see PDFFilterList.java -->
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="output-profile" type="xsd:string" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>Output color profile used by the PDF renderer. Specifies a
- filename to an ICC file.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>Configuration elements used by the PostScript renderer,
- MIME type application/postscript</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="auto-rotate-landscape" type="xsd:boolean" default="false" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>When set to "true" a landscape page is automatically
- rotated and specified as a landscape page in PostScript.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="language-level" default="3" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>Specifies the PostScript language level to use when
- generating PostScript code.
- language-level is used by the PostScript renderer,
- MIME type application/postscript.</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:positiveInteger">
- <xsd:enumeration value="2"/>
- <xsd:enumeration value="3"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="optimize-resources" type="xsd:boolean" default="false" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>When set to "true" PostScript resources are optimized by making a
- second pass over the PostScript file (rewriting it). Optimized means that no duplicate
- images are written to the stream and only used fonts are added to the PostScript file.</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>rendering and text-rendering are used by the PCL renderer,
- MIME type application/vnd.hp-PCL</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="rendering" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="speed"/>
- <xsd:enumeration value="quality"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="text-rendering" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="auto"/>
- <xsd:enumeration value="bitmap"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:element>
- </xsd:sequence>
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>The elements in this sequence apply only to the bitmap renderers (PNG and TIFF).</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="transparent-page-background" type="xsd:boolean" default="false" minOccurs="0"/>
- </xsd:sequence>
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>The elements in this sequence apply only to the text renderer,
- MIME type text/plain.</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="encoding" type="xsd:string" default="UTF-8" minOccurs="0"/>
- </xsd:sequence>
- </xsd:choice>
- <xsd:sequence>
- <xsd:annotation>
- <xsd:documentation>The elements in this sequence apply only to the TIFF renderer,
- MIME type image/tiff.</xsd:documentation>
- </xsd:annotation>
- <xsd:element name="compression" type="xsd:string" minOccurs="0"/>
- </xsd:sequence>
- <xsd:element name="fonts" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="font" type="fontType" maxOccurs="unbounded"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="xml-handler" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:complexContent>
- <xsd:extension base="xsd:anyType"/>
- </xsd:complexContent>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="mime" type="MimeConstants" use="required"/>
- </xsd:complexType>
- <xsd:complexType name="fontType">
- <xsd:sequence>
- <xsd:element name="font-triplet" type="fontTripletType" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="metrics-url" type="xsd:anyURI" use="optional"/>
- <xsd:attribute name="embed-url" type="xsd:anyURI" use="optional"/>
- <xsd:attribute name="sub-font" type="xsd:string" use="optional"/>
- <xsd:attribute name="kerning" use="optional" default="no">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="yes"/>
- <xsd:enumeration value="no"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:complexType name="fontTripletType">
- <xsd:attribute name="name" type="xsd:string" use="required"/>
- <xsd:attribute name="style" type="xsd:string" use="required"/>
- <xsd:attribute name="weight" type="xsd:string" use="required"/>
- </xsd:complexType>
- <xsd:simpleType name="MimeConstants">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="application/pdf"/>
- <xsd:enumeration value="application/postscript"/>
- <xsd:enumeration value="application/x-pcl"/>
- <xsd:enumeration value="application/vnd.hp-PCL"/>
- <xsd:enumeration value="application/x-afp"/>
- <xsd:enumeration value="application/vnd.ibm.modcap"/>
- <xsd:enumeration value="text/plain"/>
- <xsd:enumeration value="application/rtf"/>
- <xsd:enumeration value="text/richtext"/>
- <xsd:enumeration value="text/rtf"/>
- <xsd:enumeration value="application/mif"/>
- <xsd:enumeration value="application/X-fop-awt-preview"/>
- <xsd:enumeration value="application/X-fop-print"/>
- <xsd:enumeration value="application/X-fop-areatree"/>
- <xsd:enumeration value="image/png"/>
- <xsd:enumeration value="image/tiff"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
|