XSLT и HTML5 конфликтуют?

#
XSLT и HTML5 конфликтуют?
Привет всем. Сайт сейчас есть со спецификацией <!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 вообще и как их совместить? (будет делать новый сайт сижу думаю под какую спецификацию верстать)
#
Re: XSLT и HTML5 конфликтуют?
evfemizm,
любой незакрытый тэг (тот же <br> будет вызывать ошибку парсера
www.morozovpimnev.ru - создание, поддержка и продвижение сайтов | Наш канал https://asmp.su/channel
#
Re: XSLT и HTML5 конфликтуют?
Указание спецификации <!DOCTYPE html> так же дает ошибку в рамках xsl шаблона? Или где то в другом месте я накосячить могла?
#
Re: XSLT и HTML5 конфликтуют?
evfemizm писал(а):
другом месте я накосячить могла?

Для отладки XSL-шаблонов рекомендую программу Stylus Studio 2009
E-mail: info@syrbek.ru / телега: @syrbek /skype: activexm / syrbek.ru / Поддержка сайтов / г. Москва [HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, Git, SVN, Redmine]
Модератор
#
Re: XSLT и HTML5 конфликтуют?
evfemizm,
DOCTYPE вы указываете в макете.

теперь что касается HTML5 и selfclosed tags:
https://www.w3.org/TR/html5/syntax.html#start-tags

8.1.2.1 Start tags

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 void elements, or if the element is a foreign element, 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.
Авторизация