In an embodiment, the user may use an agent, such as a consultant, to generate the schema files for the desired grammar level. [0062] To provide the more complex DTD 216 for the defined schema, a stylesheet (e.g., SchemaToDTD.xsl 208) is provided and used by transformation engine XSLT 212 to automatically generate the complex DTD (e.g., Ruleset.dtd 216) from the combined schema (e.g., MergeSchemas