eclipse - HTML5 Validation for Zend Studio -
i'm trying keep project error free possible, phtml files contain <nav>
, <aside>
, <article>
, other html5 tags cause errors. how can configure validator recognize these new elements?
have tried request support source here
http://forums.zend.com/viewtopic.php?f=59&t=10463
no answers far
use html5 dtd komodo, extension of xhtml dtd, new mapping in eclipse xml catalog.
<!-- html 5 dtd same html 4 transitional except updates html 5 specication. --> <!--================ character mnemonic entities =========================--> <!entity % htmllat1 public "-//w3c//entities latin 1 xhtml//en" "html5-lat1.ent"> %htmllat1; <!entity % htmlsymbol public "-//w3c//entities symbols xhtml//en" "html5-symbol.ent"> %htmlsymbol; <!entity % htmlspecial public "-//w3c//entities special xhtml//en" "html5-special.ent"> %htmlspecial; <!--================== imported names ====================================--> <!entity % contenttype "cdata"> <!-- media type, per [rfc2045] --> <!entity % contenttypes "cdata"> <!-- comma-separated list of media types, per [rfc2045] --> <!entity % charset "cdata"> <!-- character encoding, per [rfc2045] --> <!entity % charsets "cdata"> <!-- space separated list of character encodings, per [rfc2045] --> <!entity % languagecode "nmtoken"> <!-- language code, per [rfc3066] --> <!entity % character "cdata"> <!-- single character, per section 2.2 of [xml] --> <!entity % number "cdata"> <!-- 1 or more digits --> <!entity % date "cdata"> <!-- 1 or more digits --> <!entity % linktypes "(alternate | archives | author | bookmark | contact | external | first | | icon | index | last | license | next | nofollow | noreferrer | pingback | prefetch | prev | search | stylesheet | sidebar | tag | up)"> <!-- space-separated list of link types --> <!entity % mediadesc "(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv)"> <!-- single or comma-separated list of media descriptors --> <!entity % uri "cdata"> <!-- uniform resource identifier, see [rfc2396] --> <!entity % urilist "cdata"> <!-- space separated list of uniform resource identifiers --> <!entity % datetime "cdata"> <!-- date , time information. iso date format --> <!entity % script "cdata"> <!-- script expression --> <!entity % stylesheet "cdata"> <!-- style sheet data --> <!entity % text "cdata"> <!-- used titles etc. --> <!entity % frametarget "(_blank | _parent | _self | _top)"> <!-- render in frame --> <!entity % length "cdata"> <!-- nn pixels or nn% percentage length --> <!entity % multilength "cdata"> <!-- pixel, percentage, or relative --> <!entity % pixels "cdata"> <!-- integer representing length in pixels --> <!entity % boolean "(true|false)"> <!-- these used image maps --> <!entity % shape "(rect|circle|poly|default)"> <!entity % coords "cdata"> <!-- comma separated list of lengths --> <!-- color using srgb: #rrggbb hex values --> <!entity % color "cdata"> <!-- there 16 known color names srgb values: black = #000000 green = #008000 silver = #c0c0c0 lime = #00ff00 gray = #808080 olive = #808000 white = #ffffff yellow = #ffff00 maroon = #800000 navy = #000080 red = #ff0000 blue = #0000ff purple = #800080 teal = #008080 fuchsia= #ff00ff aqua = #00ffff --> <!--=================== generic attributes ===============================--> <!-- core attributes common elements id document-wide unique id class space separated list of classes style associated style info title advisory title/amplification --> <!entity % coreattrs "id id #implied class cdata #implied style %stylesheet; #implied title %text; #implied" > <!-- internationalization attributes lang language code (backwards compatible) xml:lang language code (as per xml 1.0 spec) dir direction weak/neutral text --> <!entity % i18n "lang %languagecode; #implied xml:lang %languagecode; #implied dir (ltr|rtl) #implied" > <!-- attributes common ui events onclick pointer button clicked ondblclick pointer button double clicked onmousedown pointer button pressed down onmouseup pointer button released onmousemove pointer moved onto element onmouseout pointer moved away element onkeypress key pressed , released onkeydown key pressed down onkeyup key released --> <!entity % events "onclick %script; #implied ondblclick %script; #implied onmousedown %script; #implied onmouseup %script; #implied onmouseover %script; #implied onmousemove %script; #implied onmouseout %script; #implied onkeypress %script; #implied onkeydown %script; #implied onkeyup %script; #implied <!-- html 5 mouse events - events triggered mouse, or similar user actions: --> ondrag %script; #implied <!-- script run when element dragged --> ondragend %script; #implied <!-- script run @ end of drag operation --> ondragenter %script; #implied <!-- script run when element has been dragged valid drop target --> ondragleave %script; #implied <!-- script run when element leaves valid drop target --> ondragover %script; #implied <!-- script run when element being dragged on valid drop target --> ondragstart %script; #implied <!-- script run @ start of drag operation --> ondrop %script; #implied <!-- script run when dragged element being dropped --> onmousewheel %script; #implied <!-- script run when mouse wheel being rotated --> onscroll %script; #implied <!-- script run when element's scrollbar being scrolled --> " > <!-- attributes elements can focus accesskey accessibility key character tabindex position in tabbing order onfocus element got focus onblur element lost focus --> <!entity % focus "accesskey %character; #implied tabindex %number; #implied onfocus %script; #implied onblur %script; #implied" > <!-- html 5 core attributes --> <!entity % html5attrs "contenteditable %boolean; #implied contextmenu id #implied draggable (true | false | auto) #implied hidden (hidden) #implied item cdata #implied itemprop cdata #implied spellcheck %boolean; #implied subject id #implied contextmenu id #implied contextmenu id #implied contextmenu id #implied contextmenu id #implied " > <!-- media events - events triggered medias videos, images , audio. applies html 5 elements, common in media elements, such audio, embed, img, object, , video. --> <!entity % html5mediaevents "onabort %script; #implied <!-- script run on abort event --> oncanplay %script; #implied <!-- script run when media can start play, might has stop buffering --> oncanplaythrough %script; #implied <!-- script run when media can played end, without stopping buffering --> ondurationchange %script; #implied <!-- script run when length of media changed --> onemptied %script; #implied <!-- script run when media resource element becomes empty (network errors, errors on load etc.) --> onended %script; #implied <!-- script run when media has reach end --> onerror %script; #implied <!-- script run when error occurs during loading of element --> onloadeddata %script; #implied <!-- script run when media data loaded --> onloadedmetadata %script; #implied <!-- script run when duration , other media data of media element loaded --> onloadstart %script; #implied <!-- script run when browser starts load media data --> onpause %script; #implied <!-- script run when media data paused --> onplay %script; #implied <!-- script run when media data going start playing --> onplaying %script; #implied <!-- script run when media data has start playing --> onprogress %script; #implied <!-- script run when browser fetching media data --> onratechange %script; #implied <!-- script run when media data's playing rate has changed --> onreadystatechange %script; #implied <!-- script run when ready-state changes --> onseeked %script; #implied <!-- script run when media element's seeking attribute no longer true, , seeking has ended --> onseeking %script; #implied <!-- script run when media element's seeking attribute true, , seeking has begun --> onstalled %script; #implied <!-- script run when there error in fetching media data (stalled) --> onsuspend %script; #implied <!-- script run when browser has been fetching media data, stopped before entire media file fetched --> ontimeupdate %script; #implied <!-- script run when media changes playing position --> onvolumechange %script; #implied <!-- script run when media changes volume, when volume set "mute" --> onwaiting %script; #implied <!-- script run when media has stopped playing, expected resume --> " > <!entity % attrs "%coreattrs; %i18n; %events; %html5attrs;"> <!--=================== text elements ====================================--> <!entity % special.extra "object | img | map | iframe"> <!entity % special.basic "br | span | bdo"> <!entity % special "%special.basic; | %special.extra;"> <!entity % fontstyle.basic "small | | b | u"> <!entity % fontstyle "%fontstyle.basic;"> <!entity % phrase.extra "sub | sup"> <!entity % phrase.basic "em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym"> <!entity % phrase "%phrase.basic; | %phrase.extra;"> <!entity % inline.forms "input | output | select | textarea | label | button | datetime | datetime-local | data | month | week | time | number | range | email | url | menu | datalist"> <!-- these can occur @ block or inline level --> <!entity % misc.inline "ins | del | script"> <!-- these can occur @ block level --> <!entity % misc "noscript | %misc.inline;"> <!entity % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;"> <!-- %inline; covers inline or "text-level" elements --> <!entity % inline "(#pcdata | %inline; | %misc.inline;)*"> <!--================== block level elements ==============================--> <!entity % heading "h1|h2|h3|h4|h5|h6"> <!entity % lists "ul | ol | dl"> <!entity % blocktext "pre | hr | blockquote | address | article | aside | summary | mark"> <!entity % block "p | %heading; | div | %lists; | %blocktext; | fieldset | table | header | footer | section | hgroup | main | nav | dialog | figure | datagrid | canvas | audio | video | source | embed | keygen | progress | ruby"> <!-- %flow; mixes block , inline , used list items etc. --> <!entity % flow "(#pcdata | %block; | form | %inline; | %misc;)*"> <!--================== content models exclusions =====================--> <!-- elements use %inline; excluding --> <!entity % a.content "(#pcdata | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc.inline;)*"> <!-- pre uses %inline excluding img, object, big, small --> <!entity % pre.content "(#pcdata | | %special.basic; | %fontstyle.basic; | %phrase.basic; | %inline.forms; | %misc.inline;)*"> <!-- form uses %flow; excluding form --> <!entity % form.content "(#pcdata | %block; | %inline; | %misc;)*"> <!-- button uses %flow; excludes a, form, form controls, iframe --> <!entity % button.content "(#pcdata | p | %heading; | div | %lists; | %blocktext; | table | datagrid | br | span | bdo | object | img | map | %fontstyle; | %phrase; | %misc;)*"> <!--================ document structure ==================================--> <!-- namespace uri designates document profile --> <!element html (head, body)> <!attlist html %i18n; id id #implied xmlns %uri; #fixed 'http://www.w3.org/1999/xhtml' <!-- html 5 attributes --> manifest %uri; #implied > <!--================ document head =======================================--> <!entity % head.misc "(script|style|meta|link|object)*"> <!-- content model %head.misc; combined single title , optional base element in order --> <!element head (%head.misc;, ((title, %head.misc;, (base, %head.misc;)?) | (base, %head.misc;, (title, %head.misc;))))> <!attlist head %i18n; id id #implied profile %uri; #implied > <!-- title element not considered part of flow of text. should displayed, example page header or window title. 1 title required per document. --> <!element title (#pcdata)> <!attlist title %i18n; id id #implied > <!-- document base uri --> <!element base empty> <!attlist base id id #implied href %uri; #implied target %frametarget; #implied > <!-- generic metainformation --> <!element meta empty> <!attlist meta %i18n; id id #implied http-equiv cdata #implied name cdata #implied content cdata #required <!-- html 5 attributes --> charset %charset; #implied > <!-- relationship values can used in principle: a) document specific toolbars/menus when used link element in document head e.g. start, contents, previous, next, index, end, b) link separate style sheet (rel="stylesheet") c) make link script (rel="script") d) stylesheets control how collections of html nodes rendered printed documents e) make link printable version of document e.g. postscript or pdf version (rel="alternate" media="print") --> <!element link empty> <!attlist link %attrs; href %uri; #implied hreflang %languagecode; #implied type %contenttype; #implied rel %linktypes; #implied media %mediadesc; #implied <!-- html 5 attributes --> sizes %number; #implied > <!-- style info, may include cdata sections --> <!element style (#pcdata)> <!attlist style %i18n; id id #implied type (text/css) #required media %mediadesc; #implied <!-- html 5 attributes --> scoped (scoped) #implied > <!-- script statements, may include cdata sections --> <!element script (#pcdata)> <!attlist script id id #implied charset %charset; #implied type (text/javascript) #required language cdata #implied src %uri; #implied defer (defer) #implied <!-- html 5 attributes --> async (async) #implied > <!-- alternate content container non script-based rendering --> <!element noscript %flow;> <!attlist noscript %attrs; > <!--======================= frames =======================================--> <!-- inline subwindow --> <!element iframe %flow;> <!attlist iframe %coreattrs; %html5attrs; name nmtoken #implied src %uri; #implied height %length; #implied width %length; #implied <!-- html 5 attributes --> sandbox (allow-forms | allow-same-origin | allow-scripts) #implied seamless cdata #implied srcdoc cdata #implied > <!--=================== document body ====================================--> <!element body %flow;> <!attlist body %attrs; onload %script; #implied onunload %script; #implied <!-- html 5 window event attributes --> onafterprint %script; #implied <!-- script run after document printed --> onbeforeprint %script; #implied <!-- script run before document printed --> onbeforeonload %script; #implied <!-- script run before document loads --> onerror %script; #implied <!-- script run when error occur --> onhaschange %script; #implied <!-- script run when document has change --> onmessage %script; #implied <!-- script run when message triggered --> onoffline %script; #implied <!-- script run when document goes offline --> ononline %script; #implied <!-- script run when document comes online --> onpagehide %script; #implied <!-- script run when window hidden --> onpageshow %script; #implied <!-- script run when window becomes visible --> onpopstate %script; #implied <!-- script run when window's history changes --> onredo %script; #implied <!-- script run when document performs redo --> onresize %script; #implied <!-- script run when window resized --> onstorage %script; #implied <!-- script run when document loads --> onundo %script; #implied <!-- script run when document performs undo --> onunload %script; #implied <!-- script run when user leaves document --> > <!element div %flow;> <!-- generic language/style container --> <!attlist div %attrs; > <!--=================== paragraphs =======================================--> <!element p %inline;> <!attlist p %attrs; > <!--=================== headings =========================================--> <!-- there 6 levels of headings h1 (the important) h6 (the least important). --> <!element h1 %inline;> <!attlist h1 %attrs; > <!element h2 %inline;> <!attlist h2 %attrs; > <!element h3 %inline;> <!attlist h3 %attrs; > <!element h4 %inline;> <!attlist h4 %attrs; > <!element h5 %inline;> <!attlist h5 %attrs; > <!element h6 %inline;> <!attlist h6 %attrs; > <!--=================== lists ============================================--> <!-- unordered list --> <!element ul (li)+> <!attlist ul %attrs; > <!-- ordered (numbered) list --> <!element ol (li)+> <!attlist ol %attrs; start %number; #implied <!-- html 5 attributes --> reversed (reversed) #implied > <!-- list item --> <!element li %flow;> <!attlist li %attrs; value %number; #implied > <!-- definition lists - dt term, dd definition --> <!element dl (dt|dd)+> <!attlist dl %attrs; > <!element dt %inline;> <!attlist dt %attrs; > <!element dd %flow;> <!attlist dd %attrs; > <!--=================== address ==========================================--> <!-- information on author --> <!element address (#pcdata | %inline; | %misc.inline; | p)*> <!attlist address %attrs; > <!--=================== horizontal rule ==================================--> <!element hr empty> <!attlist hr %attrs; > <!--=================== preformatted text ================================--> <!-- content %inline; excluding "img|object|small|sub|sup" --> <!element pre %pre.content;> <!attlist pre %attrs; > <!--=================== block-like quotes ================================--> <!element blockquote %flow;> <!attlist blockquote %attrs; cite %uri; #implied > <!--=================== inserted/deleted text ============================--> <!-- ins/del allowed in block , inline content, inappropriate include block content within ins element occurring in inline content. --> <!element ins %flow;> <!attlist ins %attrs; cite %uri; #implied datetime %datetime; #implied > <!element del %flow;> <!attlist del %attrs; cite %uri; #implied datetime %datetime; #implied > <!--================== anchor element ================================--> <!-- content %inline; except anchors shouldn't nested --> <!element %a.content;> <!attlist %attrs; %focus; href %uri; #implied hreflang %languagecode; #implied rel %linktypes; #implied target %frametarget; #implied <!-- html 5 attributes --> media cdata #implied ping %uri; #implied type %contenttype; #implied > <!--===================== inline elements ================================--> <!element span %inline;> <!-- generic language/style container --> <!attlist span %attrs; > <!element bdo %inline;> <!-- i18n bidi over-ride --> <!attlist bdo %coreattrs; %html5attrs; %events; lang %languagecode; #implied xml:lang %languagecode; #implied dir (ltr|rtl) #required > <!element br empty> <!-- forced line break --> <!attlist br %coreattrs; %html5attrs; > <!element em %inline;> <!-- emphasis --> <!attlist em %attrs;> <!element strong %inline;> <!-- strong emphasis --> <!attlist strong %attrs;> <!element dfn %inline;> <!-- definitional --> <!attlist dfn %attrs;> <!element code %inline;> <!-- program code --> <!attlist code %attrs;> <!element samp %inline;> <!-- sample --> <!attlist samp %attrs;> <!element kbd %inline;> <!-- user type --> <!attlist kbd %attrs;> <!element var %inline;> <!-- variable --> <!attlist var %attrs;> <!element cite %inline;> <!-- citation --> <!attlist cite %attrs;> <!element abbr %inline;> <!-- abbreviation --> <!attlist abbr %attrs;> <!element q %inline;> <!-- inlined quote --> <!attlist q %attrs; cite %uri; #implied > <!element sub %inline;> <!-- subscript --> <!attlist sub %attrs;> <!element sup %inline;> <!-- superscript --> <!attlist sup %attrs;> <!element %inline;> <!-- italic font --> <!attlist %attrs;> <!element b %inline;> <!-- bold font --> <!attlist b %attrs;> <!element small %inline;> <!-- smaller font --> <!attlist small %attrs;> <!--==================== object ======================================--> <!-- object used embed objects part of html pages. param elements should precede other content. parameters can expressed attribute/value pairs on object element when brevity desired. --> <!element object (#pcdata | param | %block; | form | %inline; | %misc;)*> <!attlist object %attrs; %html5mediaevents; data %uri; #implied type %contenttype; #implied height %length; #implied width %length; #implied usemap %uri; #implied name nmtoken #implied tabindex %number; #implied <!-- html 5 attributes --> form cdata #implied >
references
Comments
Post a Comment