Topic: XSLT from a file with the wrong coding
At me on an input xml files without coding instructions, i.e. utf-8. In a file the Russian text in a type to see it is normally necessary to lead code conversion from utf-8 in iso-8815-1 from to consider as windows-1251.
It is necessary to receive from them different documents with the normal text means xslt.
1. For obtaining html, it is possible to use a blende in xsl:
<? xml version = "1.0" encoding = "UTF-8"?> <xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"> <xsl:output method = "xml" indent = "yes" encoding = "ISO-8859-1" omit-xml-declaration = "yes"/> <xsl:template match = "/"> <html> <head> <meta http-equiv = "Content-Type" content = "text/html; charset=win-1251"/> ...
Badly also it is necessary not only html.
2. Beforehand to lead double code conversion of source files by exterior means of type iconv, but here complexities with an infrastructure.
3. XSL I know badly and someone prompts me other way means most xsl versions 1.0.