123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628 |
- <?xml version="1.0" encoding="UTF-8"?>
- <grammar ns="http://ez.no/namespaces/ezpublish3" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="">
- <start>
- <element name="section">
- <zeroOrMore>
- <ref name="sectionContent"/>
- </zeroOrMore>
- </element>
- </start>
- <define name="sectionContent">
- <choice>
- <!-- From documentation -->
- <element name="h">
- <ref name="headerContent"/>
- </element>
- <element name="p">
- <ref name="paragraphContent"/>
- </element>
- <!-- From ezxml schema -->
- <element name="section">
- <oneOrMore>
- <ref name="sectionContent"/>
- </oneOrMore>
- </element>
- <element name="paragraph">
- <ref name="paragraphContent"/>
- </element>
- <element name="header">
- <ref name="headerContent"/>
- </element>
- <!-- Not documented at all, but some documents do not contain wrapping paragraphs -->
- <ref name="inlineContent"/>
- </choice>
- </define>
- <define name="headerContent">
- <optional>
- <!-- From documentation -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="anchor">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From ezxml schema -->
- <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>
- <choice>
- <!-- Not documented at all -->
- <ref name="inlineContent"/>
- <!-- From ezxml schema -->
- <text/>
- </choice>
- </define>
- <define name="paragraphContent">
- <optional>
- <!-- From documentation -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From ezxml schema -->
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <choice>
- <!-- Not documented at all -->
- <element name="object">
- <ref name="embedAttributes"/>
- </element>
- <element name="custom">
- <ref name="customContent"/>
- </element>
- <!-- From ezxml schema -->
- <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">
- <ref name="customContent"/>
- </element>
- <element name="literal">
- <optional>
- <!-- From ezxml schema -->
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <text/>
- </element>
- <element name="table">
- <ref name="tableContent"/>
- </element>
- </choice>
- </oneOrMore>
- </define>
- <define name="customContent">
- <optional>
- <!-- Just guessed, not documented at all: -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <attribute name="name">
- <data type="string"/>
- </attribute>
- <optional>
- <attribute name="custom:header">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:link">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:package_name">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:version">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:type">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:summary">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:description">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:url">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:thumbnail_url">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:min-version">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:feedurl">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:siteurl">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:limit">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:preselect">
- <data type="string"/>
- </attribute>
- </optional>
- <zeroOrMore>
- <choice>
- <!-- More or less anything... -->
- <element name="h">
- <ref name="headerContent"/>
- </element>
- <element name="p">
- <ref name="paragraphContent"/>
- </element>
- <element name="section">
- <oneOrMore>
- <ref name="sectionContent"/>
- </oneOrMore>
- </element>
- <element name="paragraph">
- <ref name="paragraphContent"/>
- </element>
- <element name="header">
- <ref name="headerContent"/>
- </element>
- <ref name="inlineContent"/>
- </choice>
- </zeroOrMore>
- </define>
- <define name="listContent">
- <optional>
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <zeroOrMore>
- <element name="li">
- <group>
- <optional>
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <oneOrMore>
- <choice>
- <!-- Not documented at all -->
- <element name="line">
- <ref name="inlineContent"/>
- </element>
- <!-- From documentation -->
- <element name="p">
- <ref name="paragraphContent"/>
- </element>
- <!-- From ezxml schema -->
- <element name="paragraph">
- <ref name="paragraphContent"/>
- </element>
- <ref name="inlineContent"/>
- </choice>
- <!-- Seldom, but sometimes those elements are even mixed. -->
- </oneOrMore>
- </group>
- <!-- Yes, empty lists are possible. -->
- </element>
- </zeroOrMore>
- </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>
- <zeroOrMore>
- <choice>
- <element name="td">
- <ref name="tableCellContent"/>
- </element>
- <element name="th">
- <ref name="tableCellContent"/>
- </element>
- </choice>
- <!--
- Table headers and cells can be mixed in one row.
- And there are empty rows used sometimes
- -->
- </zeroOrMore>
- </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>
- <!-- Not dcumented at all -->
- <element name="custom">
- <ref name="customContent"/>
- </element>
- <element name="object">
- <ref name="embedAttributes"/>
- </element>
- <element name="literal">
- <optional>
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <text/>
- </element>
- <!-- From documentation -->
- <element name="b">
- <ref name="inlineElementContent"/>
- </element>
- <element name="bold">
- <ref name="inlineElementContent"/>
- </element>
- <element name="i">
- <ref name="inlineElementContent"/>
- </element>
- <element name="em">
- <ref name="inlineElementContent"/>
- </element>
- <element name="a">
- <ref name="linkContent"/>
- </element>
- <!-- From ezxml schema -->
- <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="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="name">
- <data type="string"/>
- </attribute>
- </optional>
- <ref name="inlineContent"/>
- </element>
- <text/>
- </choice>
- </zeroOrMore>
- </define>
- <define name="inlineElementContent">
- <optional>
- <!-- From documentation -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From ezxml schema -->
- <attribute name="class">
- <data type="string"/>
- </attribute>
- </optional>
- <ref name="inlineContent"/>
- </define>
- <define name="embedAttributes">
- <optional>
- <!-- Not documented at all -->
- <attribute name="custom:size">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:nolink">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:image_size">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:image_class">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:type">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:link">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:hide_header">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:limit">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="custom:country">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="image:ezurl_target">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="image:ezurl_id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From documentation -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="id">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="href">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From ezxml schema -->
- <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>
- <!-- From documentation -->
- <attribute name="custom_parameter">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="href">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="title">
- <data type="string"/>
- </attribute>
- </optional>
- <optional>
- <!-- From ezxml schema -->
- <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>
|