[fix] replace() -> fn:replace, simplify around #1445
include[@outputformat='print'])
This commit is contained in:
parent
7548f1e1c0
commit
4f89dd5fc1
@ -119,7 +119,7 @@ declare %updating function copsrv:upload-zip(
|
||||
return archive:extract-to($extractTo, $archive, archive:entries($archive)[fn:contains(.,fn:replace($x,'.xml','.docx'))])
|
||||
else
|
||||
(
|
||||
archive:extract-to($extractTo, $archive, archive:entries($archive)[fn:contains(.,replace($cid, '[^0-9]', ''))])
|
||||
archive:extract-to($extractTo, $archive, archive:entries($archive)[fn:contains(.,fn:replace($cid, '[^0-9]', ''))])
|
||||
)
|
||||
,
|
||||
let $stepChunk := <step>
|
||||
@ -1437,12 +1437,10 @@ catch * {(: transformation error :)
|
||||
return
|
||||
if($headerXML/*:book/*:include[@outputformat='print'])
|
||||
then
|
||||
let $delete-element := %updating function($headerXML)
|
||||
{
|
||||
delete node $headerXML//*:include[@outputformat='print']
|
||||
}
|
||||
let $out :=$headerXML transform with {delete node //*:include[@outputformat='print']}
|
||||
|
||||
return
|
||||
file:write(concat($tempFilePath,$cpsrv:bloomsburydbk,$cpsrv:HeaderXml),$headerXML update (updating $delete-element(.) ))
|
||||
file:write(concat($tempFilePath,$cpsrv:bloomsburydbk,$cpsrv:HeaderXml),$out)
|
||||
else()
|
||||
else()
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user