Return-Path: Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 99567 invoked from network); 26 Jun 2002 08:04:18 -0000 Received: from relay.flagship.ru (213.221.9.5) by 209.66.108.5 with SMTP; 26 Jun 2002 08:04:18 -0000 Received: from POSTMAN.flagship.ru (postman.flagship.ru [213.221.9.130]) by relay.flagship.ru (8.11.4/8.11.4) with ESMTP id g5Q84C996725 for ; Wed, 26 Jun 2002 12:04:12 +0400 (MSD) Received: by POSTMAN.flagship.ru with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Jun 2002 12:05:27 +0400 Message-ID: From: Piroumian Konstantin To: "'forrest-dev@xml.apache.org'" Subject: RE: [DTD] List attributes Date: Wed, 26 Jun 2002 12:05:27 +0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="KOI8-R" X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N > From: J.Pietschmann [mailto:j3322ptm@yahoo.de] > Piroumian Konstantin wrote: > >>I can see a point when you might need a *different* graphic... > > I think that in this case you should need to use an 'icon' > element instead > > of the list bullet. Or, as I've proposed once, use 'id's > and have special > > CSS styles to format your items uniquely. > > Would you care to comment about the following issues > with your approach(es): > I suppose you mean to use >

some stuff. If you meant the bullet by "different" graphics then the second option should fit the needs. See below: > > In the second case > - Does this mean the graphics designer has to create > an class="{id}" for each element which has an id? If so, > how would the graphics designer get his classes used? I don't quite understand what do you mean by class="{id}". The only syntax (that I know) of CSS for elements with 'id's is like this: #oneItem { list-style-image: url('images/one.gif') } #twoItem { list-style-image: url('images/two.gif') } And have a list like this in content:

  • This is the item 'One'
  • This is the item 'Two'
This way you indicate uniqueness of your list items using the most appropriate thing for this - an 'id'. The graphics designer, of course, should create according styles for them. But, note, that this is applicable either to the case when you need unique styling for items or unique styling for the whole list, e.g.: #outerList { padding: 10pt; list-style-type: decimal } #innerList { padding: 20pt; list-style-type: roman } And this:
    • ...
> How should clashes with classes defined by the desinger > avoided? Mangling the id implies the class id in the CSS > has to be mangled the same way, which ought to imply > parsing the CSS. The 'id' is not the class id, it's the element 'id' and it's intention is to differentiate a particular item from the others, isn't it? Then, if you change the 'id' of your item this means that the item is not the same, so the CSS style for that element should be also changed. > - How will the CSS be put into the source document and > how will it get into the formatted result? This is the question that I asked the list a while ago, but the answer was: it should be avoided or something like that. > - How should PDF generation handle the CSS definitions? Have no idea yet. I should learn more about PDF generation first. Suggestions are welcome. Another option is the customize the XSLT stylesheet and extend the syntax of the document DTD for specific needs. I've done so for i18n samples in Cocoon. The problem was similar to this: I needed a menu with flags near the items indicating the country for the locale. I've simply added an 'icon' attribute to then changed the stylesheet to render it as needed. Result of this you can see in C2.1 (/samples/i18n/) or here: http://kot-p.hotbox.ru/projects/cocoon/simple.html Konstantin > > Regards > J.Pietschmann >