Привет всем. Сайт сейчас есть со спецификацией <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> . При попытке в xsl-шаблоне оставить незакрытым тег img например (что позволяет html) происходит ошибка в обработке xsl . Где то так же встречалась с информацией, что hostcms из за xsl не может работать с html5.
Возникает вопрос, возможно ли сделать новый сайт на html5 вообще и как их совместить? (будет делать новый сайт сижу думаю под какую спецификацию верстать)
Start tags must have the following format:
The first character of a start tag must be a "<" (U+003C) character.
The next few characters of a start tag must be the element's tag name.
If there are to be any attributes in the next step, there must first be one or more space characters.
Then, the start tag may have a number of attributes, the syntax for which is described below. Attributes must be separated from each other by one or more space characters.
After the attributes, or after the tag name if there are no attributes, there may be one or more space characters. (Some attributes are required to be followed by a space. See the attributes section below.)
Then, if the element is one of the , or if the element is a , then there may be a single "/" (U+002F) character. This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.
Finally, start tags must be closed by a ">" (U+003E) character.
Справочно: Void elements
area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr Foreign elements
Elements from the MathML namespace and the SVG namespace.