Dynamic Values in XML

Discussion in 'XML' started by Rahul, Jun 20, 2008.

  1. Rahul

    Rahul Guest

    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
     
    Rahul, Jun 20, 2008
    #1
    1. Advertising

  2. Rahul

    Joe Fawcett Guest

    "Rahul" <> wrote in message
    news:...
    > 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
     
    Joe Fawcett, Jun 22, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Siegl
    Replies:
    1
    Views:
    510
    Kermit T Tensmeyer
    Jul 28, 2003
  2. Bob Foster
    Replies:
    0
    Views:
    433
    Bob Foster
    Jul 30, 2003
  3. 5tein
    Replies:
    1
    Views:
    475
    Patrick TJ McPhee
    Apr 30, 2004
  4. Andy
    Replies:
    0
    Views:
    550
  5. Erik Wasser
    Replies:
    5
    Views:
    484
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page