Created
June 28, 2012 01:33
-
-
Save questsin/3008136 to your computer and use it in GitHub Desktop.
Convert Archi .archimate to Evernote .enex file using XSLT
This file contains hidden or 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" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="xml" media-type="text/xml"/> | |
<xsl:template match="/"> | |
<!--DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export.dtd"--> | |
<en-export export-date="20120625T142329Z" application="archimate" version="4.x"> | |
<xsl:apply-templates/> | |
</en-export> | |
</xsl:template> | |
<xsl:template match="element"> | |
<note> | |
<title> | |
<xsl:value-of select="@name"/> | |
</title> | |
<content> | |
<!--DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"--> | |
<en-note><xsl:apply-templates> </xsl:apply-templates>.</en-note> | |
</content> | |
<tag>archi2evernote</tag> | |
<tag> | |
<xsl:value-of select="@type"/> | |
</tag> | |
<created>20120625T142329Z</created> | |
<updated>20120625T142329Z</updated> | |
<note-attributes> | |
<author>Nicholas Manolakos</author> | |
<source>Archi</source> | |
<source-url>http://questsin.com</source-url> | |
</note-attributes> | |
</note> | |
</xsl:template> | |
<xsl:template match="documentation"> | |
<xsl:value-of select="."/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment