8Mar/050
IzForge.com valid again !
The IzForge.com pages are now validating as XHTML 1.0 Strict again ! It had not been validating for the last few months because of:
- the PayPal code which is not valid at all
- Sablotron (which is used by PHP to perform XSLT transformations) had a few problems with my XSLT document as it managed to add xmlns attributes to a few tags. It is now solved, but the solution was a bit tricky as shown hereafter.
The original html tag declaration looked like:
<!-- Root element --> <xsl:template match="/"> <xsl:text disable-output-escaping="yes"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> </xsl:text> <html xmlns="http://www.w3.org/1999/xhtml"> <head> (...)
The problem was caused by the xmlns attribute of the html tag. The stupid and tricky fix is:
<!-- Root element --> <xsl:template match="/"> <xsl:text disable-output-escaping="yes"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> </xsl:text> <head> (...)
Now this is all a past story
Related posts:
- My IzPack todo list for the week
- I like Spring WS (or SOAP made right)
- IzPack documentation: call for participations
