C-0001.htm


<br><font size=2 face="sans-serif">OK... I'll chime in. I may need a reset.
I thought a major premise of XHTML-P (per the charter) was &quot;content
is king&quot;. I recognize that the CSS Print Profile emphasizes an enhanced
mode which I thought was mainly aimed at photo albums etc. It now sounds
like we're getting into mandating more and more &quot;guaranteed&quot;
formatting. Where do we draw the line? Do the goals of CSS-PP need to be
restated (or have they?). How does CSS-PP stack up against XSL:FO?</font>
<br><font size=2 face="sans-serif">----------------------------------------------
<br>
Harry Lewis <br>
IBM Printing Systems <br>
---------------------------------------------- </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;BIGELOW,JIM (HP-Boise,ex1)&quot;
&lt;jim.bigelow@hp.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: owner-xp@pwg.org</font>
<p><font size=1 face="sans-serif">12/18/2002 03:38 PM</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;xp@pwg.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;RE: XP&gt; Consideration of CSS selector
support in CSS Print Profil &nbsp; &nbsp; &nbsp; &nbsp;e &nbsp;and
recommendations for support</font>
<br>
<br><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp;</font></table>
<br>
<br><font size=2><tt>Hi,<br>
<br>
First, I want to clarify that I'm recommending only the addition of E[Attr],<br>
E[Attr=val], and adjacent selectors. &nbsp;If these are too much, my fall
back<br>
position is to only add E[Attr] since this is in the Bluetooth conformance<br>
tests. &nbsp;However, I think we have a usefull set of features and that
authors<br>
can produce useful and pleasingly formatted documents without these<br>
selectors.<br>
<br>
Secondly, I'm not well versed on PWG Process, is a simple majority<br>
sufficient or should the vote for a new feature be unanimous and conducted<br>
via email?<br>
<br>
Jim Bigelow, <br>
Editor: XHTML-Print &amp; CSS Print Profile<br>
IEEE, Printer Working Group <br>
http://www.pwg.org/xhtml-print<br>
Hewlett-Packard<br>
208-396-2068<br>
jim.bigelow@hp.com &nbsp;<br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: ElliottBradshaw@oaktech.com <br>
&gt; [mailto:ElliottBradshaw@oaktech.com] <br>
&gt; Sent: Wednesday, December 18, 2002 7:36 AM<br>
&gt; To: don@lexmark.com<br>
&gt; Cc: BIGELOW,JIM (HP-Boise,ex1); owner-xp@pwg.org; xp@pwg.org<br>
&gt; Subject: Re: XP&gt; Consideration of CSS selector support in CSS <br>
&gt; Print Profile and recommendations for support<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; And, a voting deadline for each issue.<br>
&gt; <br>
&gt; If we were to say that each issue requires N positive votes <br>
&gt; (one per company, as Don says), what would the value of N be?<br>
&gt; <br>
&gt; &nbsp; E.<br>
&gt; <br>
&gt; ------------------------------------------<br>
&gt; Elliott Bradshaw<br>
&gt; Director, Software Engineering<br>
&gt; Oak Technology Imaging Group<br>
&gt; 781 638-7534<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
don@lexmark.co &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;To:
&nbsp; &nbsp; &quot;BIGELOW,JIM <br>
&gt; (HP-Boise,ex1)&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Sent by: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &lt;jim.bigelow@hp.com&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
owner-xp@pwg.o &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; xp@pwg.org &nbsp;
<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
rg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; Re: XP&gt; <br>
&gt; Consideration of CSS selector &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
support in CSS <br>
&gt; Print Profile &nbsp; &nbsp;and recommendations &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
for support &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
12/18/2002 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
09:30 AM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Jim, et al:<br>
&gt; <br>
&gt; While I suspect a &quot;compelling&quot; case can be made to <br>
&gt; incrementally add many new features/functions/capabilities, I <br>
&gt; am concerned that continuing to do this will forestall <br>
&gt; closure of the document. &nbsp;In order to stop this feature <br>
&gt; creep, I think we need ACTIVE agreement from a significant <br>
&gt; number of the participant companies (not 20 people from the <br>
&gt; same company) to stand up and say &quot;Let's add these.&quot; &nbsp;In
<br>
&gt; other words, we assume silence equals disagreement and <br>
&gt; require active participation to reach a consensus.<br>
&gt; <br>
&gt; **********************************************<br>
&gt; &nbsp;Don Wright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; don@lexmark.com<br>
&gt; <br>
&gt; &nbsp;Member, IEEE SA Standards Board<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PatCom Chair, SCC Liaison<br>
&gt; &nbsp;Member, IEEE-ISTO Board of Directors<br>
&gt; &nbsp;f.wright@ieee.org / f.wright@computer.org<br>
&gt; <br>
&gt; &nbsp;Director, Alliances &amp; Standards<br>
&gt; &nbsp;Lexmark International<br>
&gt; &nbsp;740 New Circle Rd<br>
&gt; &nbsp;Lexington, Ky 40550<br>
&gt; &nbsp;859-825-4808 (phone) 603-963-8352 (fax)<br>
&gt; **********************************************<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &quot;BIGELOW,JIM (HP-Boise,ex1)&quot; &lt;jim.bigelow@hp.com&gt;@pwg.org
on <br>
&gt; 12/17/2002 12:49:48 PM<br>
&gt; <br>
&gt; Sent by: &nbsp; &nbsp;owner-xp@pwg.org<br>
&gt; <br>
&gt; <br>
&gt; To: &nbsp; &nbsp;xp@pwg.org<br>
&gt; cc:<br>
&gt; Subject: &nbsp; &nbsp;XP&gt; Consideration of CSS selector support
in CSS <br>
&gt; Print Profile<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;and re &nbsp; &nbsp; commendations for
support<br>
&gt; <br>
&gt; <br>
&gt; Hello,<br>
&gt; <br>
&gt; The latest version of the CSS Print Profile<br>
&gt; (http://www.pwg.org/xhtml-print/HTML-Version/CSS-Print.html) <br>
&gt; list all the CSS selectors and indicates the ones that a <br>
&gt; conforming printer must support.<br>
&gt; <br>
&gt; <br>
&gt; I recommend adding attribute selectors, E[attr], and <br>
&gt; E[attr=val], and adjacent selectors to the list that <br>
&gt; conforming printer must support. &nbsp;I also give an analysis of
<br>
&gt; implementation costs of these and other selectors and pseudo <br>
&gt; classes that are not currently required of conforming printer.<br>
&gt; <br>
&gt; <br>
&gt; Selector with analysis<br>
&gt; =======================<br>
&gt; <br>
&gt; E:first-child<br>
&gt; ---------------<br>
&gt; Implementing :first-child in a system using a SAX-style <br>
&gt; parser would require tracking which child, first, second, <br>
&gt; third, etc., an element is with respect to its parent <br>
&gt; element. &nbsp;Memory requirements, at a minimum, would be a <br>
&gt; single variable. Processing requirements would be <br>
&gt; incrementing and resetting a counter, as well as, checking <br>
&gt; its value. &nbsp;See the end of this message for a use case for <br>
&gt; this selector.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; :link, :visited, :active,:hover,:focus<br>
&gt; ---------------------------------------<br>
&gt; The printed page is not a browser so none of these selectors <br>
&gt; are applicable with the possible exception of :link.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; :lang(c)<br>
&gt; ---------<br>
&gt; A conforming printer is not required to support language <br>
&gt; specific processing, so no support is required.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; E + F<br>
&gt; ------<br>
&gt; Implementing adjacent siblings in a SAX style parser requires <br>
&gt; keeping element context. &nbsp;A minimal implementation could use
<br>
&gt; a single variable, previous_element. The current element and <br>
&gt; previous_element would be used when checking adjacent sibling <br>
&gt; selectors. &nbsp;The processing and memory required doesn't seem <br>
&gt; prohibitive.<br>
&gt; <br>
&gt; Use case/rationale:<br>
&gt; The rationale for this feature is to add allow addition style <br>
&gt; beyond the automatic style such as collapsing vertical <br>
&gt; margins to adjacent elements. A designer could also adjust <br>
&gt; styles so that adjacent presentation elements blend well in <br>
&gt; the page's layout.<br>
&gt; <br>
&gt; <br>
&gt; E[foo]<br>
&gt; ---------<br>
&gt; This is the simplest kind of attribute selector, and is a <br>
&gt; generalization of the class and id selectors. No more printer <br>
&gt; resources are required for attribute selectors than for class <br>
&gt; and id selectors. &nbsp;The printer must have already processed <br>
&gt; and currently be ready to act on an element's attributes, as <br>
&gt; well as, be maintaining a css document tree (a stack at a <br>
&gt; minimum) to look up the properties that apply when processing <br>
&gt; this selector. Adding a search by attribute shouldn't add a <br>
&gt; significant burden on printer memory and only a slight <br>
&gt; increase on code size and complexity.<br>
&gt; <br>
&gt; Use case/rationale:<br>
&gt; This would allow style rules based on attribute. &nbsp;For <br>
&gt; example, style rules could be applied to option elements that <br>
&gt; are selected or have a value. This eases the burden on the <br>
&gt; document authoring application that would otherwise have to <br>
&gt; the class attribute.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; E[attr=val], E[attr~=val],<br>
&gt; ----------------------------------------------------<br>
&gt; These attribute selectors allow for selection based on the <br>
&gt; value of the attribute. &nbsp;No more storage is required than for
<br>
&gt; the simplest attribute selector, however, more processing <br>
&gt; would be required to check the value.<br>
&gt; <br>
&gt; Use case/rationale:<br>
&gt; This would allow application of properties is situation such <br>
&gt; as specific set of properties for when xml:space is set to <br>
&gt; preserve. Another possibility is text-indent could only be <br>
&gt; applied when the align attribute is set to &quot;left&quot;. Also
<br>
&gt; different style could be applied to the content of the input <br>
&gt; element based on its type: radio, checked, text, etc.. &nbsp;All <br>
&gt; these would be difficult to do with only the classid selector.<br>
&gt; <br>
&gt; <br>
&gt; E[lang|=&quot;en&quot;]<br>
&gt; --------------<br>
&gt; Since language specific processing is not required, neither <br>
&gt; would support for this selector.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; :first-line<br>
&gt; ------------<br>
&gt; Implementing :first-line would require a printer to adjust <br>
&gt; the styles of the first line box in the relevant element. <br>
&gt; Memory would have to be allocated to track line boxes and <br>
&gt; know which one is the first. Extra processing would occur for <br>
&gt; each element containing line boxes to check if the style <br>
&gt; information must be updated for the first line box.<br>
&gt; <br>
&gt; Use case/rationale<br>
&gt; The rationale for this feature is to add allow addition style <br>
&gt; beyond the automatic style such as collapsing vertical <br>
&gt; margins to adjacent elements. The first line of a paragraph <br>
&gt; or div could be set off from the remainder of the content.<br>
&gt; <br>
&gt; <br>
&gt; :first-letter<br>
&gt; --------------<br>
&gt; Implementing :first-letter would involve removing the first <br>
&gt; character from the first line box (resources would have to be <br>
&gt; used to determine the first character of the first line box). <br>
&gt; In place of the first character, the printer would have to <br>
&gt; create a construct with a width and height from style <br>
&gt; properties and containing the character. The construct would <br>
&gt; be in the normal flow but the remainder of the content would <br>
&gt; have to flow around it since it may be taller than a single <br>
&gt; line and wider than a single character.<br>
&gt; <br>
&gt; <br>
&gt; Use case/rationale<br>
&gt; The feature can be used to create a &quot;drop cap&quot;<br>
&gt; (http://www.w3.org/TR/REC-CSS2/selector.html#first-letter) <br>
&gt; that is where the first letter is enlarged and set into the paragraph.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; :before, :after<br>
&gt; ----------------<br>
&gt; These constructs require the construction of content boxes <br>
&gt; within the normal flow of the document, as opposed to the box <br>
&gt; for list item numbers or bullets which are positioned <br>
&gt; relative to the li's containing box. &nbsp;Resources similar but <br>
&gt; more general than those of list-item numbering boxes are <br>
&gt; required. This would not cause the movement of previously <br>
&gt; placed content boxes.<br>
&gt; <br>
&gt; Use case/rationale<br>
&gt; This feature would allow the automatic insertion of text.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; :left, :right<br>
&gt; -------------<br>
&gt; These pseudo-classes were explicitly left out of the 0.95 <br>
&gt; version of the XHTML-Print specification since :first is <br>
&gt; mentioned on page 20, but not :left and :right.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Jim Bigelow, Editor<br>
&gt; Hewlett-Packard<br>
&gt; 208-396-2068<br>
&gt; jim.bigelow@hp.com<br>
&gt; <br>
&gt; <br>
&gt; Use case for :first-child<br>
&gt; ==========================<br>
&gt; &quot;Think of the following scenario. We have each chapter of a <br>
&gt; book as a web page. Where the chapter is divided into <br>
&gt; sections, we have created a div. Within these divs we have <br>
&gt; the content of our chapter in paragraphs. Commonly, the first <br>
&gt; paragraph of a section appears differently from the remainder <br>
&gt; of the paragraphs of the section. With CSS1, we could add a <br>
&gt; special class, say first-paragraph and mark up each of the <br>
&gt; first paragraphs in the HTML using this class. With CSS2, we <br>
&gt; can use first child selectors to save us the trouble. This <br>
&gt; also means if the chapter is later edited, to remove certain <br>
&gt; paragraphs, or rearrange their order, we needn't re-edit the <br>
&gt; source of the HTML. Further, by marking up each first <br>
&gt; paragraph as being of class first-paragraph, we are subtly <br>
&gt; introducing appearance into our HTML, which as we have seen <br>
&gt; is to be avoided.&quot; From <br>
&gt; http://www.westciv.com/style_master/academy/css_tutorial/selec<br>
tors/first_chi<br>
<br>
<br>
ld_selectors.html<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</tt></font>
<br>