sponsor Vim development Vim logo Vim Book Ad

xgen.vim : XML-Element generator for HTML, DTD, SVG, XSLFO, XSLT and XML-Schema

 script karma  Rating 29/13, Downloaded by 2688  Comments, bugs, improvements  Vim wiki

created by
Wolf Sluyterman van Langeweyde
 
script type
utility
 
description
" 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
"
 
install details
Just :source xgen.vim an you'll receive the xGen Menu.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xgen.zip 2.0.1 2003-06-18 6.0 Wolf Sluyterman van Langeweyde Bugfix for DTD EMPTY
xgen.zip 2.0 2003-05-18 6.0 Wolf Sluyterman van Langeweyde New featues
HTML
SVG
DTD
User controled disable and enable to increase performance.
xgen.zip 1.0 2002-10-22 6.0 Wolf Sluyterman van Langeweyde Initial upload
ip used for rating: 3.135.185.194

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github