From: Andrew Welch <ajwelch@pi...> - 2005-01-05 15:47:33
> Is it possible to prevent Saxon from outputing empty=20
> elements as <x/> rather=20
> than <x></x>.
> If I use output HTML I get this but then I get the HTML doctype output
> I ask because one of my targets is SGML.
You can use the XHTML output method of xslt 2.0 with your 1.0 stylesheet
(with saxon 7.x and above), this will prevent any element from being
minimised. Other than that you can try inserting comments/dummy
elements to prevent the processor from treating the element as empty.
Get latest updates about Open Source Projects, Conferences and News.