[jdom-interest] Re: XMLOutputter testing
Bradley S. Huffman
hip at a.cs.okstate.edu
Wed Feb 6 10:40:27 PST 2002
Jason Hunter writes:
> The only thing I found is that if you turn text normalization on, then
> XHTML-style output is altered. For example:
>
> <body>
> Here goes the <i> body</i> and a <a href="foo.html">link</a>.
> </body>
>
> becomes
>
> <body>Here goes the<i>body</i>and a<a href="foo.html">link</a>.</body>
>
> and I personally always wanted something more like
>
> <body> Here goes the <i> body</i> and a <a href="foo.html">link</a>.
> </body>
Oops, misread the example the first time. Hmmm, I see what you mean in
this example. Falls back to what is normalize. Right now XMLOutputter
use normalize as defined in Element.getTextNormalize, which is so
x.setContent(" blah, blah, blah ");
y.setContent("blah, blah, blah ");
(x.getTextNormalize()).equals(y.getTextNormalize()) == true
Which, in your example, doesn't give the desired results.
Brad
More information about the jdom-interest
mailing list