multiple variable highlighting not working with XPath comments
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 17
- Joined: Mon Mar 15, 2010 8:35 pm
- Location: Paris, France
multiple variable highlighting not working with XPath comments
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)
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: multiple variable highlighting not working with XPath comments
Hello,
What version and build number of Oxygen are you using(Help > About)?
I cannot reproduce this issue with the latest maintenance builds of v13.2 or v14.0. I've tested using this template (I've just added some random declarations so it would validate):
Could you please try with the snippet above and let me know if it still reproduces?
Regards,
Adrian
What version and build number of Oxygen are you using(Help > About)?
I cannot reproduce this issue with the latest maintenance builds of v13.2 or v14.0. I've tested using this template (I've just added some random declarations so it would validate):
Code: Select all
<xsl:template match="/">
<xsl:variable name="format-pdc-num" select="'0000'" as="xs:string"/>
<xsl:variable name="order-niv1" select="'0000'" as="xs:string"/>
<xsl:variable name="order-niv2" select="'0000'" as="xs:string"/>
<xsl:variable name="order-niv3" select="'0000'" as="xs:string"/>
<xsl:variable name="book" select="//*"/>
<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"/>
<xsl:value-of select="$pdc"></xsl:value-of>
</xsl:template>
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 17
- Joined: Mon Mar 15, 2010 8:35 pm
- Location: Paris, France
Re: multiple variable highlighting not working with XPath comments
XML Editor 14.0, build 2012062215
My bad: I shortened the comment, and suppressed what's causing the bug (it seems to be a quote (')).
Try with this comment
(:bl'a:)
My bad: I shortened the comment, and suppressed what's causing the bug (it seems to be a quote (')).
Try with this comment
(:bl'a:)
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: multiple variable highlighting not working with XPath comments
Hi,
Thanks for clarifying. I was able to reproduce the bug with that quote in the comment.
I have logged this to our issue tracking tool and it will be analyzed and resolved in the next release of Oxygen.
Regards,
Adrian
Thanks for clarifying. I was able to reproduce the bug with that quote in the comment.
I have logged this to our issue tracking tool and it will be analyzed and resolved in the next release of Oxygen.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service