Q. Как организовать вывод XSLT-процессора в кодировке Windows-1251?A [shade33]. Для начала указать правильную кодировку вывода: <xsl:output encoding="Windows-1251"/>
Однако, при использовании метода вывода html XSLT-процессор согласно спецификации XSLT 1.0 может замещать русские символы сущностями. Цитата из спецификации: “It is possible that the result tree will contain a character that cannot be represented in the encoding that the XSLT processor is using for output. In this case, if the character occurs in a context where HTML recognizes character references, then the character should be output as a character entity reference or decimal numeric character reference; otherwise (for example, in a script or style element or in a comment), the XSLT processor should signal an error.” Для XSLT-процессора SAXON решением может служить использование дополнительного атрибута: <xsl:output method="html" encoding="Windows-1251" saxon:character-representation="native" />
|
| Нас поддерживают:
Вакансии заводы г калуги здесь. . Читайте про фольксваген груп рус калуга. © Vasil I. Yaroshevich, 2001-2005 Driven by DokuWiki © 2004-2005 Andreas Gohr |