WYSIWYG XML 编辑器(基于 DTD 或 RelaxNG 或 XSD 的语法) [英] WYSIWYG XML Editor (DTD or RelaxNG or XSD based grammars)

查看:25
本文介绍了WYSIWYG XML 编辑器(基于 DTD 或 RelaxNG 或 XSD 的语法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为自定义 XML 语法制作 WYSIWYG XML 编辑器.我已经探索了在这个域下我能找到的所有开源工具.包括 VEX、Oxygen、Bitflux...

它们都没有达到我的目的.

我也在寻找基于 javascript 的 WYSIWYG HTML 编辑器,它可以支持带有 DTD 或任何语法的附加 DOCTYPE.我已经检查了 FCK 和 CKEditor 以及 TinyMCE 类型的编辑器.

解决方案

Jaxe 是创建带有自定义 XML 语法的 GUI 的理想选择(尽管你可以说我有偏见,因为我写了大部分内容;-)

请参阅如何在 5 分钟内创建 XML 语言及其 XML 编辑器,了解一个示例(您可以跳过XML 语言的定义"部分,因为您已经有了它).或者,您可以打开 XSD 文件并选择导出到配置菜单,如配置文件语法文档中所述,以从架构自动创建配置文件.

然而,与其他 XML 编辑器不同,Jaxe 并不试图成为所见即所得",它试图成为所见即所得",即使它具有图形界面.因此,您所看到的通常看起来不像最终结果,它试图通过可见标记来传达 XML 元素的含义.这会产生语义更好的文档,但用户需要了解语义编辑的含义,因此这可能是也可能不是您正在寻找的......

I'm need to make a WYSIWYG XML editor for a custom XML grammar. I have explored all the OpenSource tools that I could find under this domain. Includes VEX, Oxygen, Bitflux...

None of them served my purpose.

I'm also looking for javascript-based WYSIWYG HTML editors which can support and additional DOCTYPE with DTD or any grammar. I already checked out FCK and CKEditor and TinyMCE kind of editors.

解决方案

Jaxe is ideal to create a GUI with a custom XML grammar (although you could say I'm biased, since I wrote most of it ;-)

See How to create an XML language and its XML editor in 5 minutes for an example (you can skip the "Definition of the XML language" part since you already have it). Or you can open an XSD file and choose the export to config menu as explained in the configuration files syntax documentation, to automatically create a config file from a schema.

However, as opposed to other XML editors, Jaxe does not try to be "WYSIWYG", it tries to be "WYSIWYM", even though it has a graphical interface. So, what you see generally does not look like the end result, it tries to convey the meaning of the XML elements, with visible tags. This results in semantically better documents, but users need to be aware of what semantic editing means, so that might or might not be what you're looking for...

这篇关于WYSIWYG XML 编辑器(基于 DTD 或 RelaxNG 或 XSD 的语法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