class attribute

Further to the discussion of class names and bibliography formatting,
I have put up a sample document that illustrates the way CSL markup
could map through to named classes in HTML output. The output uses
the following classes:

– csl-bib-body (implicit in all output)
– csl-entry (implicit in all output)
– csl-entry-heading (used by the AAA style)
– csl-left-label (used by second-field-align type styles)
– csl-item (used by second-field-align type styles).

Here is the page:

gsl-nagoya-u.net - This website is for sale! - gsl nagoya u Resources and Information.

This is awesome!

However …

The page shows the CSL that generates the HTML output markup in the
current revision of citeproc-js. As the
“actually-the-same-as-csl-entry” style class shows, some of the
manipulations require a change in the CSS parameters (and so cannot be
smoothly illustrated in a single document with a single CSS header).
The bibliography would be delivered as a two-item list, the first a
bundle of parameters, the second the formatted bibliography string.
The calling application would assemble the style header using the
supplied parameters, so that the size of indents and whatnot are
correct for the content.

Anyway, this is all running. All that would be required to firm it up
is the retain the class attribute, and inclusion of the class names
and the processor-supplied formatting parameters in the CSL
documentation somewhere.

At least that’s all I can think of; will look forward to reactions and views.

As I mentioned on the ticket you posted yesterday, I’m getting
overwhelmed. I can’t follow all these threads (in part because of
other obligations).

Fully understand. It’s good that things are in the tracker.

I think one way to address this is, rather than suggesting things in
fairly general terms, you propose actual spec text. I, for example,
don’t know what the class names mean. So take a shot at explaining
them formally.

Very good. we’ll try to reduce this to a concrete patch and text for
the schema.

I also don’t know why we need this; why is this any different than
using block and inline block? I realize it may well be, but I just
don’t have the cycles to figure it out myself ATM.

Finally, I’ll just observe that using group in many of your examples
isn’t strictly necessary.

I’ll try to shrink things down. Thanks.

More soon …
Frank