Project

Profile

Help

Bug #6305

closed

XPathException "The stylesheet module includes/imports itself directly or indirectly" has no locator

Added by Gerben Abbink 5 months ago. Updated 14 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2023-12-22
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

I use an ErrorReporter with XsltCompiler, like this:

XsltCompiler compiler = processor.newXsltCompiler();
compiler.setErrorReporter(...);

Usually, XPathExceptions have a Location to identify the error in the file.

But, when I use this template, there is no location information:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href=""/>
</xsl:stylesheet>

Please register to edit this issue

Also available in: Atom PDF