It could be due to various reasons ... I am drilling down such reasons ...
although as Michael mentioned seeing your code will help to pin-point the
root cause.

1. Did you create the file using copy-paste? Chances are that some invalid
characters were introduced.
2. Make sure the XML declaration is at the very top without any preceding
spaces. The XML prolog must be the first thing in the XML. No blank
characters or lines should be there at the start of the file.

I am hoping you can spot the issue in your ftl due to the above obvious
reasons. If it is still not apparent, then please provide the source code.


Thanks,
Girish Vasmatkar
HotWax Systems


On Tue, Aug 14, 2018 at 8:35 PM Madhi Krishnan <
[email protected]> wrote:

> Hey all..i'm trying to to make pdf view when user hits a particular
> url..using xsl-fo..
> but it ends up with an error
>
> The Following Errors Occurred:
>
> Unable to transform FO file: org.apache.fop.apps.FOPException:
> org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 6; The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
> javax.xml.transform.TransformerException: org.xml.sax.SAXParseException;
> lineNumber: 6; columnNumber: 6; The processing instruction target matching
> "[xX][mM][lL]" is not allowed.
>
> i have created a fo.ftl file..
>

Reply via email to