[jbosstools-issues] [JBoss JIRA] (JBIDE-17872) XHTML files parsed as HTML instead as XML

Max Rydahl Andersen (JIRA) issues at jboss.org
Tue Jul 15 11:38:30 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985269#comment-12985269 ] 

Max Rydahl Andersen commented on JBIDE-17872:
---------------------------------------------

we should open a bug at eclipse for this - the two are semantically the same....

> XHTML files parsed as HTML instead as XML
> -----------------------------------------
>
>                 Key: JBIDE-17872
>                 URL: https://issues.jboss.org/browse/JBIDE-17872
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>    Affects Versions: 4.2.0.CR1
>         Environment: JBDS 8.0.0.Beta3
>            Reporter: Ron Šmeral
>            Assignee: Alexey Kazakov
>             Fix For: 4.3.x
>
>
> Files with an XHTML extension which are not HTML documents (don't have any doctype) seem to be treated by JBDS as HTML files, not as XML files, despite being valid and correctly referencing namespaces.
> Specifically, this appears to happen when the root element uses the default namespace. It doesn't happen when the namespace of the root element is named. 
> * The file src/main/webapp/table.xhtml triggers a lot of HTML problems, has root element in default namespace:
> {code:xml}
> <document xmlns:ui="http://java.sun.com/jsf/facelets" 
>           xmlns:f="http://java.sun.com/jsf/core"
>           xmlns="http://jboss.org/schema/seam/pdf">
>     <image alignment="right" wrap="true" value="/jboss.jpg" /> 
>     <font size="24"><paragraph spacingAfter="50">Table Test</paragraph></font>  
> ...
> </document>
> {code}
> {noformat}
> Unknown tag (document).
> table.xhtml
> /itext-web/src/main/webapp
> line 1
> HTML Problem
> {noformat}
> * src/main/webapp/whyseam.xhtml doesn't trigger HTML problems, has root element in a named namespace:
> {code:xml}
> <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
>             xmlns:f="http://java.sun.com/jsf/core"
>             xmlns:p="http://jboss.org/schema/seam/pdf"
>             title="Why Seam"
>             keywords="mykeyword"
>             subject="seam"
>             author="Seam Team"
>             creator="Seam PDF example app">
>     <f:facet name="header">
>         <p:font size="12">
>             <p:footer borderWidthTop="1" borderColorTop="blue" borderWidthBottom="0" alignment="center">Why Seam? [<p:pageNumber />]</p:footer>
>         </p:font>
>     </f:facet>
> ... 
> </p:document>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list