Stylevision: Auto insertion of a 'last_updated' datetime attribute when the a text node is updated

Discussion in 'XML' started by dylan, Jan 16, 2007.

  1. dylan

    dylan Guest

    Hi,

    I have an xml document eg:

    <pageSet>
    <page id="0" >Some text to fill the page</page>
    <page id="1" >Some text to fill the page</page>
    ..
    ..
    ..
    </pageSet>

    I've updated the schema to allow the last_updated attribute:

    <pageSet>
    <page id="0" last_updated="10/1/2007">Some text to fill the page</page>
    <page id="1" last_updated="10/1/2007">Some text to fill the page</page>
    ..
    ..
    ..
    </pageSet>


    Now, I want the last_updated field to be inserted and or updated when
    the content of the <page> node is changed.

    Is this possible, and if so, can anybody give me any guidelines.
     
    dylan, Jan 16, 2007
    #1
    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. Tag
    Replies:
    0
    Views:
    468
  2. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    760
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  3. Tim Peters
    Replies:
    0
    Views:
    598
    Tim Peters
    Sep 9, 2003
  4. mp
    Replies:
    1
    Views:
    440
    John Machin
    Jul 28, 2006
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,506
    Dimitre Novatchev
    Aug 24, 2006
Loading...

Share This Page