Problem with syntax coloring in XPath expression in XSLT stylesheet
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 102
- Joined: Tue Aug 19, 2014 12:04 pm
Problem with syntax coloring in XPath expression in XSLT stylesheet
Post by Martin Honnen »
I am using XML Editor 18.0, build 2016062718 on Windows 10 and today I have created an XSLT stylesheet in the editor where part of an XPath expression inside of a select attribute is colored in red, it looks odd to me.
The XSLT code is
and then in the select attribute of the value-of the last part :ssZ") is colored red: 
That looks like a bug or at least quirk in the syntax coloring to me.
The XSLT code is
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xs date" version="1.0">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[not(*) and string-length() > 19 and date:date() != '']">
<xsl:copy>
<xsl:value-of select="date:format-date(date:date(.), "yyyy-MM-dd'T'HH:mm:ssZ")"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
That looks like a bug or at least quirk in the syntax coloring to me.
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problem with syntax coloring in XPath expression in XSLT stylesheet
Hi Martin,
Thanks for the report, it is a bug on our side. We added an internal issue for it and we'll try to resolve it in Oxygen 18.1 (Autumn this year).
Regards,
Radu
Thanks for the report, it is a bug on our side. We added an internal issue for it and we'll try to resolve it in Oxygen 18.1 (Autumn this year).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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