[xsltproc] Empty elements in output document

yzzzzz

Usenet Archive
Joined
Dec 26, 2002
Messages
51
Reaction score
0
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
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top