123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?xml version="1.0" encoding="UTF-8"?>
- <grammar ns="http://ez.no/namespaces/ezpublish3" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="">
- <start>
- <element name="section">
- <zeroOrMore>
- <ref name="sectionContent"/>
- </zeroOrMore>
- </element>
- </start>
- <define name="sectionContent">
- <choice>
- <element name="section">
- <oneOrMore>
- <ref name="sectionContent"/>
- </oneOrMore>
- </element>
- <element name="paragraph">
- <ref name="paragraphContent"/>
- </element>
- <element name="header">
- <ref name="headerContent"/>
- </element>
- </choice>
- </define>
- <define name="headerContent">
- <optional>
- <attribute name="anchor_name">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="level">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <text/>
- </define>
- <define name="paragraphContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <choice>
- <ref name="inlineContent"/>
- <element name="line">
- <ref name="inlineContent"/>
- </element>
- <element name="embed">
- <ref name="embedAttributes"/>
- </element>
- <element name="ol">
- <ref name="listContent"/>
- </element>
- <element name="ul">
- <ref name="listContent"/>
- </element>
- <element name="custom">
- <attribute name="name">
- <data type="string"/>
- </attribute>
- </element>
- <element name="literal">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <text/>
- </element>
- <element name="table">
- <ref name="tableContent"/>
- </element>
- </choice>
- </oneOrMore>
- </define>
- <define name="listContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <element name="li">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <element name="paragraph">
- <ref name="paragraphContent"/>
- </element>
- </oneOrMore>
- </element>
- </oneOrMore>
- </define>
- <define name="tableContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="width">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="border">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <element name="tr">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <choice>
- <oneOrMore>
- <element name="td">
- <ref name="tableCellContent"/>
- </element>
- </oneOrMore>
- <oneOrMore>
- <element name="th">
- <ref name="tableCellContent"/>
- </element>
- </oneOrMore>
- </choice>
- </element>
- </oneOrMore>
- </define>
- <define name="tableCellContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:width">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:colspan">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:rowspan">
- <data type="string"/>
- </attribute>
- </optional>
- <zeroOrMore>
- <choice>
- <ref name="sectionContent"/>
- <element name="table">
- <ref name="tableContent"/>
- </element>
- </choice>
- </zeroOrMore>
- </define>
- <define name="inlineContent">
- <zeroOrMore>
- <choice>
- <text/>
- <element name="embed">
- <ref name="embedAttributes"/>
- </element>
- <element name="embed-inline">
- <ref name="embedAttributes"/>
- </element>
- <element name="strong">
- <ref name="inlineElementContent"/>
- </element>
- <element name="emphasize">
- <ref name="inlineElementContent"/>
- </element>
- <element name="link">
- <ref name="linkContent"/>
- </element>
- <element name="anchor">
- <optional>
- <attribute name="name">
- <data type="string"/>
- </attribute>
- </optional>
- <ref name="inlineContent"/>
- </element>
- </choice>
- </zeroOrMore>
- </define>
- <define name="inlineElementContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <ref name="inlineContent"/>
- </define>
- <define name="embedAttributes">
- <optional>
- <attribute name="id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="object_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="node_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="show_path">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="size">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="align">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="view">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="target">
- <data type="string"/>
- </attribute>
- </optional>
- </define>
- <define name="linkContent">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="target">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="xhtml:title">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="object_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="node_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="show_path">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="anchor_name">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="url_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="view">
- <data type="string"/>
- </attribute>
- </optional>
- <ref name="inlineContent"/>
- </define>
- </grammar>
|