Dynamic Values in XML

R

Rahul

Hi,

I am trying to use SVG for some basic animation stuff. It has
something like this:

<rect id="rec" x="60" y="100" width="20" height="20" stroke="yellow"
stroke-width="1" style="fill:black" >
<animate id="recta" attributeName="height" attributeType="XML"
begin="0" dur="1.2s" fill="freeze" from="20" values="10; 100; 0; 25;
50; 150; 0" repeatCount="indefinite"/>
</rect>

I am trying to change the rectangle attributes by specifying a set of
values in the values attribute. But is there a way I can specify that
this value has to be read from a different file (this will be updated
with the newest value)?

Something like:

from="20" values=#UPDATEDFILE

And this updated file will contain the newest value.

Thanks
 
J

Joe Fawcett

Rahul said:
Hi,

I am trying to use SVG for some basic animation stuff. It has
something like this:

<rect id="rec" x="60" y="100" width="20" height="20" stroke="yellow"
stroke-width="1" style="fill:black" >
<animate id="recta" attributeName="height" attributeType="XML"
begin="0" dur="1.2s" fill="freeze" from="20" values="10; 100; 0; 25;
50; 150; 0" repeatCount="indefinite"/>
</rect>

I am trying to change the rectangle attributes by specifying a set of
values in the values attribute. But is there a way I can specify that
this value has to be read from a different file (this will be updated
with the newest value)?

Something like:

from="20" values=#UPDATEDFILE

And this updated file will contain the newest value.

Thanks
It maybe possible using an external entity although I'm not very familiar
with declaring these when there's already a DTD being used. See
http://www.xml.com/pub/a/98/08/xmlqna2.html#ENTDECL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top