gpt4 book ai didi

xslt - 验证 FO 文件

转载 作者:行者123 更新时间:2023-12-02 04:50:11 25 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/

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