XML Conformance
Saxon relies on the XML parser provided with each browser, and inherits the restrictions and limitations of the native browser. For example:
-
On Internet Explorer, entity references are not supported (XML parse failure).
-
On Firefox, external entity references are not supported (they lead to a parsing failure)
-
On Safari, external entity references are not supported (the content of the entity is ignored)
-
In Opera there's an issue in that the
xml
namespace should be explicitly declared for the xml prefix when using xml attributes such asxml:id
. This is most apparent when using theid()
function in Saxon-CE, becausexml:id
attributes appear in no namespace and therefore are not recongnized as IDs.
Support for DTD-based ID and IDREF attributes is very patchy, so the best advice is to avoid
use of the id()
and idref()
functions. However, the id()
function may safely be used to find elements identified using an xml:id
attribute.