<!-- Resource File 1.0.0 DTD 2001-09-27
 file: resource100.dtd  
 
Authors: Tom McLaughlin, Michael Moodie, Thomas Kjellberg Christensen

Change list:
09-27-2001
Added attribute use list to resource description.
09-10-2001 TM
Added version attribute to root.
Added %URI and %SMILtimeVal entities.
Changed navResource to resources.
Collapsed three resource types to resource.
Added type, elementRef, classRef, and idRef attributes to resource.
01-30-2001 MM 
Changed classResource to navTypeResource to reflect change in NCX from class attribute to navType attribute.  
Changed class attribute on navTypeResource to navTypeRef.
Changed id attribute on idResource to idRef.
01-17-2001 TKC 
Added idResource.

The following identifiers apply to this DTD: 
"-//NISO//DTD resource v1.0.0//EN"
"http://www.loc.gov/nls/z3986/v100/resource100.dtd"
-->

<!-- ********** Attribute Types *********** -->
<!-- languagecode: An RFC1766 language code. -->
<!ENTITY % languagecode "NMTOKEN">

<!-- SMILtimeVal: SMIL 2.0 clock value. -->
<!ENTITY % SMILtimeVal "CDATA">

<!ENTITY % URI "CDATA">

<!-- **************** Resource Elements ********** -->

<!-- Resources: Root element of DTD. 
-->
<!ELEMENT resources  (head?, (resource)+) >
<!ATTLIST resources
  version   	CDATA       	#FIXED "1.0.0"
>

<!-- Document Head - Contains metadata. 
-->
<!ELEMENT head (meta*)>

<!-- Resource element contains information about the alternative representations 
of an element present in the NCX or the textual content file. An alternative 
representation can be used to convey navigational information, e.g., provide 
a descriptive name for the kind of segment (part, chapter, section, etc.) 
the user is encountering.  In addition, it can supply accessible versions of dtbook element names and names of skippable structures listed in the head of the NCX.  Text can be used for screen or braille display, 
audio for digital talking book players, and image for screen display.
Attribute use:
type - Specifies whether the resource applies to the textual content file (dtbook) or the NCX 
(ncx). 
elementRef - Specifies the name of the element for which the resource is to be supplied.      classRef - Specifies the class attribute value of the element for which the resource is to be supplied. 
idRef - Specifies the name of the id attribute on the smilCustomTest element in NCX for which the resource is to be supplied. 
lang - Specifies the language of the resource item, using an RFC 1766 language code.
-->
<!ELEMENT resource  ((text, audio?, img?) | (text?, audio, img?)) >
<!ATTLIST resource
  type		(ncx | dtbook)	#REQUIRED
  elementRef   	CDATA       	#REQUIRED
  classRef	CDATA		#IMPLIED
  idRef		CDATA		#IMPLIED
  lang     	%languagecode;  #IMPLIED
>

<!ELEMENT text  (#PCDATA) >
 
<!ELEMENT audio  EMPTY > 
<!ATTLIST audio 
  src		%URI;		#REQUIRED 
  clipBegin	%SMILtimeVal;	#IMPLIED 
  clipEnd	%SMILtimeVal;	#IMPLIED 
> 
 
<!-- If the clipBegin attribute is not present in an instance of the 
audio element, the audio file referenced must be played from its beginning.  
If the clipEnd attribute is not present, the audio file must be played to 
its end. If the value of the clipEnd attribute exceeds the duration of 
the audio file, the value must be ignored, and the audio file played to 
its end.
--> 
 
<!ELEMENT img  EMPTY > 
<!ATTLIST img
  src		%URI;		#REQUIRED
>
 
<!-- Meta Element - producer-defined metadata about this resource file.
--> 
<!ELEMENT meta EMPTY> 
<!ATTLIST meta
  name		CDATA		#REQUIRED
  content	CDATA		#REQUIRED
  scheme	CDATA		#IMPLIED
>