Discrepancy recognizing entity in attribute
Joel Kalvesmaki <[email protected]> Thu, 5 Nov 2020 02:57:58 -0500
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <CALPpAZ96RDPKttXEVcC6=1U_c7c7Cxxw6VtkPzp0w=fFxuPKcg@mail.gmail.com> |
Greetings,
I have the following document at URI X:
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE a [<!ENTITY num "#">]>
<a>
<works>#</works>
<works-not val="#"/>
</a>
When I run Saxon from the command line (with -xmlversion:1.1) on an XSLT
3.0 stylesheet that outputs merely the result of document-available('X') I
get the value false. But the same stylesheet returns the value true if I
run it through Saxon in Oxygen. Or it works on the command line, provided I
do one of the following two alterations:
1. comment out the element <works-not> (so the entity works in the
element but not the attribute value)
2. change version in the XML declaration to 1.0 (both entities are
recognized)
I've tested the above on multiple versions of Saxon: 9.8, 9.9, 10.3, HE and
EE. Unfortunately I'm at about the limits of my diagnostic powers. Any
ideas out there?
Best wishes,
jk
--
Joel Kalvesmaki
kalvesmaki.com
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help