Replying to the list.
I have comments/questions about CSL proper, and some about your specific
modeling choices for the style. Note: I’m pretty exhausted and not
thinking too clearly, but will just send these anyway just to keep
things moving. Consider this rather stream-of-consciousness …
Simon Kornblith wrote:
I have a parser that is currently capable of parsing the following into
what appears to be proper APA style, at least for the bibliography. Let
me know what you think.
First this isn’t based on my draft schema, since I don’t use “field.”
Beyond that …
<name and="symbol" initialize-with="." delimiter=", "/>
I don’t mean to backtrack on the “option” question, but if we’re going
to be consistent, wouldn’t the above be:
<option name="and" value="symbol"/>
…?
Do we want to do that? Or switch back to all attributes? Does
consistency matter?
Also, do we need the separate name element?
<label form="short" prefix=", " text-transform="capitalize"
suffix=“.”/>
Just noting another mild inconsistency. It might be nice given the
now-list nature of the variable attribute to be able to do:
… where the attribute value is understood as an ordered list, though
I’m not sure it’s possible (given need for choose among others; wonder,
though, if a choose itself could be a macro?).
</substitute> </agent> </macro> <macro name="author-short"> <agent field="author" form="short" and="symbol" delimiter=", "> <name/> <substitute> <agent field="editor"/> <agent field="translator"/> <choose> <if type="book"> <text field="title" form="short"
font-style=“italic”/>
So what do you think about this event thing then? Does it work, or do
need to tweak this?
<group prefix=", "> <text term-name="from" suffix=" "/> <text field="URL"/> </group> </group> </macro> <macro name="title"> <choose> <if type="book"> <text field="title" font-style="italic"/> </if>
Here’s where I worry a little. In your modeling, you’re tying formatting
exclusively to type.
So the question is, do we retain the inheritance schema, where book and
article are understood as structural fallbacks?
If not, then we definitely need to avoid relying on type too much in the
styles, because it will fail in a lot of cases. Even if we keep it we
might want to be careful with using type too much.
Think more:
I think that’s it for now.
Bruce>