JPz'log Coin Coin and Plop da Plop

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"> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; </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"> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; </xsl:text> <head> (...)

Now this is all a past story ;-)

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Live
  • Netvibes
  • StumbleUpon
  • Technorati
  • FriendFeed
  • Wikio
  • Twitter
  • Identi.ca
  • Reddit
  • RSS
  • Slashdot

Related posts:

  1. My IzPack todo list for the week
  2. I like Spring WS (or SOAP made right)
  3. IzPack documentation: call for participations

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

JPz'log is Digg proof thanks to caching by WP Super Cache