Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Stylevision: Auto insertion of a 'last_updated' datetime attribute when the a text node is updated

Reply
Thread Tools

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

 
 
dylan
Guest
Posts: n/a
 
      01-16-2007
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.

 
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
[2.4.4] creating a datetime.datetime from an XML xs:dateTime Martin Python 0 12-27-2008 08:08 PM
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
mx.DateTime to datetime.datetime mp Python 1 07-28-2006 10:57 PM
datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Christos TZOTZIOY Georgiou Python 3 09-13-2003 10:44 AM
RE: datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Tim Peters Python 0 09-09-2003 12:57 AM



Advertisments