Added generated language option and renamed a few things.
Removed redundant rdf:type element.
Replaced vocabulary values to resources instead of string literals.
Added encloseIntoCdata().
Commented out language attribute  for  generated code.
Added indentation for lookup list.