[ 
http://issues.apache.org/jira/browse/XALANJ-2103?page=comments#action_64390 ]
     
Brian Minchau commented on XALANJ-2103:
---------------------------------------

If the transformation doesn't output a root <html> element, but a doctype is 
requested, does Xalan put out HTML or html in the DOCTYPE, ... does that matter?

The transformation could put out html, htmL, htMl, ... HTML for output method 
html, it shouldn't matter. For true XHTML output, the element should be "html" 
only.

It looks like the fix is to have startDocumentInternal() which kicks off the 
writing out of the take a parameter of the local name of the startElement() 
call that kicked it off.  If the HTML document being produced doesn't have a 
top level <html> element then we would output <!DOCTYPE HTML ... as before.

> Case of doctype definiton wrong
> -------------------------------
>
>          Key: XALANJ-2103
>          URL: http://issues.apache.org/jira/browse/XALANJ-2103
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation
>     Versions: 2.6
>     Reporter: Fraser Crichton

>
> I noticed this when I validated an XHTML document I'd created from a XALAN 
> transformation. When I have the following output method in my XSLT -
> <xsl:output 
>  method="html" 
>  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
>  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";     
>                         
>  encoding="UTF-8" 
>  indent="yes"
>  media-type="text/html"
>  standalone="yes"
> />
> The following doctype definition is produced -
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> It should be this (notice the lowercase html) -
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> That means the document fails validation on the W3C site.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to