# Group formatting

**URL:** <https://discourse.citationstyles.org/t/group-formatting/1215>\
**Category:** CSL Development\
**Created:** [January 25, 2014, 3:56pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215 "2014-01-25T15:56:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [January 25, 2014, 3:56pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215/1 "2014-01-25T15:56:54Z")

</div>

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](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](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:

As you can see there is even a comment highlighting this very issue. The  
results call for a result like “ **3,** ” like the comment suggests,  
but I would have expected this to still render as “ **3** ,” 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

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [January 26, 2014, 6:53pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215/2 "2014-01-26T18:53:58Z")

</div>

I’m pretty sure this has been discussed at some point, since the  
language in the spec is rather specific, but I couldn’t find that  
discussion. Frank, do you know from the top of your head?

Rintze

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [July 3, 2014, 10:46pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215/3 "2014-07-03T22:46:24Z")

</div>

Sorry for replying so late. I’ve stumbled across the thread while looking  
for something else.

“Transmitted” must mean what Sylvester assumes that it means, but that’s  
obviously not what the test require. I think that clause should just be  
removed from the spec.

At some point I may have thought that italics etc. should be set  
exclusively on the rendering elements, but as far as I can tell (thinking  
about it now) the only effect of that would have been to reduce flexibility.

Frank

---

<div class="post-metadata">

**Author:** ![Sebastian\_Karcher](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/sebastian_karcher/32/176_2.png) [@Sebastian\_Karcher](https://discourse.citationstyles.org/u/Sebastian_Karcher)\
**Post date:** [July 5, 2014, 12:04am UTC](https://discourse.citationstyles.org/t/group-formatting/1215/4 "2014-07-05T00:04:48Z")

</div>

huh - missed this, too. I agree with Frank. We want to keep the  
current behavior of citeproc-js and fix the specs.

---

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [July 5, 2014, 11:29am UTC](https://discourse.citationstyles.org/t/group-formatting/1215/5 "2014-07-05T11:29:57Z")

</div>

Thanks for the clarification! I think Frank is completely right that  
this actually reduces flexibility, especially in the context of macros.  
I’ll remove the ‘feature’ from citeproc-ruby, too.

Sylvester

[signature.asc](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/ed53ae2b97152e217801659b46b0d509c25f8611.asc) (181 Bytes)

---

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [July 7, 2014, 3:27pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215/6 "2014-07-07T15:27:57Z")

</div>

FYI I just created a pull request for this:

> <https://github.com/citation-style-language/documentation/pull/34>

This would assume that formatting attributes are still valid (this also means there should be no change to the schema necessary) and applied to the group as a whole (I assume this is how citeproc-js would treat the situation now?).

Sylvester

[signature.asc](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/302c20c787a85791c315c9e75489b0d6bafb972c.asc) (203 Bytes)

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [July 7, 2014, 4:43pm UTC](https://discourse.citationstyles.org/t/group-formatting/1215/7 "2014-07-07T16:43:42Z")

</div>

Looks good to me.

Rintze
