diff -r eee5dcd9fc92 -r 61548f7d1bef svghmi/gen_index_xhtml.ysl2 --- a/svghmi/gen_index_xhtml.ysl2 Fri Feb 28 16:09:21 2020 +0100 +++ b/svghmi/gen_index_xhtml.ysl2 Fri Feb 28 17:52:35 2020 +0100 @@ -78,6 +78,7 @@ param "elems"; const "descend", "$elems/descendant-or-self::svg:*"; const "clones", "$descend[self::svg:use]"; + // TODO optimize using Xpath' id() const "originals", "//svg:*[concat('#',@id) = $clones/@xlink:href]"; choose { when "$originals" @@ -98,16 +99,89 @@ const "d1", "$a1 >= $b1"; choose { when "not($d0) and $d1" - result "3"; /* a included in b */ + // b contained in a + // a0 0]"; + */ } def "func:sumarized_elements" {