Extensible markup language (XML) server pages having custom document object model (DOM) tags
First Claim
1. A method for serving a web page, comprising the steps of:
- registering a set of custom tags in a tag library, wherein the tag library contains one or more elements defining custom tags, wherein an element defining a custom tag contains an attribute for a tag handler that processes an instance of the custom tag;
processing a given file into XML compliant code;
translating the XML compliant code into an object model representation having at least one custom tag;
processing the object model representation to generate executable code; and
invoking the executable code to generate the web page.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for serving a web page uses eXtensible Markup Language (XML) server pages. The first time a page is accessed, a given flat file is parsed into an XML Document Object Model (DOM), and required tag libraries are loaded. The DOM tree is then traversed, preferably in a depth-first, inside-out manner to locate custom tags. Upon locating a custom tag, if the tag is registered as a Java object, the object is loaded. A process method is then called on the object, passing the custom tag'"'"'s tree node. The Java object then examines the custom tag and replaces it with an object, e.g., script code. Alternatively, if the tag is registered as an XSL stylesheet, the stylesheet is loaded and passed, together with the DOM, to an XSL processor. The processor applies the template to the custom tag and replaces it with given script code. Once all custom tags are reduced to HTML and script code, the DOM is compiled into a Java servlet to service the client request.
-
Citations
21 Claims
-
1. A method for serving a web page, comprising the steps of:
-
registering a set of custom tags in a tag library, wherein the tag library contains one or more elements defining custom tags, wherein an element defining a custom tag contains an attribute for a tag handler that processes an instance of the custom tag; processing a given file into XML compliant code; translating the XML compliant code into an object model representation having at least one custom tag; processing the object model representation to generate executable code; and invoking the executable code to generate the web page. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method of serving a web page, comprising the steps of:
-
registering a set of custom tags in a tag library, wherein the tag library contains one or more elements defining custom tags, wherein an element defining a custom tag contains an attribute for a tag handler that processes an instance of the custom tag; upon a given occurrence, processing a flat file into XML compliant code; translating the XML compliant code into a document object model having a subset of the set of custom tags; processing the document object model to generate a servlet; compiling the servlet into executable code; and invoking the executable code to generate the web page. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A computer program product in a computer-readable medium for managing the serving of a web page from a server, comprising:
-
means for registering a set of custom tags in a tag library, wherein the tag library contains one or more elements defining custom tags, wherein an element defining a custom tag contains an attribute for a tag handler that processes an instance of the custom tag; means operative upon a given occurrence for processing a flat file into XML compliant code; means for translating the XML compliant code into a document object model having a set of custom tags; and means for processing the document object model to generate servlet code that may be compiled and invoked to generate the web page. - View Dependent Claims (17, 18, 19, 20)
-
-
21. A server, comprising:
-
a processor; an operating system; a server program; a registry of custom tags containing one or more elements defining custom tags, wherein an element defining a custom tag contains an attribute for a tag handler that processes an instance of the custom tag; means operative upon a given occurrence for processing a flat file into XML compliant code; means for translating the XML compliant code into a document object model having a set of custom tags; means for processing the document object model to generate servlet code; means for compiling and class loading the servlet code; and means for invoking the servlet code to generate the web page.
-
Specification