[jbosstools-issues] [JBoss JIRA] (JBIDE-20012) Jboss Tools HTML editor not validating syntax using html5 doctype (xhtml doctype is OK)
Victor Rubezhny (JIRA)
issues at jboss.org
Wed Jun 10 13:46:02 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-20012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13077020#comment-13077020 ]
Victor Rubezhny commented on JBIDE-20012:
-----------------------------------------
I've found two problems here:
1) When validator tries to find CMDocument for the <h:body> element it searches the XML Catalog and finds schema in org.jboss.tools.jsf/taglibs/html_basic.taglib.xml file. But the CMDocument created from this schema doesn't contain elements (which are required to validate <h:body> element against).
This schema comes from org.jboss.tools.jsf plug-in.
2) Then I've tried to remove any jsf* plug-ins from Run Configuration and faced the same problem (<h:body> element wasn't validated properly, while clean Eclipse Mars + WTP configuration validates <h:body> tag successfully). In such Run Configuration I've found that there is no schema defined for public ID "http://www.w3.org/1999/xhtml" (which exists in clean Eclipse Mars + WTP installation). So, the validation has started to work properly after I've added the following XML Catalog entry:
{code}
Entry element: URI
Location: http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
URI: http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
Key type: Namespace name
Key: http://www.w3.org/1999/xhtml
{code}
[~akazakov] Can we replace our schema (org.jboss.tools.jsf/taglibs/html_basic.taglib.xml) by the default one from Eclipse JEE bundle? Will it break our own Validation and Content Assist features?
> Jboss Tools HTML editor not validating syntax using html5 doctype (xhtml doctype is OK)
> ---------------------------------------------------------------------------------------
>
> Key: JBIDE-20012
> URL: https://issues.jboss.org/browse/JBIDE-20012
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml/html source editing, upstream
> Affects Versions: 4.2.3.Final, 4.3.0.Alpha2
> Environment: windows 7, java 8, eclipse ide for java ee developers (luna sr2 and jboss tools 4.2.3.Final) (mars rc3 and 4.3.0.Alpha2)
> Reporter: Euclides Melo
> Assignee: Victor Rubezhny
> Fix For: 4.3.x
>
> Attachments: html5_doctype.jpg, xhtml_doctype.jpg
>
>
> Editing two xhtml files in a fresh eclipse, fresh workspace, fresh default dynamic web project (with jsf capabilities):
> In one file, there is the xhtml doctype. In the other file, the html5 doctype.
> The issue:
> Validation (syntax) only occurs in the file with the xhtml doctype.
> (attached two screens showing the error)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jbosstools-issues
mailing list