[
https://issues.jboss.org/browse/JBIDE-17872?page=com.atlassian.jira.plugi...
]
Ron Šmeral updated JBIDE-17872:
-------------------------------
Description:
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}
Steps to Reproduce: # Import
https://github.com/seam2/jboss-seam/tree/JBoss_Seam_2_3_1_Final/examples/...
Affects Version/s: 4.2.0.CR1
Environment: JBDS 8.0.0.Beta3
Component/s: xml-structured-editor
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: xml-structured-editor
Affects Versions: 4.2.0.CR1
Environment: JBDS 8.0.0.Beta3
Reporter: Ron Šmeral
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)