How to use saxon built-in catalog feature

前端 未结 2 1250
你的背包
你的背包 2021-01-14 00:18

I downloaded SaxonHE9-4-0-6J and want to process XHTML on CLI. However Saxon tries to load DTD from W3C and it takes too much time for every simple command.

I have x

2条回答
  •  梦毁少年i
    2021-01-14 00:38

    Daniel Haley has answered better than I could about how to use an explicit catalog with Saxon.

    As for using built-in copies of the well-known DTDs, Saxon 9.4 will indeed do this automatically by default if it recognizes the system ID or public ID of the required resource. If it's going to the W3C site, the first thing we need to discover is the precise form of the DOCTYPE you are using.

    The error message about failure to load the Apache catalog resolver actually means that Saxon has been unable to load the class org.apache.xml.resolver.CatalogManager. I wonder if you're using a version of the resolver that doesn't include this class? I can't think of any other explanation.

提交回复
热议问题