gpt4 book ai didi

xslt - 验证 FO 文件

转载 作者:行者123 更新时间:2023-12-02 21:49:11 24 4
gpt4 key购买 nike

我从给定的 xsl 文件和给定的 xml 文件生成了 FO 文件。我想使用 java 代码验证 FO 文件。从xml和xsl生成fo文件时,是否自动检查?

最佳答案

我不这么认为。我第一个发现 FO 出现问题的迹象是 FO 处理器在 PDF 生成过程中出现错误。Oxygen 的一位开发人员对此事有这样的说法 on the Oxygen forum :

The problem with XSL-FO is that there is no tool which can fully and properly validate it. An XML Schema cannot specify all constraints which are in an XSL-FO output file and there is no official XML Schema for validating XSL-FO output. Besides this, some XSL-FO processors like RenderX XEP have their own extensions to the standard. The best validation for me is to process the XSL-FO to PDF and thus let the processor issue warnings and errors as they are encountered.

关于xslt - 验证 FO 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18998498/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com