Representing list definitions and instances in a markup language document

Information

  • Patent Grant
  • 7650566
  • Patent Number
    7,650,566
  • Date Filed
    Tuesday, December 9, 2003
    20 years ago
  • Date Issued
    Tuesday, January 19, 2010
    14 years ago
Abstract
An application has its own namespace or namespaces and a schema, or a set of schemas, which can be used by applications to generate and/or validate documents in a unique format. The application can uniquely define the format (and properties) of content in a document such that the document is represented in a native format. The document can be stored externally as a markup language file in accordance with the schema of the application. When the format is stored in a markup language, other applications can validate the document stored in accordance with the native format. The other applications can represent the lists in accordance to the degree to which they are aware of the unique properties of the application used to generate the document.
Description
COMPUTER PROGRAM LISTING APPENDIX

A computer listing is included in a Compact Disc appendix in the attached CD ROM (quantity of two) in IBM-PC using MS-Windows operating system, containing file Appendix.txt, created on Dec. 20, 2006, containing 20,480 bytes (Copy 1 and Copy 2) and is hereby incorporated by reference in its entirety.


BACKGROUND OF THE INVENTION

Markup Languages have attained wide popularity in recent years. One type of markup language, Extensible Markup Language (XML), is a universal language that provides a way to identify, exchange, and process various kinds of data. For example, XML is used to create documents that can be utilized by a variety of application programs. Elements of an XML file have an associated namespace and schema.


In XML, a namespace is a unique identifier for a collection of names that are used in XML documents as element types and attribute names. The name of a namespace is commonly used to uniquely identify each class of XML document. The unique namespaces differentiate markup elements that come from different sources and happen to have the same name.


XML Schemata provide a way to describe and validate data in an XML environment. A schema states what elements and attributes are used to describe content in an XML document, where each element is allowed, what types of text contents are allowed within it and which elements can appear within which other elements. The use of schemata ensures that the document is structured in a consistent manner. Schemata may be created by a user and generally supported by an associated markup language, such as XML. By using an XML editor, the user can manipulate the XML file and generate XML documents that adhere to the schema the user has created. XML documents may be created to adhere to one or more schemata.


The XML standard is considered by many as the ASCII format of the future, due to its expected pervasiveness throughout the hi-tech industry in the coming years. Recently, some word-processors have begun producing documents that are somewhat XML compatible. For example, some documents may be parsed using an application that understands XML. However, much of the functionality available in word processor documents is not currently available for XML documents.


SUMMARY OF THE INVENTION

The present invention is generally directed towards a method for representing list definitions and instances in a markup language (ML) document such as an XML document. The lists are generated in the ML document as a group of paragraphs, where the paragraph type is one of the list types defined for the document. The lists provide a method for defining a bullet or numbering style as well as providing indentation and format information for a particular list.


More particularly, the present invention relates to representing numbered and bulleted list information in ML so that applications capable of reading a given ML file format, but running in environments where the list generation information has not been installed, are able to still render the lists. The ML document may be manipulated on a server or anywhere even when the application creating the ML document is not present. List definition and instance information (i.e., properties) are saved in a markup language (ML) document without data loss, while allowing the lists to be parsed by ML-aware applications and to be read by ML programmers.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates an exemplary computing device that may be used in one exemplary embodiment of the present invention;



FIG. 2 is a block diagram illustrating an exemplary environment for practicing the present invention;



FIG. 3 illustrates an exemplary portion of an ML file that provides a definition for a numbered list that includes multiple levels;



FIG. 4 illustrates an exemplary portion of an ML file that provides a definition for a picture bulleted list; and



FIG. 5 shows an exemplary flow diagram for representing list definitions and instances in a ML document, in accordance with aspects of the invention.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

Throughout the specification and claims, the following terms take the meanings explicitly associated herein, unless the context clearly dictates otherwise.


