[xsltproc] Empty elements in output document

Discussion in 'XML' started by yzzzzz, Nov 12, 2003.

  1. yzzzzz

    yzzzzz Guest

    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.
     
    yzzzzz, Nov 12, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brett

    xsltproc and Entities

    Brett, Feb 27, 2004, in forum: XML
    Replies:
    1
    Views:
    916
    Alain Ketterlin
    Mar 1, 2004
  2. Loudin
    Replies:
    1
    Views:
    767
    David Carlisle
    Jul 1, 2005
  3. Lukas
    Replies:
    3
    Views:
    817
    spiff
    Nov 10, 2005
  4. Ramon
    Replies:
    2
    Views:
    1,768
    Ramon
    Aug 19, 2006
  5. Darel Finkbeiner

    xsltproc and DocBook

    Darel Finkbeiner, Mar 21, 2007, in forum: XML
    Replies:
    5
    Views:
    820
    Joseph Kesselman
    Mar 22, 2007
Loading...

Share This Page