blob: e377d35cb5588ff944edaba4bead9f8982a370be [file] [log] [blame]
<?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$ -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://xmlgraphics.apache.org/fop/intermediate"
xmlns:mf="http://xmlgraphics.apache.org/fop/intermediate">
<xs:include schemaLocation="fop-intermediate-format-ng-datatypes.xsd"/>
<xs:complexType name="contentType">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="box">
<xs:complexType>
<xs:complexContent>
<xs:extension base="mf:contentType">
<xs:attribute name="transform" type="xs:string"/>
<xs:attributeGroup ref="mf:sizeAtts"/>
<xs:attribute name="clip" type="xs:boolean" default="false"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="font">
<xs:complexType>
<xs:attribute name="family" type="xs:string"/>
<xs:attribute name="style" type="mf:fontStyleType"/>
<xs:attribute name="variant" type="mf:fontVariantType"/>
<xs:attribute name="weight" type="mf:fontWeightType"/>
<xs:attribute name="stretch" type="mf:fontStretchType"/>
<xs:attribute name="size" type="xs:positiveInteger"/>
<xs:attribute name="color" type="mf:colorType"/>
</xs:complexType>
</xs:element>
<xs:element name="text">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="x" use="required">
<xs:simpleType>
<xs:list itemType="xs:integer"/>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="y" use="required">
<xs:simpleType>
<xs:list itemType="xs:integer"/>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="clip-path">
<xs:complexType>
<xs:attribute name="d" type="mf:pathDataType" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="draw-path">
<xs:complexType>
<xs:attribute name="d" type="mf:pathDataType" use="required"/>
<xs:attributeGroup ref="mf:fillStrokeAtts"/>
</xs:complexType>
</xs:element>
<xs:element name="clip-rect">
<xs:complexType>
<xs:attributeGroup ref="mf:rectAtts"/>
</xs:complexType>
</xs:element>
<xs:element name="draw-rect">
<xs:complexType>
<xs:attributeGroup ref="mf:rectAtts"/>
<xs:attributeGroup ref="mf:fillStrokeAtts"/>
</xs:complexType>
</xs:element>
<xs:element name="draw-border-line">
<xs:complexType>
<xs:attribute name="x1" type="xs:integer" use="required"/>
<xs:attribute name="y1" type="xs:integer" use="required"/>
<xs:attribute name="x2" type="xs:integer" use="required"/>
<xs:attribute name="y2" type="xs:integer" use="required"/>
<xs:attribute name="width" type="xs:integer" use="required"/>
<xs:attribute name="style" type="mf:borderStyle" default="solid"/>
</xs:complexType>
</xs:element>
<xs:element name="image">
<xs:complexType>
<xs:complexContent>
<xs:extension base="xs:anyType">
<!-- Either use element content with any namespace or xlink:href -->
<xs:attributeGroup ref="mf:rectAtts"/>
<xs:anyAttribute namespace="http://www.w3.org/1999/xlink" processContents="skip"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:attributeGroup name="sizeAtts">
<xs:attribute name="width" type="xs:positiveInteger" use="required"/>
<xs:attribute name="height" type="xs:positiveInteger" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="rectAtts">
<xs:attribute name="x" type="xs:integer" default="0"/>
<xs:attribute name="y" type="xs:integer" default="0"/>
<xs:attributeGroup ref="mf:sizeAtts"/>
</xs:attributeGroup>
<xs:attributeGroup name="fillStrokeAtts">
<xs:attribute name="fill" type="xs:string" default="none"/>
<xs:attribute name="stroke" type="xs:string" default="none"/>
</xs:attributeGroup>
</xs:schema>