#399 XHTML indentation is prefix-sensitive

v8.5
closed
nobody
5
2012-10-08
2005-08-22
Michael Kay
No

When XHTML output is selected with indent=yes, elements
are recognized as inline elements or formatted elements
only if they use the default namespace prefix. If any
other prefix is used, indentation may change the
formatting of the output in ways it should not.

(Note: it's not a good idea to generate XHTML using any
prefix other than the default for the XHTML namespace,
because it won't validate against the XHTML DTD, which
is also prefix-sensitive).

Source fix:

In net.sf.saxon.event.XHTMLIndenter.java, line 41, change

    Integer key = new Integer(nameCode);

to

    Integer key = new Integer(nameCode &

NamePool.FP_MASK);

Michael Kay

Discussion