Project

Profile

Help

Bug #4488

Some Gizmo glitches

Added by Michael Kay over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gizmo
Sprint/Milestone:
-
Start date:
2020-03-20
Due date:
% Done:

100%

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

Description

In developing the Gizmo solution published at

https://stackoverflow.com/questions/60777594/add-a-namespace-prefix-to-the-tags-of-the-default-name-space-of-an-xml-document/60782746#60782746

I encountered a few glitches.

  1. On the load command, auto-completion of absolute filenames (/Users/mike/...) appears not to be working

  2. If a relative filename is used and tab is pressed while typing the name of the first step in the file path, auto-completion deletes the "load" command and repositions the cursor at the start of the line.

  3. Paths are supposed to work with the convention that an unprefixed name matches on local name only. This is not working: I needed to use /*:svg rather than /svg

History

#1 Updated by Michael Kay over 1 year ago

  • Description updated (diff)

#2 Updated by Michael Kay over 1 year ago

#3 Updated by Michael Kay over 1 year ago

Found the issue with //x not matching by local name alone: somehow the method name getUnprefixedElementMatchingPolicy in AbstractStaticContext differs from the method name in the interface StaticContext, so the wrong method is being called. Fixed this one.

#4 Updated by Michael Kay over 1 year ago

In response to the observations in https://saxonica.plan.io/boards/2/topics/7784?r=7786 I have

(a) changed the logic for "show" so that non-node items are serialized using the adaptive output method

(b) changed the logic for "set . = expression" so it is equlvalent to

<xsl:document>
  <xsl:sequence select="expression"/>
</xsl:document>

If this fails (for example if the expression returns a map) we'll try and produce a helpful error message and recover the session.

#5 Updated by Michael Kay over 1 year ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 10 added

Fixed problems with filename completion. The main problem was that it wasn't working on the first "load" command (because it was initialised too late), and most of my tests were on the first "load" command.

#6 Updated by O'Neil Delpratt over 1 year ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.1 added

Bug fix committed in the Saxon 10.1 maintenance release.

#7 Updated by O'Neil Delpratt over 1 year ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF