Project

Profile

Help

Bug #5364

closed

Can't get keys to work over SVG elements

Added by Martynas Jusevicius over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XSLT Conformance
Sprint/Milestone:
Start date:
2022-03-01
Due date:
% Done:

0%

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

Description

Hi. In my original stylesheet I have defined such keys:

    <xsl:key name="lines-by-start" match="svg:line" use="@ac:id1"/>
    <xsl:key name="lines-by-end" match="svg:line" use="@ac:id2"/>

However I get an error when I try to use them:

​code: "XTDE0640"
​message: "Definition of key Q{}lines-by-start is circular"
​name: "XError"

I've attempted to create a test case with the same keys: https://namedgraph.github.io/saxon-js2-test/ Stylesheet: https://namedgraph.github.io/saxon-js2-test/client.xsl (see the CIRCULAR KEY template) Note that there's an <svg> element in the HTML.

However in the test stylesheet I get a different error:

code: "FORG0001"
​message: "Invalid local name: 'ac:id1' (prefix='', uri='null')"
​name: "XError"

Maybe I've messed up the namespaces in SVG, but I don't see where.

Please register to edit this issue

Also available in: Atom PDF Tracking page