Commit cdc7cd5f authored by Esquilax76's avatar Esquilax76

link creation correction

parent 0570cead
......@@ -7,8 +7,6 @@
<xsl:output method="text" indent="no"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
......@@ -16,18 +14,17 @@
<xsl:template match="head"/>
<xsl:template match="body">
<xsl:apply-templates select="//section"/>
<xsl:apply-templates select="./section"/>
</xsl:template>
<xsl:template match="body/section">
MERGE (`<xsl:value-of select="./header/h1"/>`:Item { title:"<xsl:value-of select="./header/h1"/>" });
MERGE (i:Item {title:"<xsl:value-of select="./header/h1"/>"});
<xsl:apply-templates select="./section"/>
</xsl:template>
<xsl:template match="body/section/section">
MERGE (`<xsl:value-of select="./header/h1"/>`:Item { title:"<xsl:value-of select="./header/h1"/>" });
MATCH (`<xsl:value-of select="./header/h1"/>`:Item), (`<xsl:value-of select="parent::section/header/h1"/>`:Item)
CREATE (`<xsl:value-of select="./header/h1"/>`)-[:LIEN]-> (`<xsl:value-of select="parent::section/header/h1"/>`);
MERGE (i:Item {title:"<xsl:value-of select="./header/h1"/>"});
MATCH (l1:Item {title:"<xsl:value-of select="./header/h1"/>"}), (l2:Item {title:"<xsl:value-of select="parent::section/header/h1"/>"})
CREATE (l1)-[:LIEN]->(l2);
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment