Extensible markup language (XML) server pages having custom document object model (DOM) tags
    1.
    发明授权
    Extensible markup language (XML) server pages having custom document object model (DOM) tags 有权
    具有自定义文档对象模型(DOM)标签的可扩展标记语言(XML)服务器页面

    公开(公告)号:US06981212B1

    公开(公告)日:2005-12-27

    申请号:US09409598

    申请日:1999-09-30

    IPC分类号: G06F17/30 G06F15/00

    CPC分类号: G06F17/30896

    摘要: 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.

    摘要翻译: 用于服务网页的方法使用可扩展标记语言(XML)服务器页面。 首次访问页面时,将给定的平面文件解析为XML文档对象模型(DOM),并加载所需的标签库。 然后遍历DOM树,最好以深度优先,内向外的方式来定位自定义标签。 找到自定义标签后,如果标记被注册为Java对象,则会加载该对象。 然后在对象上调用一个进程方法,传递自定义标签的树节点。 然后,Java对象将检查自定义标签,并将其替换为对象,例如脚本代码。 或者,如果标签被注册为XSL样式表,样式表将与DOM一起加载并传递到XSL处理器。 处理器将模板应用于自定义标签,并使用给定的脚本代码替换它。 一旦将所有自定义标签都缩减为HTML和脚本代码,则将DOM编译为Java servlet来为客户端请求提供服务。

    Scripting language blocks to support multiple scripting languages in a single web page
    2.
    发明授权
    Scripting language blocks to support multiple scripting languages in a single web page 有权
    脚本语言块在单个网页中支持多种脚本语言

    公开(公告)号:US06732330B1

    公开(公告)日:2004-05-04

    申请号:US09409372

    申请日:1999-09-30

    IPC分类号: G06F1500

    CPC分类号: G06F9/45512 G06F17/30896

    摘要: Different scripting languages may reside side-by-side or nested within each other on the same web page. Thus, a new author may add code to the page, and he or she is not tied to any given subset of languages supported by the web server. Multiple scripting languages are supported by identifying a start and an end of each scripting language code block authored into the web page markup language. When the web page is later compiled into an XML Document Object Model (DOM) tree, the routine examines the DOM to identify any nodes that identify a given code block. Upon encountering a node that identifies a given code block, the DOM is adjusted to account for the script code within the given code block.

    摘要翻译: 不同的脚本语言可能在同一网页上并排或嵌套在一起。 因此,新作者可以向页面添加代码,并且他或她不被绑定到web服务器支持的任何给定的语言子集。 通过识别编入网页标记语言的每个脚本语言代码块的开始和结束来支持多种脚本语言。 当网页随后被编译成XML文档对象模型(DOM)树时,该例程检查DOM以识别标识给定代码块的任何节点。 在遇到识别给定代码块的节点时,调整DOM以考虑给定代码块中的脚本代码。

    Case-insensitive custom tag recognition and handling
    3.
    发明授权
    Case-insensitive custom tag recognition and handling 有权
    不区分大小写的自定义标签识别和处理

    公开(公告)号:US06675354B1

    公开(公告)日:2004-01-06

    申请号:US09442698

    申请日:1999-11-18

    IPC分类号: G06F1500

    摘要: A method for processing custom tags in a document object model (DOM) representation irrespective of the case in which the tags are authored. In an illustrative embodiment, a document object model (DOM) tree is processed to identify custom tags. Upon encountering a custom tag, an appropriate tag handler (e.g., a Java object, an XSL stylesheet, or the like) is invoked. According to the invention, a tag recognition routine is used for recognizing and handling case-insensitive custom tags. As a servlet engine is examining a tag name, if the name does not match one of the registered tags, the routine converts the name to neutral case. If the tag recognition routine recognizes the name as one of the case-insensitive tags, it converts the attributes to the appropriate case, and hands the resulting element off to a correct tag handler for processing.

    摘要翻译: 用于处理文档对象模型(DOM)表示中的自定义标签的方法,而不管标签的创建情况如何。 在说明性实施例中,处理文档对象模型(DOM)树以识别自定义标签。 在遇到自定义标签时,调用适当的标签处理程序(例如,Java对象,XSL样式表等)。 根据本发明,使用标签识别程序来识别和处理不区分大小写的自定义标签。 由于servlet引擎正在检查标签名称,如果名称与其中一个已注册的标签不匹配,则例程将名称转换为中性。 如果标签识别程序将该名称识别为不区分大小写的标签之一,则会将属性转换为适当的大小写,并将生成的元素移交到正确的标签处理程序进行处理。

    Method for processing a document object model (DOM) tree using a tagbean
    4.
    发明授权
    Method for processing a document object model (DOM) tree using a tagbean 失效
    使用tagbean处理文档对象模型(DOM)树的方法

    公开(公告)号:US06981211B1

    公开(公告)日:2005-12-27

    申请号:US09409370

    申请日:1999-09-30

    IPC分类号: G06F15/00 G06F17/30

    CPC分类号: G06F17/30961 G06F17/30914

    摘要: A method of processing a document object model (DOM) tree having at least one tag located at a given node in the tree. The tag serves as a marker that initiates the invocation of a tag handler that, in turn, performs a simple macro substitution or a more complex algorithmic reorganization and manipulation of the tree. Upon encountering the tag, given information is passed to a method. In a first embodiment, the given information is a text representation of XML in the DOM tree at the given node and any child nodes of the given node. In an alternate embodiment, the given information is the given node of the DOM tree itself. The method generates an XML string, which is then parsed into a new DOM tree having a root node. The given node and any child nodes are then replaced by the new DOM tree, with the root node of the new DOM tree being positioned at the given node in the original DOM tree. The process may then be repeated for any additional tags.

    摘要翻译: 一种处理具有位于树中的给定节点处的至少一个标签的文档对象模型(DOM)树的方法。 该标签用作启动标签处理程序调用的标记,标记处理程序又执行简单的宏替换或更复杂的算法重组和操纵树。 在遇到标签时,给定的信息被传递给一个方法。 在第一实施例中,给定信息是在给定节点的DOM树中的XML的文本表示以及给定节点的任何子节点。 在替代实施例中,给定信息是DOM树本身的给定节点。 该方法生成XML字符串,然后将其解析为具有根节点的新DOM树。 给定节点和任何子节点由新的DOM树替换,新DOM树的根节点位于原始DOM树中的给定节点。 然后可以对任何附加标签重复该过程。

    Method for verifying context between multiple related XML tags in document object model (DOM)
    5.
    发明授权
    Method for verifying context between multiple related XML tags in document object model (DOM) 失效
    用于验证文档对象模型(DOM)中的多个相关XML标签之间的上下文的方法

    公开(公告)号:US06718516B1

    公开(公告)日:2004-04-06

    申请号:US09409373

    申请日:1999-09-30

    IPC分类号: G06F1500

    摘要: A method for processing a Document Object Model (DOM) tree to verify context between multiple related XML tags. One or more of these related XML tags are custom tags. According to the invention, contextual relationships between the related XML tags are verified using the DOM itself to indicate state. In a preferred embodiment, the inventive method begins during the processing of the DOM tree with a current element being processed replacing itself with a placeholder element. The placeholder element includes attributes indicating its state. If a clean-up element does not already exist for the element being processed, the current element creates a clean-up element and adds it to the DOM, for example, as a child node to the root position. When the clean-up element is later encountered, this element scans the entire DOM for all the related tags (now placeholders) of interest. The clean-up element loads the state information from each and processes the state information accordingly. When complete, the clean-up element removes itself from the DOM.

    摘要翻译: 一种用于处理文档对象模型(DOM)树以验证多个相关XML标签之间的上下文的方法。 这些相关XML标签中的一个或多个是自定义标签。 根据本发明,使用DOM本身来验证相关XML标签之间的语境关系以指示状态。 在优选实施例中,本发明的方法在DOM树的处理期间开始,当前元素正被处理,并且用占位符元素替换自身。 占位符元素包括指示其状态的属性。 如果要处理的元素不存在清理元素,则当前元素将创建清理元素,并将其添加到DOM,例如作为根位置的子节点。 当清理元素稍后遇到时,此元素会扫描整个DOM,以获取感兴趣的所有相关标签(现占位符)。 清理元素从每个状态加载状态信息,并相应地处理状态信息。 完成后,清理元素将自动从DOM中删除。