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
48e18fcb
Commit
48e18fcb
authored
Dec 18, 2016
by
Gregory
Browse files
fix JSON structure with commas
parent
caa2e203
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_elasticSearch/xsl/content_extractor.xsl
View file @
48e18fcb
...
...
@@ -22,13 +22,13 @@
<!-- Extraction des informations du head -->
<xsl:template
match=
"head"
>
"title" : "
<xsl:value-of
select=
"title/text()"
/>
"
"title" : "
<xsl:value-of
select=
"title/text()"
/>
"
,
"keywords" : [
<xsl:for-each
select=
"meta[@name='keywords']"
>
"
<xsl:value-of
select=
"@content"
/>
"
<xsl:if
test=
"position() != last()"
>
,
</xsl:if>
</xsl:for-each>
]
]
,
<xsl:apply-templates
select=
"meta"
/>
</xsl:template>
...
...
@@ -40,11 +40,11 @@
</xsl:template>
<xsl:template
match=
"meta[@name='date']"
>
"date" : "
<xsl:value-of
select=
"@content"
/>
"
"date" : "
<xsl:value-of
select=
"@content"
/>
"
,
</xsl:template>
<xsl:template
match=
"meta[@name='rights']"
>
"rights" : "
<xsl:value-of
select=
"@content"
/>
"
"rights" : "
<xsl:value-of
select=
"@content"
/>
"
,
</xsl:template>
...
...
Write
Preview
Markdown
is supported
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