• Browse Blogs
  • My Blog
  • My Updates

+Tags Get help with tags?

  • View as cloud  | list

+ Similar Entries

photo

XSLT Test Tool

Blog:  Beyond The Ye...
Peter Presnell
Updated 
No RatingsRatings 0     No CommentsComments 0
photo

XSLT Transformation ...

Blog:  Beyond The Ye...
Peter Presnell
Updated 
No RatingsRatings 0     CommentsComments 3
photo

Minimising Document ...

Blog:  Beyond The Ye...
Peter Presnell
Updated 
No RatingsRatings 0     No CommentsComments 0
photo

Skinning An Applicat...

Blog:  Beyond The Ye...
Peter Presnell
Updated 
No RatingsRatings 0     No CommentsComments 0

+ Bookmarks

+ Blog Authors  

Removing Edit History From Documents

Peter Presnell |   | Tags:  edithistory xslt | Comments (0)  |  Visits (519)

Did you ever want to lose the list of Notes IDs that have modified a particular set of Notes documents?  It would seem it is not possible to edit the existing contents of the $UpdatedBy using either @commands or LotusScript.  I assume this is a data integrity issue to ensure the contents of the edit history for any document cannot be manipulated.  This field can be modified (or removed) for design documents (see SuperNTF project at OpenNTF).  Interestingly, it is possible to edit or remove the contents of this field using XSLT.   I am not 100% sure this is a good thing to have, but it is possible!

 

The following is the XSLT code necessary to apply against documents exported from a Notes database as DXL before reimporting.....

 

<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:dxl="http://www.lotus.com/dxl" version="1.0">

<xsl:template match="@*|node()" priority="-1">

<xsl:copy>

<xsl:apply-templates select="@*|node()"/>

</xsl:copy>

</xsl:template>

<xsl:template match="dxl:noteinfo/dxl:updatedby">

</xsl:template>

</xsl:stylesheet>

 

After doing this the $UpdatedBy field will only contain the NotesID of the agent that executed the XSLT transformation.  All previous entries will be removed.  e.g. I have used this technique to refresh the content of the .Domino Framework so that it does not contain the various Notes IDs I have used as a developer in creating and maintaining content for this project.

 

Warning: Not all Notes documents can be exported and reimported into Notes without losing something on the way, so test this out in a safe environment first.

No RatingsRatings 0

Comments (0)

There are no comments to display Add a Comment Add a Comment

Previous |  Main  | Next
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About