<?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>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.