Declarative mechanism for defining a hierarchy of objects
    1.
    发明授权
    Declarative mechanism for defining a hierarchy of objects 有权
    用于定义对象层次结构的声明机制

    公开(公告)号:US07464329B2

    公开(公告)日:2008-12-09

    申请号:US11351649

    申请日:2006-02-10

    IPC分类号: G06F17/00

    CPC分类号: G06F9/4493 G06F9/451

    摘要: Described is a method and data structure that enables an object to be specified declaratively within a markup document. The markup document may be XML-based. In accordance with the invention, the object is written based on a mapping. The mapping includes a URL attribute for defining a location for a definition file having assemblies and namespaces where classes are specified. The class name is mapped to the markup document as a tag name. Properties and events of a class are mapped to attributes of the tag associated with the class. The method further includes a method to parse the markup language to create a hierarchy of objects. Attributes that do not map directly to a class are defined with a definition tag. The definition tag is also used to add programming code to a page.

    摘要翻译: 描述了一种使得能够在标记文档内声明性地指定对象的方法和数据结构。 标记文档可能是基于XML的。 根据本发明,基于映射来写入对象。 该映射包括用于定义具有指定类的组件和命名空间的定义文件的位置的URL属性。 类名称作为标记名映射到标记文档。 类的属性和事件被映射到与类相关联的标签的属性。 该方法还包括解析标记语言以创建对象层次的方法。 不直接映射到类的属性用定义标签定义。 定义标签也用于向页面添加编程代码。

    Declarative mechanism for defining a hierarchy of objects

    公开(公告)号:US07331014B2

    公开(公告)日:2008-02-12

    申请号:US10439505

    申请日:2003-05-16

    IPC分类号: G06F15/00

    CPC分类号: G06F9/4493 G06F9/451

    摘要: Described is a method and data structure that enables an object to be specified declaratively within a markup document. The markup document may be XML-based. In accordance with the invention, the object is written based on a mapping. The mapping includes a URL attribute for defining a location for a definition file having assemblies and namespaces where classes are specified. The class name is mapped to the markup document as a tag name. Properties and events of a class are mapped to attributes of the tag associated with the class. The method further includes a method to parse the markup language to create a hierarchy of objects. Attributes that do not map directly to a class are defined with a definition tag. The definition tag is also used to add programming code to a page.

    Method for synchronously binding an external behavior to a web page element
    3.
    发明授权
    Method for synchronously binding an external behavior to a web page element 有权
    将外部行为同步绑定到网页元素的方法

    公开(公告)号:US08627198B2

    公开(公告)日:2014-01-07

    申请号:US12130754

    申请日:2008-05-30

    IPC分类号: G06F17/27

    摘要: A new form of DHTML behaviors, called ˜Element Behaviors,” wherein a behavior component is bound to an HTML element, and not just attached to the element as with attached behaviors. A special processing instruction is used to import the Element Behavior into a Web page. Upon parsing the Web page, the Element Behavior is initialized as soon as it has been downloaded and parsed. This immediate initialization makes the Element Behavior declaratively available to bind synchronously to the element(s) it is modifying. A viewLink is a feature of Element Behaviors that permits encapsulation of a behavior component file (e.g., an HTC file) so that the structure of the HTC file is transparent to a Web page (˜primary document”) to which the HTC file is linked, but the content of the HTC file may be displayed in the primary document. The viewLink provides a pointer to the content in the encapsulated HTC file, and renders that content in the primary document, without incorporating the elements of the encapsulated HTC file into the primary document structure.

    摘要翻译: 一种新形式的DHTML行为,称为“元素行为”,其中行为组件绑定到HTML元素,而不仅仅是附加到元素上,与附加的行为一样。特殊的处理指令用于将元素行为导入到Web中 页面解析Web页面后,元素行为将在下载和解析后立即被初始化,这种立即初始化使得元素行为声明性地可用于与要修改的元素同步绑定。viewLink是一个功能 的元素行为,允许封装行为组件文件(例如,HTC文件),以便HTC文件的结构对于连接HTC文件的网页(〜主要文档“)是透明的,但内容 HTC文件可能会显示在主文档中。 viewLink提供了指向封装的HTC文件中的内容的指针,并在主文档中呈现该内容,而不将封装的HTC文件的元素合并到主文档结构中。

    System and method for compiling markup files
    5.
    发明授权
    System and method for compiling markup files 有权
    用于编译标记文件的系统和方法

    公开(公告)号:US07725884B2

    公开(公告)日:2010-05-25

    申请号:US10715136

    申请日:2003-11-18

    IPC分类号: G06F9/45

    CPC分类号: G06F8/427 G06F8/41

    摘要: The present invention is directed to a method and system for compiling a markup language file into an executable application or library dll. The system may also compile a code-behind file associated with the markup language file. The compiling system may include a parser for parsing the markup language file and providing the compiling system with detailed token information to the compiling system. This token information could be user code snippets or non-code token information such as tags, properties or events in the markup. The compiling system may also include a binary file generator for generating a binary file from the non-code token information, wherein the binary file contains one record for each non-code token. Additionally, the system may include a code generator for generating a language-independent tree of code expressions based on the token information, wherein the code expressions represent the markup language file as a class. A compiler may compile the binary files and code files to create an executable application.

    摘要翻译: 本发明涉及一种用于将标记语言文件编译成可执行应用程序或库DLL的方法和系统。 系统还可以编译与标记语言文件相关联的代码隐藏文件。 编译系统可以包括用于解析标记语言文件的解析器,并向编译系统提供详细的令牌信息给编译系统。 该令牌信息可以是标记中的用户代码片段或非代码令牌信息,例如标签,属性或事件。 编译系统还可以包括用于从非代码令牌信息生成二进制文件的二进制文件生成器,其中二进制文件包含每个非代码令牌的一个记录。 另外,系统可以包括代码生成器,用于基于令牌信息来生成与语言无关的代码表达树,其中代码表达式将标记语言文件表示为类。 编译器可以编译二进制文件和代码文件来创建可执行应用程序。

    System and method for declaring a resource within a markup document
    6.
    发明授权
    System and method for declaring a resource within a markup document 有权
    用于在标记文档中声明资源的系统和方法

    公开(公告)号:US07418659B2

    公开(公告)日:2008-08-26

    申请号:US10377582

    申请日:2003-02-28

    IPC分类号: G06F15/00 G06F17/00

    CPC分类号: G06F8/44 G06F9/44521

    摘要: Described is a system and method for declaring a resource element in markup that is intended to be instantiated lazily only upon use at run-time rather than always at markup load time. In one embodiment, the invention provides a parent resources tag that encloses resource elements that may be any type of markup element. On compile, a specially prepared compiler/parser identifies the Resource tag and creates definitional information sufficient to describe the resource elements in such a manner that the resource elements are defined but not created at run-time when the markup is first loaded, and are created only upon use at run-time. A resource may be defined to be shared or non-shared. If shared, the resource is instantiated only once and that same instance is handed out each time the resource is accessed. If non-shared, a new instance of the resource is always created and handed out on each access of the resource.

    摘要翻译: 描述了一种用于在标记中声明资源元素的系统和方法,该资源元素仅在运行时使用而不是总是在加载加载时才被懒地实例化。 在一个实施例中,本发明提供了包含可以是任何类型的标记元素的资源元素的父资源标签。 在编译时,专门编写的编译器/解析器标识资源标签,并创建足够的描述资源元素的定义信息,方式是定义资源元素,但是在首次加载标记时在运行时不创建资源元素,并创建 仅在运行时使用。 可以将资源定义为共享或非共享。 如果共享,则资源仅被实例化一次,并且每次访问资源时都会发送相同的实例。 如果不共享,则始终创建资源的新实例,并在资源的每次访问中发出。

    System and method for defining and using subclasses declaratively within markup
    7.
    发明授权
    System and method for defining and using subclasses declaratively within markup 有权
    用于在标记中声明性地定义和使用子类的系统和方法

    公开(公告)号:US07120618B2

    公开(公告)日:2006-10-10

    申请号:US10377313

    申请日:2003-02-28

    IPC分类号: G06F17/00 G06N5/00

    摘要: Described is a system, method, and data structure that enables an executable assembly associated with a subclass to be generated from a subclass definition within a markup document. In accordance with the invention, the subclass definition is written based on a schema. The schema may be XML-based. The schema includes a subclass tag for defining a name for the subclass. The name is associated with a type for an object that is instantiated when the executable assembly executes. The schema further includes one or more hints, such as for specifying a programming language to compile the subclass definition, for specifying a superclass from which the subclass derives, for specifying actions to perform when the object becomes instantiated, for creating an event definition and event handler for the subclass, and for specifying a property that becomes a member within the object when the object is instantiated.

    摘要翻译: 描述了一种系统,方法和数据结构,其使得能够从标记文档中的子类定义生成与子类相关联的可执行程序集。 根据本发明,子类定义是基于模式编写的。 该模式可能是基于XML的。 该模式包括用于定义子类名称的子类标签。 该名称与可执行程序集执行时实例化的对象的类型相关联。 该模式还包括一个或多个提示,例如用于指定用于编制子类定义的编程语言,用于指定子类派生的超类,用于指定在实例化对象时执行的动作,以创建事件定义和事件 处理程序,用于指定当对象被实例化时成为对象中成员的属性。

    Methods and systems for preserving unknown markup in a strongly typed environment
    8.
    发明授权
    Methods and systems for preserving unknown markup in a strongly typed environment 有权
    在强类型环境中保存未知标记的方法和系统

    公开(公告)号:US07559020B2

    公开(公告)日:2009-07-07

    申请号:US11026341

    申请日:2004-12-30

    IPC分类号: G06F17/30 G06F17/15

    CPC分类号: G06F17/2247

    摘要: Methods and systems for preserving unknown markup in a strongly typed environment are described. In but one embodiment, XML-based markup that may contain XML-based elements that are both known and unknown is received. A strongly typed tree that is associated with the known XML-based elements is instantiated and a weakly typed tree that is associated with both the XML-based known and unknown elements is instantiated. The strongly and the weakly typed trees are then correlated in a manner that preserves the unknown XML-based elements.

    摘要翻译: 描述了在强类型环境中保留未知标记的方法和系统。 在一个实施例中,接收可能包含已知和未知的基于XML的元素的基于XML的标记。 与已知的基于XML的元素相关联的强类型树被实例化,并且与基于XML的已知和未知元素相关联的弱类型的树被实例化。 然后,以保留未知的基于XML的元素的方式将强类型和弱类型的树相关联。

    METHOD FOR SYNCHRONOUSLY BINDING AN EXTERNAL BEHAVIOR TO A WEB PAGE ELEMENT
    10.
    发明申请
    METHOD FOR SYNCHRONOUSLY BINDING AN EXTERNAL BEHAVIOR TO A WEB PAGE ELEMENT 有权
    将外部行为同步绑定到网页元素的方法

    公开(公告)号:US20080229189A1

    公开(公告)日:2008-09-18

    申请号:US12130754

    申请日:2008-05-30

    IPC分类号: G06F17/27

    摘要: A new form of DHTML behaviors, called ˜Element Behaviors,” wherein a behavior component is bound to an HTML element, and not just attached to the element as with attached behaviors. A special processing instruction is used to import the Element Behavior into a Web page. Upon parsing the Web page, the Element Behavior is initialized as soon as it has been downloaded and parsed. This immediate initialization makes the Element Behavior declaratively available to bind synchronously to the element(s) it is modifying. A viewLink is a feature of Element Behaviors that permits encapsulation of a behavior component file (e.g., an HTC file) so that the structure of the HTC file is transparent to a Web page (˜primary document”) to which the HTC file is linked, but the content of the HTC file may be displayed in the primary document. The viewLink provides a pointer to the content in the encapsulated HTC file, and renders that content in the primary document, without incorporating the elements of the encapsulated HTC file into the primary document structure.

    摘要翻译: 一种新形式的DHTML行为,称为“元素行为”,其中行为组件绑定到HTML元素,而不仅仅是附加到元素上,与附加的行为一样。特殊的处理指令用于将元素行为导入到Web中 页面解析Web页面后,元素行为将在下载和解析后立即被初始化,这种立即初始化使得元素行为声明性地可用于与正在修改的元素同步绑定。viewLink是一个功能 的元素行为,允许封装行为组件文件(例如,HTC文件),以便HTC文件的结构对于连接HTC文件的网页(〜主要文档“)是透明的,但内容 HTC文件可能会显示在主文档中。 viewLink提供了指向封装的HTC文件中的内容的指针,并在主文档中呈现该内容,而不将封装的HTC文件的元素合并到主文档结构中。