All,OK I have a folder and I want to insert a keyword into all the datasets metadata without overwriting any existing metadata.I've looked at this page in help and got it working but I discovered that it blitzes any existing metadata which is not good :(. So I looked at this page which appears to be the solution but using nightmare XLST style sheets. Now I'm the first person to put their hand up for feeling very much a fish out of water. I had a good look at their sample XLST style sheet which gives an example of search and replace of contact details. I'm not at all familiar with this sort of thing so needless to say my botched attempted failed when I ran the import metadata tool, strangely it did not give an error.I took their sample XLST style sheet and tried to adapt it but it does not work, can any metadata guru out there have a look and tell me what I did wrong? I'm guessing its failing on matching dataIDInfo or have I missed something?Duncan<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no" />
<!-- process the metadata using the templates below -->
<xsl:template match="/">
<xsl:apply-templates select="node() | @*" />
</xsl:template>
<!-- copy all metadata conent -->
<xsl:template match="node() | @*" priority="0">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
<!-- all metadata XSLT stylesheets used to update metadata should be identical to this example up to this point -->
<!-- add the templates you'll use to update the metadata below -->
<!-- Insert a place name keyword -->
<xsl:template match="dataIdInfo" priority="1" >
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
<placeKeys>
<keyword>Pakistan</keyword>
</placeKeys>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>