multiple variable highlighting not working with XPath comments
Posted: Mon Aug 06, 2012 3:59 pm
Hello,
With this variable:
used in this other variable:
When I put the cursor in the variable definition of "format-pdc-num", then in the variable "pdc", only the first occurence of $format-pdc-num is highlighted.
This bug is caused by the comment "(:bla:)", because when I remove it, all the occurrences of "format-pdc-num" are highlighted.
(Idem for $book)
With this variable:
Code: Select all
<xsl:variable name="format-pdc-num" select="'0000'" as="xs:string"/>
Code: Select all
<xsl:variable name="pdc"
select="string-join((format-number(count($book/preceding::niv0), $format-pdc-num), (:bla:)
format-number(index-of($order-niv1, $book/ancestor::niv1), $format-pdc-num),
format-number(index-of($order-niv2, ($book/ancestor::niv2, $book)[1]), $format-pdc-num, 'nan-0'),
format-number(index-of($order-niv3, ($book/ancestor::niv3, $book)[1]), $format-pdc-num, 'nan-0')),
'/')"
as="xs:string"/>
This bug is caused by the comment "(:bla:)", because when I remove it, all the occurrences of "format-pdc-num" are highlighted.
(Idem for $book)