The message "Content is not Allowed in Prolog" is a very common one produced by the SUN JDK XML parser: it basically means (as far as I can tell) that the file has been successfully opened, but the parser can't make head or tail of what it finds at the start of the file. This can be because there is whitespace before the XML declaration, or because of byte order marks, or because of encoding issues.
If the XML parser can't process the file, then you can't do anything about it using XSLT, because XSLT can only process stuff that makes it past the XML parser.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|