Sto usando xslt per trasformare un file xml in html. Il motore .net xslt continua a servire tag autochiudenti per tag vuoti.Numero di tag auto-chiusura XSLT
Esempio:
<div class="test"></div>
diventa
<div class="test" />
Il primo è valido html, mentre il secondo è html illegale e rende male. La mia domanda è: Come faccio a dire al motore xslt (XslCompiledTransform) di non usare tag auto-chiudenti.
Se non è possibile, come posso dire al mio browser (IE6 + in questo caso) di interpretare correttamente i tag a chiusura automatica.
In questo articolo mi ha aiutato a capire il problema http://webkit.org/blog/68/understanding-html-xml-and-xhtml/ – Ryan