Can a SMIL file read data from an external .xm file ? (Not created from Data model.)

         
  Can anyone let me know whether it is possible for a SMIL to read data from
an external .xml file, which is NOT created by SMIL using data model, while
it is being played ? Please see example below for an explanation. This
refers to State module of SMIL.

 Scenario 1
 ----------
 
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0"
baseProfile="Language">
  <head> 
    <layout>
       -----------------------------
       ------------------------------
    </layout>
     <state language="http://www.w3.org/TR/1999/REC-xpath-19991116">
        <data>
          <add_no>10</add_no>         -----> Data model.
          <adclip> </adclip>
        </data>
     </state>
      <submission xml:id="subid1" method="put" action="din1.xml" />
      <submission xml:id="subid2" method="get" replace="instance"
action="din1.xml" />
      <submission xml:id="subid3" method="put" action="dOut2.xml" />
  </head>
  <body>
      <par>
        <setvalue ref="add_no" value="add_no+10" />
        <send submission="subid1" />             --------> 1st write to a
file din1.xml using data model above.
	  <send submission="subid2" />      --------> 2nd read from this file
din1.xml thus created.
	  <setvalue ref="adclip" value="adclip+40" />
        <send submission="subid3" />             ------->  3rd Write
modified data to another file dOut2.xml
      </par>
 </body>
</smil>


 While this works the Scenario below doe NOT at all.

  <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0"
baseProfile="Language">
  <head> 
    <layout>
       -----------------------------
       ------------------------------
    </layout>
     <state language="http://www.w3.org/TR/1999/REC-xpath-19991116">
        <data>
          <add_no>10</add_no>         -----> Data model.
          <adclip> </adclip>
        </data>
     </state>
             Note: Initial creation of din1.xml is missing.

      <submission xml:id="subid2" method="get" replace="instance"
action="din1.xml" />
      <submission xml:id="subid3" method="put" action="dOut2.xml" />
  </head>
  <body>
      <par>
	  <setvalue ref="add_no" value="add_no+10" />
        <send submission="subid2" />       --------> 1st read from file
din1.xml which already exists
                                                         and is NOT created
initially using data model,
                                                         but having the same
tags as in the data model.
	   <setvalue ref="adclip" value="adclip+40" />
         <send submission="subid3" />      ------->  2rd Write modified data
to another file dOut2.xml
	 </par>
 </body>
</smil>

 SMIL file does not all recognize this external file din1.xml and hence no
data can be read from such existing .xml files having the same body of xml
as that of the data model inside the SMIL file.

Can this be overcome by using different attributes of "replace" or "get" or
is the something wrong with path of file mentioned ? I am using the default
folder, from where SMIL is placed.

-- 
View this message in context: http://old.nabble.com/Can-a-SMIL-file-read-data-from-an-external-.xm-file---%28Not-created-from-Data-model.%29-tp29484464p29484464.html
Sent from the w3.org - www-smil mailing list archive at Nabble.com.

Received on Thursday, 19 August 2010 20:53:46 UTC