You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/04/11 11:52:52 UTC

[6/6] tinkerpop git commit: TINKERPOP-1608 Fix for xsltproc processing

TINKERPOP-1608 Fix for xsltproc processing

>From comments by Robert Dale on the PR itself: xsltproc is complaining because the apply-templates is not immediately after a new node when trying to apply selected attributes. From what I can tell, the only attributes that should be in the <edge> element are already explicitly defined. It is not necessary to copy attributes (@*) back into the <edge> element. That appears to be the main difference between TP2 and TP3 - that the label attribute is now a <data> element with key attribute. Thus, the attribute selection can be removed.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/d4f41084
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/d4f41084
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/d4f41084

Branch: refs/heads/tp31
Commit: d4f4108423b3eea5cc6ce7734cb1b0524d0aecc7
Parents: 93b31fd
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Apr 11 07:17:14 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Apr 11 07:17:14 2017 -0400

----------------------------------------------------------------------
 gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d4f41084/gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt b/gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt
index 40d553b..1f3dd5c 100644
--- a/gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt
+++ b/gremlin-core/src/main/resources/tp2-to-tp3-graphml.xslt
@@ -52,7 +52,7 @@ limitations under the License.
             <data key="labelE">
                 <xsl:value-of select="@label"/>
             </data>
-            <xsl:apply-templates select="node()|@*"/>
+            <xsl:apply-templates select="node()"/>
         </edge>
     </xsl:template>