See the original XML autocomplete demo on which this example was based.
This demo was created by running xsd2codemirror
on the schema-for-xslt20.xsd file
(I've modified this file slightly to get it to run, the original can be found here www.w3.org/2007/schema-for-xslt20.xsd)
Command used to generate xslt2.json:
xsd2codemirror.exe -prefix xsl http://www.w3.org/1999/XSL/Transform "C:\...\schema-for-xslt20.xsd" > xslt2.json
Press ctrl-space, or type a '<' character to activate autocompletion. This demo defines a simple schema that guides completion. The schema can be customized—see the manual.
Development of the xml-hint
addon was kindly
sponsored
by www.xperiment.mobi.