Project

Profile

Help

Bug #3170

Attributes with no prefix in name get assigned 'ns'

Added by John Lumley 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
2017-03-16
Due date:
% Done:

100%

Applies to JS Branch:
1.0
Fix Committed on JS Branch:
1.0
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

In executing

<dummy>
    <xsl:attribute name="{@prefix}:attr" namespace="{@uri}"/>
</dummy>
when @prefix evaluates to an empty string, rather than throwing an error (ERR XTDE0850 ?), an 'ns' prefix is assigned, yielding
<dummy xmlns:ns="http://www.example.com/QNameXSD" ns:attr=""/>
where the namespace binding is correct, but the error is not thrown.

History

#1 Updated by John Lumley 11 months ago

A suitable check has been added to Expr.computedElemOrAttr()

#2 Updated by John Lumley 11 months ago

  • Status changed from New to Resolved

Changes committed - rev 6322

#3 Updated by Debbie Lockett 7 months ago

  • Applies to branch deleted (9.8)
  • Applies to JS Branch 1.0 added
  • Fix Committed on JS Branch 1.0 added

#4 Updated by Debbie Lockett 7 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.0.1

Bug fix applied in Saxon-JS 1.0.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page