Commit 4bf141ae authored by Wolfgang's avatar Wolfgang

Minor performance improvement

parent 52f6cf1a
......@@ -83,7 +83,12 @@ declare function docx:pstyle($styles as map(*), $node as element()) {
};
declare function docx:cstyle($styles as map(*), $node as element()) {
$styles?($node/w:rPr/w:rStyle/@w:val)
let $style := $node//w:rStyle/@w:val
return
if ($style) then
$styles($style)
else
()
};
declare function docx:nstyle($numbering as element()*, $styles as map(*), $node as element()) {
......
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