Systems and methods of validating templates

Information

  • Patent Application
  • 20070150806
  • Publication Number
    20070150806
  • Date Filed
    December 22, 2005
    20 years ago
  • Date Published
    June 28, 2007
    19 years ago
Abstract
Embodiments of the present invention provide systems and methods of validating templates. One embodiment the present invention includes a computer-implemented method validating a template comprising receiving a target language schema, receiving a placeholder schema, generating a template schema that is based on the target schema and the placeholder schema, and validating the template against the template schema. If the template conforms to the template schema and if the template is instantiated, the instantiated template will conform to the target language schema.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates a computer system including template validation software according to one embodiment of the present invention.



FIG. 2 illustrates a computer software system for validating a template according to one embodiment of the present invention.



FIG. 3 illustrates template validation according to one embodiment of the present invention.



FIG. 4 illustrates a method according to one embodiment of the present invention.



FIG. 5 is an example of a target language schema according to one embodiment of the present invention.



FIGS. 6A-E are an example of a placeholder schema according to one embodiment of the present invention.



FIG. 7 is an example of a template according to one embodiment of the present invention.


Claims
  • 1. A computer-implemented method validating a template comprising: receiving a target language schema;receiving a placeholder schema;generating a template schema that is based on the target schema and the placeholder schema; andvalidating the template against the template schema.
  • 2. The method of claim 1 wherein if the template conforms to the template schema and if the template is instantiated, the instantiated template will conform to the target language schema.
  • 3. The method of claim 1 wherein validating occurs before the template is instantiated.
  • 4. The method of claim 1 wherein the template schema is XML schema.
  • 5. The method of claim 4 wherein the XML schema is enhanced using an object constraint language.
  • 6. The method of claim 1 wherein the target language schema contains constraints, and wherein all of the constraints of the target schema are preserved in the template schema.
  • 7. The method of claim 1 wherein generating the template schema comprises transforming simple types into complex types.
  • 8. A computer system including software for validating a template, the software comprising: a schema compiler for generating a template schema based on a target language schema and a placeholder schema;a template validator for validating the template against the template schema; anda template engine for instantiating a template.
  • 9. The computer system of claim 8 wherein if the template conforms to the template schema and if the template is instantiated, the instantiated template will conform to the target schema.
  • 10. The computer system of claim 8 wherein the validating occurs before the template is instantiated.
  • 11. The computer system of claim 8 wherein the template schema is XML schema.
  • 12. The computer system of claim 11 wherein the XML schema is enhanced using an object constraint language.
  • 13. The computer system of claim 8 wherein the target language schema contains constraints, and wherein all of the constraints of the target schema are preserved in the template schema.
  • 14. The computer system of claim 8 wherein the compiler transforms simple types into complex types.
  • 15. A computer-readable medium containing instructions for controlling a computer system to perform a method validating a template, the method comprising: receiving a target language schema;receiving a placeholder schema;generating a template schema that is based on the target schema and the placeholder schema; andvalidating the template against the template schema.
  • 16. The computer-readable medium of claim 15 wherein the validating occurs before the template is instantiated.
  • 17. The computer-readable medium of claim 15 wherein the target schema contains constraints that are imposed on the target, and wherein all of the constraints of the target schema are preserved in the template schema.
  • 18. The computer-readable medium of claim 15 wherein the template schema is XML schema.
  • 19. The computer-readable medium of claim 18 wherein the XML schema is enhanced using an object constraint language.
  • 20. The computer-readable medium of claim 15 wherein the template schema generating comprises transforming simple types into complex types.