Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
f4b1b626
Commit
f4b1b626
authored
Jan 05, 2017
by
Esquilax76
Browse files
fix pb synthesis
parent
8d28a5b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_neo4j/xsl/hdoc_to_neo4j.xsl
View file @
f4b1b626
...
...
@@ -31,12 +31,12 @@
</xsl:template>
<!-- Traitement spécial pour les objectifs, ils ont parfois la même longueur -->
<xsl:template
match=
"body/section/section/section[@data-hdoc-type='aims']"
>
<xsl:template
match=
"body/section/section/section[@data-hdoc-type='aims'
or @data-hdoc-type='synthesis'
]"
>
MERGE (i:
<xsl:value-of
select=
"./@data-hdoc-type"
/>
{title:"
<xsl:value-of
select=
"concat(./header/h1,' - ', parent::section/header/h1, ' (',string-length(.), ')')"
/>
"});
MATCH (l1 {title:"
<xsl:value-of
select=
"concat(./header/h1,' - ', parent::section/header/h1, ' (',string-length(.), ')')"
/>
"}), (l2 {title:"
<xsl:value-of
select=
"concat(parent::section/header/h1,' (',string-length(parent::section), ')')"
/>
"}) MERGE (l2)-[:LIEN]->(l1);
</xsl:template>
<xsl:template
match=
"body/section/section/section[not(@data-hdoc-type='aims')]"
>
<xsl:template
match=
"body/section/section/section[not(@data-hdoc-type='aims'
or @data-hdoc-type='synthesis'
)]"
>
MERGE (i:
<xsl:value-of
select=
"./@data-hdoc-type"
/>
{title:"
<xsl:value-of
select=
"concat(./header/h1,' (',string-length(.), ')')"
/>
"});
MATCH (l1 {title:"
<xsl:value-of
select=
"concat(./header/h1,' (',string-length(.), ')')"
/>
"}), (l2 {title:"
<xsl:value-of
select=
"concat(parent::section/header/h1,' (',string-length(parent::section), ')')"
/>
"}) MERGE (l2)-[:LIEN]->(l1);
</xsl:template>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment