Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > [xsltproc] Empty elements in output document

Reply
Thread Tools

[xsltproc] Empty elements in output document

 
 
yzzzzz
Guest
Posts: n/a
 
      11-12-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SiSU] book/document generator, sample documents: summary page for document markup and output Ralph Amissah Ruby 0 11-20-2005 03:23 PM
Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty Lukas XML 3 11-10-2005 02:25 PM
empty lists vs empty generators Brian Roberts Python 12 05-04-2005 08:59 PM
Check if a directory is empty and empty it Marcia Hon C Programming 8 02-14-2004 03:53 AM
empty/non-empty element John XML 1 07-16-2003 10:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57