Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#151 Max no of prefixes per namespace

v6.5.2
closed
Michael Kay
5
2012-10-08
2003-08-11
Michael Kay
No

There is a design limit in the Saxon namepool that it
permits a maximum of 255 prefixes for a given namespace
URI.

However (a) the code is written so that it is not
actually possible to exceed 127 prefixes, and (b) when
the limit is exceeded, an unhelpful Null Pointer
Exception is produced.

The problem is present in both 6.5.2 and 7.6.5.

It has been source cleared in both branches. The
clearance ensures that the namepool can handle 255
prefixes and that a specific error message is produced
when the limit is exceeded; it does not actually remove
the limit.

Apparently JAXB can generate XML documents that
allocate a very large number of prefixes to the same
namespace URI.

The W3C XSLT specification leaves it to implementations
to decide what limits can sensibly be imposed; there
are no conformance requirements relating to limits.

Discussion