from fo_lab import run_cases
SCENARIOS = [{'id': '1', 'file': 'fo/tutorial.fo', 'expected_text': ['MBSKY', 'mbsky.com', 'Learn XML']}]
if __name__ == "__main__":
run_cases('xslfo-tutorial', SCENARIOS)
本例需在 Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程
运行环境:Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3
入口文件:projects/fo-lab/xslfo-tutorial.py
预期结果与验证条件观察提示
- 本章1项输入分别得到明确结果:fo/tutorial.fo应生成实际PDF
- 尺寸与页数按本章条件核对;不能把本轮实例通过推断为56对象全支持。
请结合实际环境逐项观察。
附件与关联工程包下载
课程关联工程包(登记关联13章) · 含当前章节或实例 · mbskycom202611a543.zip