基于jquery的xml编辑器,使用xml Schema [英] jquery-based xml editor that uses xml Schemas

查看:325
本文介绍了基于jquery的xml编辑器,使用xml Schema的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个基于Web的xml编辑器,它使用xml架构文档来控制元素和属性的添加。
例如,当架构文档中列出允许的子元素时,为子元素提供下拉列表。如果元素类型是date,则提供日期选择器。

I'm in need of a web-based xml editor that uses xml schema documents to control the addition of elements and attributes. For example, providing drop-downs for sub-elements when the allowed sub-elements are listed in the schema document. And if an element type is "date," providing a date picker.

此外,它需要是可扩展的,因此我可以创建自己的元素类型。例如,我可以定义一个HTML类型来调出一个CKEditor实例进行编辑。

In addition, it needs to be extensible, so I can create my own element types. For example, an "HTML" type I can define to bring up an instance of CKEditor for editing.

我实际上已经编写了其中一个,但不是用jquery。我即将重新开始,但似乎这样的事情可能已经存在。

I've actually written one of these in the past, but not with jquery. I'm about to start over, but it seems like something like this may already exist.

如果不是一个成熟的工具,那么我可以使用的任何有用的库都会我也很感激。

If not a full-fledged tool, then any useful libraries I can leverage would be appreciated as well.

非常感谢,我希望这个问题不要太模糊或偏离主题。

Thanks very much, and I hope this question isn't too vague or off-topic.

谢谢!
Don Undeen

Thanks! Don Undeen

推荐答案

此主题至少在十年后似乎尚未解决。我将概述可用的解决方案。排名从最有希望到最好听的。

This topic seems to be unsolved since at least a decade. I'll provide an overview on available solutions. Ranked from the most promising to nice-to-have-heard-about.


  • xsd-forms 基于XML Schema生成基于jQuery的UI。公开测试版计划于2013年6月发布。

  • codemirror 似乎是一个相当的好的选择。它具有 XML自动填充。但是,必须手动配置此自动完成。

  • xsd-forms generates a jQuery-based UI based on an XML Schema. Public beta released is scheduled for June 2013.
  • codemirror seems to be a rather good choice. It has XML autocomplete. However, this autocomplete has to be configured manually.

基于XSD而没有当前实现的XML编辑器的概念在两个sistes中描述net:

Concepts of XML editors based on XSD without current implementation is described at two sistes in the net:

  • http://www.xml.com/pub/a/2003/04/30/editing.html
  • http://en.wikibooks.org/wiki/XRX/XForms_Generator
  • Generating XForms from an XML Schema

提供了一个相当古老的概述: http://wadoku.de/wiki/display/DEV/XSD2Form

A rather old overview is provided at: http://wadoku.de/wiki/display/DEV/XSD2Form

一些基本的实现可在以下网址找到:

Some rudimentary implementations are available at:

  • http://code.google.com/p/xrx/source/browse/#svn/trunk/14-xml-schema-to-xforms
  • http://nunojob.wordpress.com/2008/01/05/creating-a-user-interface-for-xml-schema-using-xforms/
  • http://wsdl2xforms.svn.sourceforge.net/viewvc/wsdl2xforms/wsdl2xforms/trunk/src/schema2xforms.xsl?view=log

据我记得,STP策略编辑器还从XML Schema生成某种用户输入。可能这个代码可以重复使用吗? http://wiki.eclipse.org/Policy_Framework_in_STP

As far as I remember, the STP Policy Editor also generates some kind of user input from XML Schema. Possibly, this code can be re-used? http://wiki.eclipse.org/Policy_Framework_in_STP

浏览器中的纯XML编辑器:

Plain XML editors in the browser:


  • jquery.xmleditor 可能就是你要找的东西。它们提供了用于编辑XML的图形UI。对于基于文本的XML编辑器,它们依赖于 Cloud9 编辑器。请注意,Cloud9已获得GPL许可。

  • LiveXMLEdit 更像是类似浏览器的编辑器,但也许它也有帮助

  • AXEL 是一个基于文档模板创建XML创作应用程序的库。

  • The jquery.xmleditor might be what you are looking for. They offer a graphical UI for editing XML. For the text-based XML editor, they rely on the Cloud9 editor. Be aware that Cloud9 is GPL licensed.
  • LiveXMLEdit is more an explorer-like editor, but maybe it helps, too
  • AXEL is a library for creating XML authoring applications based on document templates.

这篇关于基于jquery的xml编辑器,使用xml Schema的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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