如何安装 xerces 以便可以将其用于架构验证?
我试过了:
libxerces-c-文档
libxerces-c-样本
libxerces-c3.2
libxerces2-java
libxerces2-java-文档
可能已安装,但man xerces
没有结果:
thufir@dur:~/jaxb/ship$
thufir@dur:~/jaxb/ship$ man xerces
No manual entry for xerces
thufir@dur:~/jaxb/ship$
thufir@dur:~/jaxb/ship$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/jaxb/ship$
啊,我明白了:
Download Xalan-Java. Set the Java classpath to include xalan.jar, serializer.jar, xml-apis.jar, and xercesImpl.jar -- or another conformant XML Parser
——(参见插入转换器和 XML 解析器)。
Call java and the Process class with the appropriate flags and arguments (described below). The following command line, for example,
包括 -IN、-XSL 和 -OUT 标志及其附带参数——XML 源文档、XSL 样式表和输出文件:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out
没有配置“xalan”命令?