Project

Profile

Help

Bug #4073

closed

Invalid XPath expression in error message

Added by Octavian Nadolu over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2018-12-19
Due date:
% Done:

0%

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

Description

If I transform "personal.xml" with "personal.xsl" (see the attachment), I get en error. In Saxon 9.9.0.2 the XPAth from the error is something like this "/personnel/person185/name185/given185". If I run the same transformation with Saxon 9.8.0.12 the XPath expression from the error is something like this "/personnel/person[1]/name[1]/given[1]".

Saxon 9.9.0.2

Error evaluating ((xsl:apply-templates, ...)) on line 16 column 42 of personal.xsl:
  XTDE0410: An attribute node (border) cannot be created after a child of the containing
  element. Most recent element start tag was output at line 15 of module personal.xsl
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person185/name185/given185
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person185/name185
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person185
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#8)
     processing /personnel
An attribute node (border) cannot be created after a child of the containing element. Most recent element start tag was output at line 15 of module pe
rsonal.xsl

Saxon 9.8.0.12

Error at char 7 in xsl:apply-templates/@select on line 15 column 57 of personal.xsl:
  XTDE0410: An attribute node (border) cannot be created after a child of the containing
  element. Most recent element start tag was output at line 15 of module personal.xsl
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person[1]/name[1]/given[1]
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person[1]/name[1]
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#15)
     processing /personnel/person[1]
  at xsl:apply-templates (file:/D:/projectsWork/eXml_dev/test/EXM-37737/personal.xsl#8)
     processing /personnel
An attribute node (border) cannot be created after a child of the containing element. Most recent element start tag was output at line 15 of module pe
rsonal.xsl

Files

personal.xml (395 Bytes) personal.xml Octavian Nadolu, 2018-12-19 13:31
personal.xsl (587 Bytes) personal.xsl Octavian Nadolu, 2018-12-19 13:31

Related issues

Is duplicate of Saxon - Bug #4029: saxon:path() is broken in 9.9ClosedMichael Kay2018-11-15

Actions
Actions #1

Updated by Michael Kay over 5 years ago

  • Is duplicate of Bug #4029: saxon:path() is broken in 9.9 added
Actions #2

Updated by Michael Kay over 5 years ago

  • Category set to Diagnostics
  • Status changed from New to Duplicate
  • Assignee set to Michael Kay

Thanks for reporting it, but this is a duplicate of https://saxonica.plan.io/issues/4029

Please register to edit this issue

Also available in: Atom PDF