The terms “markup language” or “ML” refer to a language for special codes within a document that specify how parts of the document are to be interpreted by an application. In a word-processor file, the markup language specifies how the text is to be formatted or laid out, whereas in a particular customer schema, the ML tends to specify the text's meaning according to that customer's wishes (e.g., customerName, address, etc). The ML is typically supported by a word-processor and may adhere to the rules of other markup languages, such as XML, while creating further rules of its own.


The term “element” refers to the basic unit of an ML document. The element may contain attributes, other elements, text, and other building blocks for an ML document.


The term “tag” refers to a command inserted in a document that delineates elements within an ML document. Each element can have no more than two tags: the start tag and the end tag. It is possible to have an empty element (with no content) in which case one tag is allowed.


The content between the tags is considered the element's “children” (or descendants). Hence, other elements embedded in the element's content are called “child elements” or “child nodes” or the element. Text embedded directly in the content of the element is considered the element's “child text nodes”. Together, the child elements and the text within an element constitute that element's “content”.


The term “attribute” refers to an additional property set to a particular value and associated with the element. Elements may have an arbitrary number of attribute settings associated with them, including none. Attributes are used to associate additional information with an element that will not contain additional elements, or be treated as a text node.


Illustrative Operating Environment


With reference to FIG. 1, one exemplary system for implementing the invention includes a computing device, such as computing device 100. In a very basic configuration, computing device 100 typically includes at least one processing unit 102 and system memory 104. Depending on the exact configuration and type of computing device, system memory 104 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. System memory 104 typically includes an operating system 105, one or more applications 106, and may include program data 107. In one embodiment, application 106 may include a word-processor application 120 that further includes lists 122. This basic configuration is illustrated in FIG. 1 by those components within dashed line 108.


Computing device 100 may have additional features or functionality. For example, computing device 100 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage 109 and non-removable storage 110. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. System memory 104, removable storage 109 and non-removable storage 110 are all examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device 100. Any such computer storage media may be part of device 100. Computing device 100 may also have input device(s) 112 such as keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. These devices are well know in the art and need not be discussed at length here.


Computing device 100 may also contain communication connections 116 that allow the device to communicate with other computing devices 118, such as over a network. Communication connection 116 is one example of communication media. Communication media may typically be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. The term computer readable media as used herein includes both storage media and communication media.


Generally, the present invention is directed at representing numbered and bulleted list definitions and instances in an ML document. The ML document may be read by applications that do not share the same schema that created the document.



FIG. 2 is a block diagram illustrating an exemplary environment for practicing the present invention. The exemplary environment shown in FIG. 2 is a word-processor environment 200 that includes word-processor 120, ML file 210, ML Schema 215, and ML validation engine 225.


In one embodiment, word-processor 120 has its own namespace or namespaces and a schema, or a set of schemas, that is defined for use with documents associated with word-processor 120. The set of tags and attributes defined by the schema for word-processor 120 define the format of a document to such an extent that it is referred to as its own native ML. Word-processor 120 internally validates ML file 210. When validated, the ML elements are examined as to whether they conform to the ML schema 215. A schema states what tags and attributes are used to describe content in an ML document, where each tag is allowed, and which tags can appear within other tags, ensuring that the documentation is structured the same way. Accordingly, ML 210 is valid when structured as set forth in arbitrary ML schema 215.


ML validation engine 225 operates similarly to other available validation engines for ML documents. ML validation engine 225 evaluates ML that is in the format of the ML validation engine 225. For example, XML elements are forwarded to an XML validation engine. In one embodiment, a greater number of validation engines may be associated with word-processor 120 for validating a greater number of ML formats.


Representing List Definitions and Instances in a Markup Language Document


The present invention generally provides a method to represent an application's numbered and bulleted list information in markup language (ML) such as XML. The lists may be parsed by applications that understand the markup other than the application that generated the ML file.


An exemplary list may be the following:

    • 1. One
    • 2. Two


In the list above, there are two items. The items are each members of the same list, and the same list style. A basic representation of the XML structure for the list includes a structure where a list that includes a particular list style is defined at the beginning of the document, and then used in the body of the document to generate the list including the list items. For example, if the list style corresponding to the list above were called “Listl”, and the Unique ID for that list were “11”, then the following document structure may result:


