[xsltproc] Empty elements in output document

Y

yzzzzz

Hi,

I'm outputting XML to XHTML using xsltproc. There happens to be a few
empty tags in the output (such as <div></div>) but xsltproc outputs them
as <div/>. This causes compatibility problems with non-xml browsers
(i.e. ALL browsers). Is there an option to output empty elements with an
explicit end tag, as in <div></div> ? This is strictly equivalent to
<div/>, from an XML point of view, except it actually works!

Of course, if I can keep <br> beeing ouput as <br/> (and not <br></br>)
that would be perfect!

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top