是文件://.有效的 URI?
我希望这意味着“当前目录”,这当然在另一台机器上甚至在不同的时间毫无意义,但它在 Xerces 上触发了架构错误,我认为这样做是错误的。
I expect this to mean "the current directory" which of course is meaningless on another machine or even at a different time, but it's triggering a schema error on Xerces and I think it's wrong to do so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不是。文件协议有两部分:主机和路径。如果省略主机,斜杠仍然是必需的。你的只是一条路。
file:///.
可能是可以接受的,但不是您正在寻找的。文件协议完全不知道当前目录。这将扩展到file://localhost/.
,这意味着当前系统上名为.
的目录或文件,正如 cHao 在评论中指出的那样。No, it isn't. A file protocol has two parts, a host and a path. If you omit the host, the slash is still required. Yours is just a path.
file:///.
would probably be acceptable, but not what you are looking for. A file protocol is completely unaware of the current directory. That would expand tofile://localhost/.
, which would mean a directory or file named.
on the current system, as cHao noted in the comments.