On Wed, Jul 21, 2010 at 08:05:04PM +0000, brian m. carlson wrote: > Package: libxslt1.1 > Version: 1.1.26-5 > Severity: minor > > When using the output method xml (whether implicitly or explicitly), > libxslt1.1 outputs an XML declaration. However, it does not include an > encoding pseudo-attribute. Obviously, libxslt1.1 knows what encoding it > used to output the data (hopefully UTF-8) and it should be explicit > about that. > > The XSLT spec says: > > The xml output method should output an XML declaration unless the > omit-xml-declaration attribute has the value yes. The XML declaration > should include both version information and an encoding declaration. > > Please be sure that when emitting an encoding declaration that you use > the upper-case form of "UTF-8" (see #568347). I have not included a > testcase because this behavior is trivially reproducible with xsltproc.
And the XML spec says in substance that if the encoding is UTF-8 or UTF-16, you don't need an encoding declaration. Is there a hidden problem you're not mentioning and you are trying to solve? Mike -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

