Need Explanation of some terms to help me in more understanding

I have developed interest in styles creation. Getting to understand it.However there are some terms I need you out there to throw more light in explanation.
For example the meaning of the following
(1)
<choose>
<if type="book chapter article-journal" match="none">
<date variable="issued">
<date-part prefix=", " name="month"/>
<date-part prefix=" " name="day"/>
</date>
</if>
</choose>
</group>
</if>
<else>
<text prefix=" (" term="no date" suffix=")."/>
</else>
</choose>
</macro>

(2)
<macro name="edition">
<choose>
<if type="book chapter" match="any">
<choose>
<if is-numeric="edition">
<number variable="edition" form="ordinal" prefix=", "/>
<text term="edition" form="short" prefix=" " suffix="."/>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>

Particularly what do these clauses mean?
a) <if type="book chapter article-journal" match="none">
and
b) <if type="book chapter" match="any">

Thanks and hope to hear from you.
  • edited January 12, 2010
    When you enter an item into Zotero manually, you begin by selecting a type of reference (Book, Book Section, Journal Article, etc.). What the CSL code is doing there is testing the type of the reference. In the (a) example, it is saying "If the type of the reference item is not Book, not Book Section, and not Journal Article, but something else, do this". In the (b) example, it is saying, "If the type of the reference item is either Book or Book Section, do this".

    Does that help?

    (PS: you can preserve the formatting of indented code on the forum by enclosing it in <code></code> tags.)
  • Thanks very much. I now understand and getting to understand a lot
Sign In or Register to comment.