Here is another tricky one. From the spec:

"cs:group may carry the delimiter attribute to separate its child
elements, as well as affixes and display attributes (applied to the
output of the group as a whole) and formatting attributes (transmitted
to the enclosed elements)."

My interpretation of this was that each child node inherits the
formatting options of cs:group — that they apply to each child node
individually and not on the output of all the nodes as a whole.

But this test seems to contradict this:

https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f2/processor-tests/humans/sort_VariousNameMacros2.txt

The referenced style is:

https://bitbucket.org/bdarcus/citeproc-test/src/ab136a6aa8f22c011b93a0deed3c9bf38efcec75/styles/journal-of-physiology-bib-sort-test-2.csl?at=default

And here I am interested in the "vol-page" macro:

<macro name="vol-page">
  <choose>
    <if variable="page">
      <group  prefix=" " suffix=" " font-weight="bold">
        <!--making group bold so that comma after volume is also bold-->
        <text variable="volume" suffix=","/>
      </group>
      <text variable="page"/>
    </if>
    <else>
      <text variable="DOI" prefix="; DOI: "/>
    </else>
  </choose>
</macro>

As you can see there is even a comment highlighting this very issue. The
results call for a result like "<b>3,</b>" like the comment suggests,
but I would have expected this to still render as "<b>3</b>," because of
the fact that the spec says a cs:group's formatting attributes are
transmitted to the enclosed elements.

I suspect my interpretation of 'transmitted to' is wrong; on the other
hand, the rendering implied by the test case seems like there is no
special treatment of cs:group formatting attributes, so why would this
be mentioned in the spec at all?

Thanks!

Sylvester





Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
xbiblio-devel mailing list
xbiblio-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to