Prevent reading preceding sibling's docblock
parent
88b1a9ba49
commit
c3d0839b9a
|
@ -189,8 +189,10 @@
|
|||
<function name="xt:get-docblock" as="comment()?">
|
||||
<param name="context" as="node()" />
|
||||
|
||||
<sequence select="$context/preceding-sibling::comment()[1][
|
||||
xt:is-docblock( . ) ]" />
|
||||
<sequence select="( ( $context/preceding-sibling::node()[
|
||||
not( . instance of text() ) ] )
|
||||
[ last() ] )
|
||||
[ . instance of comment() ]" />
|
||||
</function>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue