> -----Original Message-----
> From: cross...@apache.org [mailto:cross...@apache.org]
> Sent: Wednesday, 14 January 2009 11:29 PM
> To: s...@forrest.apache.org
> Subject: svn commit: r734387 - in /forrest/trunk:
> main/webapp/resources/schema/entity/
> whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/
> whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources
> /stylesheets/html/ whiteboard/plug...
> 
> Author: crossley
> Date: Wed Jan 14 05:28:19 2009
> New Revision: 734387
> 
> URL: http://svn.apache.org/viewvc?rev=734387&view=rev
> Log:
> Enabled the output html serializer to be configurable to either xhtml or
> html.
> Issue: FOR-1156
> 
> Added:
>  -->
>  <xsl:stylesheet version="1.0"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> +  <xsl:param name="serializer" select="'xhtml'"/>
>    <xsl:template match="/">
> -    <html xmlns="http://www.w3.org/1999/xhtml";>
> +    <xsl:choose>
> +      <xsl:when test="$serializer='html'">
> +        <xsl:call-template name="do-html"/>
> +      </xsl:when>
> +      <xsl:otherwise>
> +        <xsl:call-template name="do-xhtml"/>
> +      </xsl:otherwise>
> +    </xsl:choose>
> +  </xsl:template>
> +  <xsl:template name="do-xhtml">
> +    <html namespace="http://www.w3.org/1999/xhtml";>
> +      <xsl:copy-of select="html/head"/>
> +      <xsl:copy-of select="html/body"/>
> +    </html>
> +  </xsl:template>
> +  <xsl:template name="do-html">
> +    <html>
>        <xsl:copy-of select="html/head"/>
>        <xsl:copy-of select="html/body"/>
>      </html>
> 

The above change :-

> -    <html xmlns="http://www.w3.org/1999/xhtml";>
> +    <html namespace="http://www.w3.org/1999/xhtml";>

causes extra validation errors to appear :-

Line 2, Column 16: there is no attribute "namespace".
<html namespace="http://www.w3.org/1999/xhtml";>

Line 2, Column 1: Missing xmlns attribute for element html. The value should
be: http://www.w3.org/1999/xhtml.
<html namespace="http://www.w3.org/1999/xhtml";>

Can I change that line back?

Gav...