Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Dynamic Values in XML

Reply
Thread Tools

Dynamic Values in XML

 
 
Rahul
Guest
Posts: n/a
 
      06-20-2008
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
 
Reply With Quote
 
 
 
 
Joe Fawcett
Guest
Posts: n/a
 
      06-22-2008


"Rahul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
XML schema validation of one xml block based on values from another xml block Andy XML 0 11-18-2004 11:04 PM
XML/XSL newb q: can I ever select or refer to xml attribute values? 5tein XML 1 04-30-2004 12:42 AM
Re: [XML Parser] filling empty attribute values with the default value specified in the XML schema. Bob Foster XML 0 07-30-2003 06:19 AM
[XML] filling empty attribute values with the default value specifiedin the XML schema. Stefan Siegl Java 1 07-28-2003 06:18 PM



Advertisments