Ah, I see. The issue is that I take into account the 3 root elements as the
possible substitutes, and the third one is the `<choose>` element. It's similar
to having e.g. a `<group>` element. In theory, we could set the rule that only
a `<group>` element can be used to group element together, and otherwise each
individual element should be considered a separate option. But it makes the
implementation less natural. I also think it makes the reading of the CSL
confusing, as in all the other CSL files, 2 sibling elements mean the 2
elements are next to each other. The `<substitute>` element is the only place
where that's not true, and transfering that property to descendants of the XML
tree can be confusing.
In other words, I think the following is less ambiguous, and is consistent with
patterns used in the rest of the CSL files (though more verbose, of course):
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="report">
<choose>
<if variable="publisher">
<text variable="publisher"/>
</if>
<else>
<text variable="title" form="short" font-style="italic"/>
</else>
</choose>
</if>
<else-if type="bill book graphic legal_case legislation
motion_picture song" match="any">
<text variable="title" form="short" font-style="italic"/>
</else-if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
Now, I am open to discussion, and in particular, ready to follow the rules
already implemented by the other processors if that's the way it's been done.
The same pattern is used in many of the styles (derived from APA), and I am
ready to change them all myself, of course :-)
Charles
On Oct 9, 2012, at 4:07 PM, Sebastian Karcher <[email protected]>
wrote:
> I'm confused - aren't these in cs:substitute?
> When I wrote this, my expectation when I wrote this was that this would first
> go to publisher and if there is no publisher to title, but never print both.
> Did I misunderstand the specs there?
>
> On Tue, Oct 9, 2012 at 5:10 AM, Rintze Zelle <[email protected]> wrote:
> On Tue, Oct 9, 2012 at 5:55 AM, Charles Parnot <[email protected]>
> wrote:
> > <if type="report">
> > <text variable="publisher"/>
> > <text variable="title" form="short" font-style="italic"/>
> > </if>
>
> > - do not put any space: the style is actually incorrect
>
> My vote is for this one. I would not expect the style to include a
> space between the two variables, and this is most probably incorrect
> for APA.
>
> Rintze
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> xbiblio-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>
>
>
> --
> ------
> Sebastian Karcher
> Ph.D. Candidate
> Department of Political Science
> Northwestern University
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev_______________________________________________
> xbiblio-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
--
Charles Parnot
[email protected]
twitter: @cparnot
http://mekentosj.com
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel