Re: [xml-dev] XML to "HTML"

From
Andrew Welch <>
To
David Carlisle <>
Date
2009-11-23T13:59:59Z
ID
<>
Thread
Re: [xml-dev] XML to "HTML"
>>They also requested that if I use a tag that takes bodies but the body
>>is empty to not write it as <tag/>
>>Example
>>    <P/>  should be written as <P></P>  ....  although I think I can
>>waffle on this one.
>
> That's the one that is perhaps most important to fix, if you use
> /> syntax with things served as text/html then things will go wrong.

Just to add to that  - if you use the html or xhtml output method then
you'll get <p></p> and not <p/> (which is what you'd get with the xml
output method), so there's nothing to fix as such, the serialiser will
do the right thing for you.





-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/