| <?xml version="1.0" encoding="iso-8859-1"?> |
| <!-- |
| 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: ruby.rng 42702 2004-03-13 12:34:18Z gregor $ --> |
| |
| <grammar xmlns="http://relaxng.org/ns/structure/1.0"> |
| |
| <define name="ruby"> |
| <element name="ruby"> |
| <ref name="ruby.attlist"/> |
| <choice> |
| <group> |
| <ref name="rb"/> |
| <choice> |
| <ref name="rt"/> |
| <group> |
| <ref name="rp"/> |
| <ref name="rt"/> |
| <ref name="rp"/> |
| </group> |
| </choice> |
| </group> |
| <group> |
| <ref name="rbc"/> |
| <ref name="rtc"/> |
| <optional> |
| <ref name="rtc"/> |
| </optional> |
| </group> |
| </choice> |
| </element> |
| </define> |
| |
| <define name="ruby.attlist"> |
| <ref name="Common.attrib"/> |
| </define> |
| |
| <define name="rbc"> |
| <element name="rbc"> |
| <ref name="rbc.attlist"/> |
| <oneOrMore> |
| <ref name="rb"/> |
| </oneOrMore> |
| </element> |
| </define> |
| |
| <define name="rbc.attlist"> |
| <ref name="Common.attrib"/> |
| </define> |
| |
| <define name="rtc"> |
| <element name="rtc"> |
| <ref name="rtc.attlist"/> |
| <oneOrMore> |
| <ref name="rt"/> |
| </oneOrMore> |
| </element> |
| </define> |
| |
| <define name="rtc.attlist"> |
| <ref name="Common.attrib"/> |
| </define> |
| |
| <define name="rb"> |
| <element name="rb"> |
| <ref name="rb.attlist"/> |
| <ref name="Inline.model"/> |
| </element> |
| </define> |
| |
| <define name="rb.attlist"> |
| <ref name="Common.attrib"/> |
| </define> |
| |
| <define name="rt"> |
| <element name="rt"> |
| <ref name="rt.attlist"/> |
| <ref name="Inline.model"/> |
| </element> |
| </define> |
| |
| <define name="rt.attlist"> |
| <ref name="Common.attrib"/> |
| <optional> |
| <attribute name="rt"> |
| <ref name="Number.datatype"/> |
| </attribute> |
| </optional> |
| </define> |
| |
| <define name="rp"> |
| <element name="rp"> |
| <ref name="rp.attlist"/> |
| <text/> |
| </element> |
| </define> |
| |
| <define name="rp.attlist"> |
| <ref name="Common.attrib"/> |
| </define> |
| |
| <define name="Inline.class" combine="choice"> |
| <ref name="ruby"/> |
| </define> |
| |
| </grammar> |