xgen.vim


Ⅰ. 插件描述

XML-Element generator for HTML, DTD, SVG, XSLFO, XSLT and XML-Schema

Ⅱ. 基本信息

创建日期:  2002-10-22
使用用户:  1
Github星:  1
插件作者:  Wolf Sluyterman van Langeweyde

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/xgen-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/xgen-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/xgen-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/xgen.vim

Ⅳ. 文档说明

" Overview
" --------
"
" xgen.vim generates a menu for GENeration Xml-Element templates
" for different W3C-Recommondations.
"
" In addition to generation you can browse through the
" recommendation structure and have some simple but useful commands.
"
" You can find the following recommondations in the xGen-menu
" if they are enabled. Each one can be enable and disabled in
" this menu. If all an enable, the performance might be influenced.
"
" dtd:  Document Type Definitions for XML 1.0
"
" fo:   Extensible Stylesheet Language (XSL) Version 1.0
"       Recommendation 15 October 2001
"
" html: Extensible HTML version 1.0 Strict DTD
"
" svg:  SVG 1.0 2001 September 04
"
" xsd : XML Schema
"       Recommendation, 2 May 2001
"
" xsl : XSL Transformations (XSLT) Version 1.0
"       Recommendation 16 November 1999
"
"
"
"
" XML-menu structure
" --------------
"
" TEMPLATES  : to generate some of my favourite templates
" MIN        : to generate the element with all required attributes
" MAX        : to generate the element with all attributes
" ------------
" ROOTS      : shows all root-elements and generates them, including
"              the <?xml ... and the xmlns
" BROWSE     : shows all possible child element for all elements,
"              so you can analyse the structure
" ------------
" FILL       : after creation, the elements are empty with a
"              closing />. Use FILL to splitt the element
" >>         : the creation in done in the next line. Often
"              it is useful to shift the new element to the right
" <<         : to correct a shift to the left
" AUTOINDENT : normaly generation is most efficient with autoindent
"
"
" DTD-menu structure
" ------------------
"
" For DTD, only MIN, AUTOINDENT, >> and << are suported.
"
" The MIN-Structure inside the dtd.MIN, can be used in a
" comparable way. The items sould be "self explaining". Some
" specials are:
"
" ATTRIBUTE-FIXED    : CDATA FIXED
" ATTRIBUTE-IMPLIED  : CDATA IMPLIED
" ATTRIBUTE-REQUIRED : CDATA REQUIRED
" ATTRIBUTE-VALUE    : CDATA VALUE
" ATTRIBUTE-VALUE-*  : replaces " CDATA " in the for about cases
"
" DOCTYPE-EXTERNAL   : external SYSTEM DOCTYPE
" DOCTYPE-MIXED      : mixed SYSTEM DOCTYPE
" DOCTYPE-PUBLIC     : replaces " SYSTEM " to PUBLIC in the two
"                      above cases
"

添加新评论