out.write("// Licensed under the Apache Licence Version 2.0\n");
out.write("// Autogenerated at " + currentDate + "\n");
out.write("// @overrides window\n");
out.write("// @provides html4\n");
Block node = generateJavascriptDefinitions(schema);
RenderContext rc = new RenderContext(node.makeRenderer(out, null))
.withPropertyNameQuotingMode(
PropertyNameQuotingMode.PRESERVE_QUOTES);
for (Statement s : node.children()) {
s.render(rc);
if (!s.isTerminal()) { rc.getOut().consume(";"); }
}
rc.getOut().noMoreTokens();
out.write("\n");
out.write("// exports for Closure Compiler\n");
out.write("html4['ATTRIBS'] = html4.ATTRIBS;\n");
out.write("html4['ELEMENTS'] = html4.ELEMENTS;\n");
out.write("html4['URIEFFECTS'] = html4.URIEFFECTS;\n");