Project

Profile

Help

Bug #2445

closed

Incorrectly reported error column

Added by Radu Coravu over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2015-08-25
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

For this invalid XSLT Stylesheet:

<xsl:stylesheet version="2.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 

xmlns:p="http://www.oxygenxml.com/ns/samples/personal">

<xsl:template match="//map//*[

    contains(@class,' bookmap/chapter ') |

    //map//*[contains(@class,' map/topicref ') 

    and count(ancestor::*[contains(@class,' map/topicref ')]]">

    
</xsl:template>

</xsl:stylesheet>

The transformer fails and reports a problem:

XTSE0340 XSLT Pattern syntax error at char 173 on line 8 near {...ins(@class,' map/topicref '...}: expected ")", found "]"

but there is no column 173, the xpath is broken on multiple lines.


Files

test.xsl (432 Bytes) test.xsl Radu Coravu, 2015-08-25 10:53

Please register to edit this issue

Also available in: Atom PDF