<?xml version="1.0" ?>

<!-- 

     XML zaplet DTD, version 0.9
     Adam Feuer

     see http://www.zaplet.org/adzapper/

-->

<!ELEMENT zaplet (version, host, (enabled | modified | repository | comment)*, 
                                 (block_url | allow_url | block_popups | filter)* )>

<!ELEMENT version                       (#PCDATA)>
<!ELEMENT host                          (#PCDATA)>
<!ELEMENT enabled                       (#PCDATA)>
<!ELEMENT modified                      (#PCDATA)>
<!ELEMENT repository                    (#PCDATA)>
<!ELEMENT comment                       (#PCDATA)>

<!ELEMENT filter (filter_match_url, filter_match_text, filter_replace_text)>

<!-- type is either "regex", "literal", or "everything" -->

<!ELEMENT allow_url                      (#PCDATA)>
<!ATTLIST allow_url type           CDATA #REQUIRED>

<!ELEMENT block_url                      (#PCDATA)>
<!ATTLIST block_url type           CDATA #REQUIRED>

<!ELEMENT block_popups                   (#PCDATA)>
<!ATTLIST block_popups type        CDATA #REQUIRED>

<!ELEMENT filter (filter_match_url, filter_match_text, filter_replace_text)>
<!ELEMENT filter_match_url               (#PCDATA)>
<!ATTLIST filter_match_url type    CDATA #REQUIRED>

<!ELEMENT filter_match_text              (#PCDATA)>
<!ATTLIST filter_match_text type   CDATA #REQUIRED>

<!ELEMENT filter_replace_text            (#PCDATA)>

