Как ставить атрибуты CHECKED, SELECTED в XSLT-шаблоне?Q. Ситуация слеующая: XML преобразуется с помощью XSLT-шаблона. Проблема: когда в XSL-шаблоне ставлю <input type="checkbox" name="registerme"/>
то всё нормально, но стоит добавить атрибут CHECKED <input CHECKED type="checkbox" name="registerme"/>
сразу ругается. A [lexi]. Везде написано, что selected=“selected” при сериализации в HTML будет выведен как просто selected. http://www.w3.org/TR/xslt#section-HTML-Output-Method: The html output method should output boolean attributes (that is attributes with only a single allowed value that is equal to the name of the attribute) in minimized form. For example, a start-tag written in the stylesheet as <OPTION selected=“selected”> should be output as <OPTION selected>. |
© Vasil I. Yaroshevich, 2001-2005 Driven by DokuWiki © 2004-2005 Andreas Gohr |