]
Alexey Kazakov reassigned JBIDE-17872:
--------------------------------------
Assignee: Jeff MAURY (was: Alexey Kazakov)
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: Jeff MAURY
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}