<?xml version="1.0" encoding="UTF-8"?>
<!--
  DTD for the definition of a sequence of URL links.
-->

<!ELEMENT sequence (link*) >

<!ELEMENT link (qsdata?, formdata?) >
<!ATTLIST link id CDATA #REQUIRED
               tid CDATA #IMPLIED
               host CDATA #REQUIRED
               pathroot CDATA #REQUIRED
               redirect (static | dynamic) "static"
               multiple (random | first) "random"
               expect-title CDATA #IMPLIED>

<!ELEMENT qsdata (data)* >

<!ELEMENT formdata (data)* >

<!ELEMENT data (separator?, name, value?) >

<!ELEMENT separator EMPTY >
<!ATTLIST separator char CDATA #REQUIRED>

<!ELEMENT name (#PCDATA) >

<!ELEMENT value (constant | datasetref | page | select)? >

<!ELEMENT constant EMPTY >
<!ATTLIST constant value CDATA #REQUIRED >

<!ELEMENT datasetref EMPTY >
<!ATTLIST datasetref dsid CDATA #REQUIRED >

<!ELEMENT select EMPTY >
<!ATTLIST select num CDATA #REQUIRED 
                 method (random | first) "random" >

<!ELEMENT page EMPTY >