From 0dcf38aae68148fc6b7ba707e27e1c09126c4aa5 Mon Sep 17 00:00:00 2001 From: Emmanuel Chateau Date: Sun, 12 Jul 2020 23:06:35 -0400 Subject: [PATCH] =?UTF-8?q?supression=20des=20restrictions=20de=20@type=20?= =?UTF-8?q?pour=20avant/apr=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/teiBuilder.xqm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/teiBuilder.xqm b/models/teiBuilder.xqm index 194ec88..7a4d41c 100644 --- a/models/teiBuilder.xqm +++ b/models/teiBuilder.xqm @@ -361,7 +361,7 @@ declare function getSubtitle($content as element()*, $lang as xs:string) as elem : @todo retirer * et utiliser toc :) declare function getItemAfter($item as element()*, $lang as xs:string) as element()? { - $item/following::tei:div[@type = 'section' or @type = 'item' or @type = 'chapter' or @type = 'part' ][1] + $item/following::tei:div[1] }; (:~ @@ -373,7 +373,8 @@ declare function getItemAfter($item as element()*, $lang as xs:string) as elemen : @todo retirer * et utiliser toc :) declare function getItemBefore($item as element()*, $lang as xs:string) as element()? { - $item/preceding::tei:div[@type = 'section' or @type = 'item' or @type = 'chapter' or @type = 'part' ][1] + $item/preceding::tei:div[1] + (:$item/preceding::tei:div[@type = 'section' or @type = 'item' or @type = 'chapter' or @type = 'part' ][1]:) }; (:~