SMIL: Explanation correct?

John Taylor-Johnston <[email protected]>
Newsgroups gmane.comp.web.smil
Organization FLSH, U-de-S
Message-ID <[email protected]>
Hi,

Have I explained this reasonably well?

In project1.smil, this works:

 <smil xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions" qt:time-slider="true" xmlns="http://www.w3.org/TR/REC-smil">
 <text region="region2" src="data:text/plain,Hello, my name is Carl Wells!" begin="id(sound)(00:00)" dur="00:01"/>

But reverse the order, and it produces an error in the RealPlayer:

 <smil xmlns="http://www.w3.org/TR/REC-smil" xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions" qt:time-slider="true">

The reason is that it uses the first xmlns value:

xmlns="http://www.w3.org/TR/REC-smil"

which requires that we use escaped characters, for example «%20» for spaces and «%22» for quotation marks (").

On the other hand, because we insist on special formatting in project2.smil, we must use this:

 <smil xmlns="http://www.w3.org/TR/REC-smil" xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions" qt:time-slider="true">
 <text region="region2" src="data:text/plain,Hello,%20my%20name%20is%20Carl%20Wells!" begin="id(sound)(00:00)" dur="00:01"/>


John

--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not Open Source, it's Murphy's Law."

  ' ' '    Collège de Sherbrooke:
 ô¿ô    http://www.collegesherbrooke.qc.ca/languesmodernes/
    -     819-569-2064

  °v°   Bibliography of Comparative Studies in Canadian, Québec and Foreign Literatures
 /(_)\  Université de Sherbrooke
  ^ ^   http://compcanlit.ca/ T: 819.569.2064
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.