Development and EPICS and Howto17 Jun 2007 11:47 pm

I have been working on the MyEPICS 2.0 framework for creating a website to match roommates together. During this time, I was switching from the old layout, to a different look and feel. When the designing and implementing the MyEPICS framework, I tried to make it as modular as possible, and able to switch layouts easily.

The only big problem that I ran across was empty div tags. The author of the article does a good job of explaining exactly what happened, but doesn’t offer a solution. He may have lost 2 hours of his life finding the problem, but I lost 2 hours of my life attempting to find a solution. My solution was to add an <xsl:output> tag to my XSLT sheet, with a method of ‘html’, which then properly fixed the problem. No more were empty div tags consuming whatever was after them, and it adds a DOCTYPE declaration, which is a big bonus! Now the output passes xhtml strict.

One Response to “XHTML and Empty <div> Tags”

  1. on 21 Jul 2010 at 9:13 am Leslie Schwindt

    Hey friend can i publish some paragraph of your article on my little blog of university.I have to publish a good articles out there and i really think your post Fits best into it.I will be grateful to give you an source link as well.I have two blogs one my own and the other which is my college blog.I will publish some part in the university blog.Hope you do not mind.

Trackback this Post | Feed on comments to this Post

Leave a Reply