Document


Styles


Lists

    • ListDef
      • ID=1
    • List
      • val=1 (This matches to the ID of a list definition)
      • ilfo=11


Body

    • Paragraph (StyleName=“MsoNormal” ListLevel=“1” ListFO=“11”)
      • TextRun
        • “One”
    • Paragraph (StyleName=“MsoNormal” ListLevel=“1” ListFO=“11”)
      • TextRun
        • “Two”


As may be seen, a list item is defined according to a paragraph element that is identified as a member of a particular list defined earlier in the ML document. As is seen in the example structure, the definition of the list occurs at the top of the ML document alongside the definition for the styles used in the document. In one embodiment, the root element of the ML document may contain an element called “<w:lists>” that defines the lists used in the ML document.


Two items of the lists are defined at the top of the document. The first item is the definition of a list type. The definition of the list type identifies all the formatting and other appearance properties for the type of list. Then, for each individual list that exists in the document, a <list> tag is generated after the list definitions. The <list> tag is unique for the list that is referencing it. The <list> tag identifies which list definition it is based on, as well as the tag's ID so that the paragraphs in the document that are part of this list can reference the list properly.


In another embodiment, multi-level lists are supported such that a “lvl” element is included in the lists definition. The lvl tag contains the information for list items that appear on that level. Take the following list for example:

    • 1. One
      • a. One A
      • b. One B
    • 2. Two
      • a. Two A
        • i. Two A i


All the items in the above list are substantially the same. However, certain items on the list are on different levels. The lvl tag allows the list to define various elements for each level of the list such as the indentation of each level and the character representing each level. Most of the information for how the list looks may be contained within the various lvl tags. In one embodiment, each lvl tag includes an ilvl attribute which specifies which level is being defined.


Once each list type is defined, the different lists used within the document are defined. List overrides are used when the list items in a document are not part of the same list. An example of multiple lists may include lists such as the following:

    • 1. One
    • 2. Two
    • 3. Three


      and:
    • 1. A
    • 2. B
    • 3. C


Even though both lists look the same, they are actually separate lists. If they were the same list, then the “A” would have started at 4 (it would continue the previous one). A list override is generated to reference the same list definitions, but declares itself as being a unique list. The paragraphs in the document that are part of a list then reference the list override.


The following example list includes picture bullets:

    • custom characterThe quick brown fox jumps over the lazy dog.
      • custom characterThe quick brown fox jumps over the lazy dog.
        • The quick brown fox jumps over the lazy dog.
    • custom characterThe quick brown fox jumps over the lazy dog.
      • custom characterThe quick brown fox jumps over the lazy dog.


To implement the picture bullets in the above list, the image information for the picture bullets is stored within the ML file. In one embodiment, the image information is stored using a “<w:listPicBullet>” element that is a child of the “<w:lists>” element. The listPicBullet element includes a “pict” and an “@listPicBulletld” attribute. The pict element inlcudes the image data for the picture. The listPicBulletld attribute includes the identifier of that picture bullet. List definitions then (i.e., defined by the w:listDef tag) may reference the picture bullet by it's identifier with the <w:lvlPicBulletId> tag.



FIG. 3 illustrates an exemplary portion of an ML file that provides a definition for a numbered list that includes multiple levels, in accordance with aspects of the present invention.


The definition for the list shown includes two defined levels. It is appreciated that any number of levels may be defined. The list definition provides a variety of information about each list level used within a list, including the list level position on the page, the tab position of the list level, the justification of the list level, a value or identifier of the list level, and other information. The list definition is later used to reference each list level within the body of the ML document.



FIG. 4 illustrates an exemplary portion of an ML file that provides a definition for a picture bulleted list, in accordance with aspects of the present invention.


