Commit 3ecdc7dc authored by Wolfgang's avatar Wolfgang

docx parsing: proper check for external images

parent 4e3d33e7
......@@ -53,7 +53,7 @@ declare function docx:copy-media($rels as element(), $unzipped as xs:string, $me
let $collection := docx:mkcol-recursive("/db", $pathComponents)
for $image in $rels/rel:Relationship
[not(@TargetMode = "External")]
let $target := $image/@Target
let $relPath := replace($target, "^(.*?)/[^/]+$", "$1")
let $imgName := replace($target, "^.*?([^/]+)$", "$1")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment