Skip to content

Commit

Permalink
supression des restrictions de @type pour avant/après
Browse files Browse the repository at this point in the history
  • Loading branch information
emchateau committed Jul 13, 2020
1 parent 6c1b94c commit 0dcf38a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/teiBuilder.xqm
Expand Up @@ -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]
};

(:~
Expand All @@ -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]:)
};

(:~
Expand Down

0 comments on commit 0dcf38a

Please sign in to comment.