Created
August 28, 2017 19:08
-
-
Save tingley/df6e49a3c6ed924cf50d11e316a8fb5d to your computer and use it in GitHub Desktop.
Parameterized XSLT to add a <tag> to every note in an exported Evernote .enex file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="xml" cdata-section-elements="content"/> | |
<xsl:template match="/"> | |
<xsl:apply-templates /> | |
</xsl:template> | |
<xsl:template match="note"> | |
<xsl:copy> | |
<xsl:apply-templates /> | |
<tag><xsl:value-of select="$tagName"/></tag> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="* | text()"> | |
<xsl:copy> | |
<xsl:apply-templates /> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment