我將Altova XMLSpy映射到Apache FOP以進行XSL:FO轉換(Tools-> Options-> XSL-> Selected fop.bat),然後我寫了一個簡單的HelloWorld輸出,並嘗試將XSL:FO轉換爲PDF輸出,但XMLSpy拋出此錯誤「臨時文件無法創建!訪問被拒絕」,有人可以告訴我爲什麼出現此錯誤以及如何解決它?XSL:Altova中的FO轉換XMLSpy
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="hello"
page-height="11in" page-width="8.5in" margin-top="1in"
margin-bottom="1in" margin-left="1in" margin-right="1in">
<fo:region-body margin-top="1in" margin-bottom=".5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="hello">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="18pt" text-align="center" font-weight="bold">
Hello World!
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>