Last active
October 10, 2016 09:20
-
-
Save NKame/6c6203f74cc6acacb4142b4f40745cc7 to your computer and use it in GitHub Desktop.
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 version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://graphml.graphdrawing.org/xmlns" | |
xmlns:tns="http://graphml.graphdrawing.org/xmlns"> | |
<xsl:template match="tns:edge"> | |
<xsl:element name="edge" namespace="http://graphml.graphdrawing.org/xmlns"> | |
<xsl:attribute name="id"><xsl:value-of | |
select="tns:data[@key='edgeid']/text()" /></xsl:attribute> | |
<xsl:apply-templates select="@*" /> | |
<xsl:apply-templates /> | |
</xsl:element> | |
</xsl:template> | |
<xsl:template match="tns:data[@key='edgeid']" /> | |
<xsl:template match="tns:key[@id='edgeid']" /> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*" /> | |
<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
gephi #tinkerpop #graphml