16. A non-transitory computer-readable storage media having instructions stored thereon, the instructions operable to cause a data processing apparatus to: receive a first style, the first style being a record-based style defined as a sequence of two or more contiguous style fields and based on one or more rules, each style field being so as to apply to a specified number of occurrences of a respective content unit structure, each rule being based on formatting values or content values or structure values that are associated with a respective content unit structure of at least one of the style fields of the first style; receive a second style, the second style being a record-based style defined as a sequence of two or more contiguous style fields and based on one or more rules, each style field being so as to apply to a specified number of occurrences of a respective content unit structure, each rule being based on formatting values or content values or structure values that are associated with a respective content unit structure of at least one of the style fields of the second style; apply the first style to formatted text content, the formatted text content including a result set of multiple logical records, the logical records being non-overlapping, each logical record having a number of content fields that matches the specified number of occurrences of each style field's respective content unit structure in the first style, and each logical record matching formatting values or content values or structure values according to the rules for the first style; and apply the second style to the logical records of the result set within the formatted text content that match the first style.
16. A non-transitory computer-readable storage media having instructions stored thereon, the instructions operable to cause a data processing apparatus to: receive a first style, the first style being a record-based style defined as a sequence of two or more contiguous style fields and based on one or more rules, each style field being so as to apply to a specified number of occurrences of a respective content unit structure, each rule being based on formatting values or content values or structure values that are associated with a respective content unit structure of at least one of the style fields of the first style; receive a second style, the second style being a record-based style defined as a sequence of two or more contiguous style fields and based on one or more rules, each style field being so as to apply to a specified number of occurrences of a respective content unit structure, each rule being based on formatting values or content values or structure values that are associated with a respective content unit structure of at least one of the style fields of the second style; apply the first style to formatted text content, the formatted text content including a result set of multiple logical records, the logical records being non-overlapping, each logical record having a number of content fields that matches the specified number of occurrences of each style field's respective content unit structure in the first style, and each logical record matching formatting values or content values or structure values according to the rules for the first style; and apply the second style to the logical records of the result set within the formatted text content that match the first style. 17. The non-transitory computer-readable storage media of claim 16 , wherein the instructions to apply the second style to the logical records of the result set are further operable to cause the data processing apparatus to: apply the second style only to logical records of the result set that match the second style.