On the text output method Saxon currently writes a byte
order mark only for encoding="utf-8". For the XML output method it will also
write one (if requested) for utf-16le and utf-16be, and I think you are right
that the text output method should be brought into line.
I am trying to use the Saxon Extensions feature to
output a byte order mark in text files generated with Saxon (126.96.36.199J). The
encoding is UTF-16LE since I need the file as input to a program which can
only understand Windows Notepad-type Unicode files (byte order mark FF+FE).
This is the header of my XSLT stylesheet:
version="1.0" xmlns:saxon="http://saxon.sf.net/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
However, no byte order mark is
inserted in the file. Any ideas?