The definition of the list shown includes a description of a picture bullet used within a list that is present in the body of the ML file. The picture bullet use is described according to a name that is associated with descriptive binary data for that picture bullet. The list definition also includes an identifier for the picture bullet within the ML file, a style for the picture bullet, a shape identifier and other information that describes the bullet for reference later in the list that is present within the body of the ML file. It is appreciated that any number of picture bullet descriptions may be included within an ML file other than the picture bullet description exemplified in FIG. 4.



FIG. 5 shows an exemplary flow diagram for representing list definitions and instances in a ML document, in accordance with aspects of the invention. After start block 510, the process flows to block 520 where the list information within a document such as a word-processor document, is determined. The list information used within a document may include many different types of lists such as bulleted lists and numbered lists, including those that are not natively supported by later applications parsing the document. Once the list information is determined, processing proceeds to decision block 530.


At decision block 530, a determination is made whether the document includes a list that corresponds to a picture bulleted list. When the list being examined is not a picture bulleted list, processing advances to block 550. However, if the list is a picture bulleted list, processing moves to block 540.


At block 540, the “pict” element and the “listPicBulletID” attribute are included among the elements, attributes, and values to which the list properties will be mapped. The “pict” element includes the image data for the picture that comprises the bullet, and the “listPicBulletID” attribute includes the id of that picture bullet. After the “pict” element and the “listPicBulletID” attribute are included, processing continues at decision block 550.


At decision block 550, a determination is made whether the list being examined is a new list within a document that already includes a list. If the list is not a new list, but is rather the first list within the document, processing advances to block 570. However, if the list is new list within a document that already includes a list, processing continues at block 560.


At block 560, a list override is included for mapping the list properties so that the multiple lists are separated in the ML file. In one embodiment, a list override is necessary with consecutive lists within the document that are not separated by other text. In other embodiments, a list override is included between each list of the document despite intervening fields within the document. Including the list override ensures that the correct bullet or number corresponds to the correct list item when the ML file is parsed. Processing continues at block 570.


At block 570, the properties of the lists within the document are mapped into elements, attributes, and values of the ML file. The lists and the properties associated with the lists may change from page to page, section to section, chapter to chapter and the like. There may be more than one mapping, therefore, per document. Once the list properties are mapped, or written to the ML file, processing moves to block 580.


At block 580, the properties of the lists are stored in a ML document that may be read by applications that understand the ML. Once the properties are stored, processing moves to end block 590 and returns to processing other actions.


The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.

