detecting SMIL syntax errors

Given recent problems reported on this list, I thought it may be
worthwhile to point out that SMIL players will give you syntax errors
for syntax that does not conform to SMIL 1.0 when you add the following
line at the top of the SMIL file:

<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 1.0//EN"
"http://www.w3.org/TR/REC-smil/SMIL10.dtd">

Example: SMIL players should give you a syntax error for the following
file:

<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 1.0//EN"
"http://www.w3.org/TR/REC-smil/SMIL10.dtd">
<smil>
  <body>
    <video src="test.mpg">
      <a href="test.html">
        <fragment begin="2s" end="4s" />
     </a>
   </video>
 </body>
</smil>

They should *not* give you a syntax error for the following file (except
for a message that they cannot
find the video file), since there is no DOCTYPE declaration:

<smil>
  <body>
    <video src="test.mpg">
      <a href="test.html">
        <fragment begin="2s" end="4s" />
     </a>
   </video>
 </body>
</smil>

Received on Tuesday, 6 April 1999 07:35:36 UTC