You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2005/04/15 14:51:18 UTC

[jira] Commented: (XALANJ-2103) Case of doctype definiton wrong

     [ http://issues.apache.org/jira/browse/XALANJ-2103?page=comments#action_62894 ]
     
Henry Zongaro commented on XALANJ-2103:
---------------------------------------

As a work-around, the doctype declaration is emitted in the correct form if you use the XML output method instead of the HTML output method.

I'm not sure whether the experimental XHTML serialization support was intended to work with both the HTML and XML output methods or just one of the two.  I'll leave it to someone who better understands the history of Xalan-J's serialization support to decide that.

> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org