Česky
Kamil Dudka

Web components

File detail

Name:DownloadQuickMenu.dtd [Download]
Location: src > dtd
Size:992 B
Last modification:2007-12-11 16:08

Source code

<!--
/**
 * @file QuickMenu.dtd
 * DTD for QuickMenu.xml - template for QuickMenu generation.
 * QuickMenu is free web component
 * available at http://dudka.cz/QuickMenu
 * @author Kamil Dudka <xdudka00@gmail.com>

 * @ingroup QuickMenu
 */
-->
<!--
    Root element of QuickMenu template.
    There are no attributes.
    -->
<!ELEMENT QuickMenu (qmText+,qmItem+)>
 
<!--
    Menu item's visible text.
 
    Voluntary attribute 'lang' defines text language.
    There can be more qmText elements per item
    in various languages.
 
    Obligatory is qmText wihtout 'lang' attribute
    specified. This is default item's text.
    -->
<!ELEMENT qmText (#PCDATA)>
<!ATTLIST qmText
          lang CDATA #IMPLIED>
 
<!--
    Menu item.
 
    qmItem elements can be nested to themself.
 
    Obligatory attribute 'href' specifies path of item's
    target. This path is relative to web root.
    -->
<!ELEMENT qmItem (qmText+,qmItem*)>
<!ATTLIST qmItem
          href CDATA #REQUIRED>