W3C home > Mailing lists > Public > www-smil@w3.org > April to June 1999

detecting SMIL syntax errors

From: Philipp Hoschka <ph@w3.org>
Date: Mon, 05 Apr 1999 10:36:45 -0400
Message-ID: <3708CA7D.561B65@w3.org>
To: www-smil@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:53:25 GMT