如何告诉 libxml-ruby 有关外部实体文件的信息?
我正在尝试使用 libxml-ruby 的 DTD#validate 进行验证
,但我不断收到以下警告:
Warning: failed to load external entity "xhtml-lat1.ent" at :29.
Warning: failed to load external entity "xhtml-symbol.ent" at :34.
Warning: failed to load external entity "xhtml-special.ent" at :39.
我不介意,除非我使用像 …
这样的东西,它们是在其中定义的,导致我的 XHTML似乎无效。
如何向 DTD 告知这些额外文件? 我尝试从包含 .dtd
文件和所有 .ent
的目录运行,但这没有帮助。
I'm trying to validate using libxml-ruby's DTD#validate
, but I keep getting the following warnings:
Warning: failed to load external entity "xhtml-lat1.ent" at :29.
Warning: failed to load external entity "xhtml-symbol.ent" at :34.
Warning: failed to load external entity "xhtml-special.ent" at :39.
I wouldn't mind, except I use things like …
, which are defined in those, causing my XHTML to appear to be invalid.
How do I tell the DTD about those extra files? I tried running from a directory containing the .dtd
file and all of the .ent
s, but that doesn't help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读发行说明,我怀疑您需要使用
或
两者兼而有之。
Reading the release notes I would suspect that you need to either use
or
or both.