Claims
  • 1. A method for representing list information in a markup language document, comprising: at a computing device, internally representing an application document in a word-processing application, wherein the internal representation is in a non-markup language format that is native to the application and the internal representation comprises unique properties for describing lists of data within the document, wherein the unique properties are defined by the application;at the computing device, determining one or more unique properties corresponding to a list that relates to at least one section of the application document;at the computing device, mapping the determined properties of the list into at least one of a markup language element, an attribute, and/or a value; andat the computing device, storing the mapped properties of the list in the markup language document, wherein the markup language document is manipulable on a system including one of a server and another system to substantially reproduce the list without using the application that generated the markup language document.
  • 2. The method of claim 1, further comprising determining whether the list is a picture bulleted list.
  • 3. The method of claim 2, wherein a specified element and attribute are included to store the picture bullet image information and picture bullet identifier when the list is a picture bullet list.
  • 4. The method of claim 1, further comprising determining whether the list is a new list within the application document, wherein the list is a new list when the application document includes a previously presented list within the document.
  • 5. The method of claim 4, further comprising providing a list override such that the instances and definitions of the new list and the previously presented list are separated when stored in the markup language document.
  • 6. The method of claim 1, wherein mapping the properties further comprises mapping a level tag that corresponds to the level of an item within a list.
  • 7. The method of claim 6, wherein the level tag allows the list to define the indentation of a level and the character used to represent the level.
  • 8. The method of claim 1, further comprising: determining properties corresponding to an additional list that relates to at least one section of the application document;mapping the properties of the additional list into at least one of a markup language element, an attribute, and/or a value;including a list override to separate the instance of the list and the additional list; andstoring the mapped properties of the additional list in the markup language document.
  • 9. The method of claim 1, wherein the mapped properties of the list stored in the markup language document are understood by an application that understands the markup language when the list is not native to the application.
  • 10. A computer storage medium for representing list definitions and instances in a markup language document, comprising: internally representing a word-processing document in a word-processing application, wherein the internal representation is in a non-markup language format that is native to the application and the internal representation comprises unique properties for describing lists of data within the document, wherein the unique properties are defined by the application;determining one or more unique properties relating to a list used within the word-processing document;based at least in part on the determined properties, determining whether the list is a new list that follows a previously determined list;including a list override with the determined properties when the list is a new list such that the instance of the list is separated from the instance of the previously determined list;mapping the determined properties into at least one of a markup language element, an attribute, and/or a value; andstoring the mapped properties in the markup language document such that the list is substantially maintained when the markup language document is parsed by an application and the markup language document is manipulable on a system including one of a server and another system to substantially reproduce the list without using the application that generated the markup language document.
  • 11. The computer storage medium of claim 10, wherein the mapped properties of the list stored in the markup language document are understood by an application that understands the markup language when the list is not native to the application.
  • 12. The computer storage medium of claim 10, further comprising determining whether the list is a picture bulleted list.
  • 13. The computer storage medium of claim 12, wherein a specified element and attribute are included to store the picture bullet image information and picture bullet identifier when the list is a picture bullet list.
  • 14. A computer system for representing list definitions and instances in a markup language document, comprising: a processor;an application executing on the processor that is configured to: internally represent an application document in a word-processing application in a non-markup language format that is native to the application and comprising unique properties for describing lists of data within the document, wherein the unique properties are defined by the application;determine one or more unique properties relating to a list included in at least one section of the application document;map the determined properties into at least one of a markup language element, an attribute, and/or a value; andstore the mapped properties in the markup language document, wherein the markup language document is manipulable on a system including one of a server and another system to substantially reproduce the list without using the application that generated the markup language document; anda validation engine configured to validate the stored markup language document.
  • 15. The system of claim 14, wherein the properties of the list stored in the markup language document are understood by an additional application that understands the markup language when the list is not native to the additional application.
  • 16. The system of claim 14, wherein the application is further configured to determine whether the list is a picture bulleted list.
  • 17. The system of claim 16, wherein a specified element and attribute are included to store the picture bullet image information and picture bullet identifier when the list is a picture bullet list.
  • 18. The system of claim 14, wherein the application is further configured to determine whether the list is a new list within the application document, wherein the list is a new list when the application document includes another list previously presented within the document.
  • 19. The method of claim 14, wherein the application is further configured to provide a list override such that the instances and definitions of each list are separated when stored in the markup language document.
  • 20. A method for representing list information in a markup language document, comprising: at a computing device, inputting an application document that has been generated by a word-processing application that uses a non-markup language file format that is specific to the application, wherein the file format comprises unique properties of lists, wherein the unique properties are defined by the application;at the computing device, determining one or more unique properties corresponding to a list that relates to at least one section of the application document;at the computing device, mapping the properties of the list into at least one of a markup language element, an attribute, and/or a value; andat the computing device, storing the properties of the mapped list properties in the markup language document whereby applications different from the application can understand the mapped list properties stored in the markup language document manipulable on a system including one of a server and another system to substantially reproduce the list without using the application that generated the markup language document.
RELATED APPLICATIONS

This patent application is a continuation-in-part application under 35 United States Code § 120 of U.S. patent application Ser. No. 10/187,060 filed on Jun. 28, 2002, which is incorporated herein by reference. An exemplary schema in accordance with the present invention is disclosed in a file entitled Appendix.txt in a CDROM attached to an application entitled “Mixed Content Flexibility,” Ser. No. 10/726,077, filed Dec. 2, 2003, which is hereby incorporated by reference in its entirety.

