TIDY vs XHTML'd JavaDoc HTML code

Hi,

first of all, thanks for your wonderful tool.

I am using TIDY to transform JavaDoc's output into XHTML (using
tidy -asxnm -n), for later transformations using MSXML3's XSLT processor (I
don't think that the issue is in Microsoft's XSLT implementation,
though...).

As far as I understand the issue, in XML documents whitespace between tags
is not relevant, so for instance an XML parser treats:

<pre>
	<b>foo</b> <a href="x">bar</a>
</pre>

like

<pre>
	<b>foo</b><a href="x">bar</a>
</pre>

which of course is not what you want :-)

I figured out that the workaround is to set the attribute xml:space to
"preserve", like in

<html xml:space="preserve">

Is there a way to let TIDY do this automatically (because after reading with
an XML processor it's already too late...).

Thanks,

Julian

Received on Tuesday, 18 April 2000 03:09:10 UTC