I have installed GNU emacs 23.2.1, and nxml-mode-20041004.
我已经安装了GNU emacs 23.2.1和nxml-mode-20041004。
I want to validate an xml file using an xsd file, but the emacs complain
我想使用xsd文件验证xml文件,但emacs抱怨
No schema loader available for file extension `xsd'
没有可用于文件扩展名的模式加载器`xsd'
How could I make this loader for xsd file extension?
我怎么能为xsd文件扩展名创建这个加载器?
Thanks for advice
谢谢你的建议
2 个解决方案
#1
3
You cannot use a W3C XML Schema (xsd). Emacs nxml-mode validates XML documents using a compact syntax RELAX NG schema (rnc).
您不能使用W3C XML Schema(xsd)。 Emacs nxml-mode使用紧凑语法RELAX NG schema(rnc)验证XML文档。
For more information, see http://infohost.nmt.edu/tcc/help/pubs/rnc/.
有关更多信息,请参阅http://infohost.nmt.edu/tcc/help/pubs/rnc/。
#2
3
You can't, but you can try to convert the xsd schema to (rng/rnc), it's not a 100 % accurate, see this question: xsd to rnc (or rng) conversion (unix command line)
你不能,但你可以尝试将xsd架构转换为(rng / rnc),它不是100%准确,请看这个问题:xsd到rnc(或rng)转换(unix命令行)
#1
3
You cannot use a W3C XML Schema (xsd). Emacs nxml-mode validates XML documents using a compact syntax RELAX NG schema (rnc).
您不能使用W3C XML Schema(xsd)。 Emacs nxml-mode使用紧凑语法RELAX NG schema(rnc)验证XML文档。
For more information, see http://infohost.nmt.edu/tcc/help/pubs/rnc/.
有关更多信息,请参阅http://infohost.nmt.edu/tcc/help/pubs/rnc/。
#2
3
You can't, but you can try to convert the xsd schema to (rng/rnc), it's not a 100 % accurate, see this question: xsd to rnc (or rng) conversion (unix command line)
你不能,但你可以尝试将xsd架构转换为(rng / rnc),它不是100%准确,请看这个问题:xsd到rnc(或rng)转换(unix命令行)