US Referenced Citations (77)
Number Name Date Kind
4751740 Wright Jun 1988 A
4864501 Kucera et al. Sep 1989 A
4866777 Mulla et al. Sep 1989 A
5185818 Warnock Feb 1993 A
5295266 Hinsley et al. Mar 1994 A
5557722 DeRose et al. Sep 1996 A
5579466 Habib et al. Nov 1996 A
5586241 Bauermeister et al. Dec 1996 A
5781714 Collins et al. Jul 1998 A
5787451 Mogilevsky Jul 1998 A
5881225 Worth Mar 1999 A
5895476 Orr et al. Apr 1999 A
6023714 Hill et al. Feb 2000 A
6031989 Cordell Feb 2000 A
6044387 Angiulo et al. Mar 2000 A
6092068 Dinkelacker Jul 2000 A
6119136 Takata et al. Sep 2000 A
6141754 Choy Oct 2000 A
6182029 Friedman Jan 2001 B1
6209124 Vermeire et al. Mar 2001 B1
6230173 Ferrel et al. May 2001 B1
6233592 Schnelle et al. May 2001 B1
6249794 Raman Jun 2001 B1
6336124 Alam et al. Jan 2002 B1
6397232 Cheng-Hung et al. May 2002 B1
6507856 Chen et al. Jan 2003 B1
6507857 Yalcinalp Jan 2003 B1
6519617 Wanderski et al. Feb 2003 B1
6535896 Britton et al. Mar 2003 B2
6538673 Maslov Mar 2003 B1
6613098 Sorge et al. Sep 2003 B1
6675353 Friedman Jan 2004 B1
6697999 Breuer et al. Feb 2004 B1
6725423 Muramoto et al. Apr 2004 B1
6725426 Pavlov Apr 2004 B1
6754648 Fittges et al. Jun 2004 B1
6763500 Black et al. Jul 2004 B2
6785685 Soetarman et al. Aug 2004 B2
6799299 Li et al. Sep 2004 B1
6829570 Thambynayagam et al. Dec 2004 B1
6829745 Yassin et al. Dec 2004 B2
6845483 Carroll Jan 2005 B1
6886115 Kondoh et al. Apr 2005 B2
6918086 Rogson Jul 2005 B2
6928610 Brintzenhofe et al. Aug 2005 B2
6938204 Hind et al. Aug 2005 B1
6941510 Ozzie et al. Sep 2005 B1
6954898 Nakai et al. Oct 2005 B1
6968503 Chang et al. Nov 2005 B1
6996772 Justice et al. Feb 2006 B2
7028009 Wang et al. Apr 2006 B2
7257772 Jones et al. Aug 2007 B1
7275209 Jones et al. Sep 2007 B1
7376650 Ruhlen May 2008 B1
7389473 Sawicki et al. Jun 2008 B1
20010014900 Brauer et al. Aug 2001 A1
20010032217 Huang Oct 2001 A1
20020087702 Mori Jul 2002 A1
20020091725 Skok Jul 2002 A1
20020116420 Allam et al. Aug 2002 A1
20020124115 McLean et al. Sep 2002 A1
20020184189 Hay et al. Dec 2002 A1
20030007014 Suppan et al. Jan 2003 A1
20030018668 Britton et al. Jan 2003 A1
20030101416 McInnes et al. May 2003 A1
20030135584 Roberts et al. Jul 2003 A1
20030163784 Daniel et al. Aug 2003 A1
20030167444 Zorc Sep 2003 A1
20030231626 Chuah et al. Dec 2003 A1
20040073871 Giannetti Apr 2004 A1
20040098320 Mitsuhashi et al. May 2004 A1
20040194035 Chakraborty Sep 2004 A1
20040205553 Hall et al. Oct 2004 A1
20040210818 Jones et al. Oct 2004 A1
20050102265 Jones et al. May 2005 A1
20050108198 Jones et al. May 2005 A1
20050108278 Jones et al. May 2005 A1
Foreign Referenced Citations (1)
Number Date Country
1230566 Aug 2002 EP
Continuation in Parts (1)
Number Date Country
Parent 10187060 Jun 2002 US
Child 10731516 US