# Book formatting

**URL:** <https://discourse.citationstyles.org/t/book-formatting/858>\
**Category:** CSL Development\
**Created:** [June 6, 2010, 7:55am UTC](https://discourse.citationstyles.org/t/book-formatting/858 "2010-06-06T07:55:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![panyasan](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@panyasan](https://discourse.citationstyles.org/u/panyasan)\
**Post date:** [June 6, 2010, 7:55am UTC](https://discourse.citationstyles.org/t/book-formatting/858/1 "2010-06-06T07:55:23Z")

</div>

Hello,

sorry for flooding the mailing list currently, but I am trying to get my app  
finished and released as fast as possible, and CSL support is one of the  
last things that I want to implement before release.

At the moment, I am getting an additional “p. " after the edition in a  
"book” reference, even though there is no page information in the data. Is  
this a bug in the processor or in the CSL?

Thanks,  
C.

Formatted Result

Häberle, P. . (1997). Europäische Rechtskultur: Versuch einer Annäherung in  
zwölf Schritten. Suhrkamp-Taschenbuch ; 2662 (1. Aufl., p. ). Frankfurt am  
Main: Suhrkamp Taschenbuch Verl.

Input Data

{  
“H\u00e4berle1997”: {  
“type”: “book”,  
“id”: “H\u00e4berle1997”,  
“author”: [  
{  
“family”: “H\u00e4berle”,  
“given”: "P. ",  
“parse-names”: “true”,  
“initials”: "P. "  
}  
],  
“issued”: {  
“date-parts”: [  
[  
“1997”  
]  
]  
},  
“title”: “Europ\u00e4ische Rechtskultur: Versuch einer Ann\u00e4herung  
in zw\u00f6lf Schritten”,  
“publisher-place”: “Frankfurt am Main”,  
“publisher”: “Suhrkamp Taschenbuch Verl”,  
“edition”: “1. Aufl”,  
“collection-title”: “Suhrkamp-Taschenbuch ; 2662”,  
“keyword”: [  
“Europa”,  
“Verfassungsstaat”,  
“Aufsatzsammlung”  
],  
“note”: “Peter H\u00e4berle; Lizenzausg. der Nomos Verl.-Ges.,  
Baden-Baden\nNachdruck von 1994”  
}  
}

CSL Data

\<?xml version="1.0" encoding="UTF-8"?\> \<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/\*checkout\*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?\> American Psychological Association 6th Edition http://www.zotero.org/styles/apa Simon Kornblith @Simon\_Kornblith Bruce D'Arcus Curtis M. Humphrey Richard Karnesky karnesky+zotero@gmail.com http://arc.nucapt.northwestern.edu/Richard\_Karnesky Sebastian Karcher 2010-01-27T20:08:03+00:00 -- 

View this message in context: [http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5144896.html](http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5144896.html)  
Sent from the xbiblio-devel mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle1](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Rintze\_Zelle1](https://discourse.citationstyles.org/u/Rintze_Zelle1)\
**Post date:** [June 6, 2010, 8:04am UTC](https://discourse.citationstyles.org/t/book-formatting/858/2 "2010-06-06T08:04:33Z")

</div>

What’s the origin of the CSL style you use? It’s not a valid CSL 1.0 style,  
which might trip the CSL processor (the include-period attribute, used in  
", no  
longer exists in 1.0).

Rintze

---

<div class="post-metadata">

**Author:** ![panyasan](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@panyasan](https://discourse.citationstyles.org/u/panyasan)\
**Post date:** [June 6, 2010, 12:41pm UTC](https://discourse.citationstyles.org/t/book-formatting/858/3 "2010-06-06T12:41:33Z")

</div>

Hi Rintze,

the styles are from [http://www.zotero.org/styles](http://www.zotero.org/styles). I thought that this was  
the most up-to-date version of the styles, but I was obviously wrong. I  
checked the various repositories of Bruce and Frank but could only a five  
styles here: [http://bitbucket.org/bdarcus/citeproc-test/src/tip/styles/](http://bitbucket.org/bdarcus/citeproc-test/src/tip/styles/). So  
I figure that the Zotero styles are 0.8 and most have not been updated to  
1.0?

All in all, I find it a bit of a shame that all your great work still is  
somewhat intransparent to the end user - the repositories are extremely  
dispersed (I liked it better when there was one central repository which  
could have one central readme to guide the curious newcomer). I would  
welcome it if  
[http://citationstyles.org/citation-style-language/csl-processors/](http://citationstyles.org/citation-style-language/csl-processors/) would  
provide some guiding information (can be rudimentary) what resources to get  
from where and how it all fits together. It doesn’t need to be 1.0 quality,  
but just so that people who want to integrate this wonderful and badly  
needed set of tools into their apps don’t get lost. I am happy to help, but  
still don’t have the general view of things.

Just my 2 cents,

Christian–  
View this message in context: [http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5145332.html](http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5145332.html)  
Sent from the xbiblio-devel mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![panyasan](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@panyasan](https://discourse.citationstyles.org/u/panyasan)\
**Post date:** [June 6, 2010, 1:21pm UTC](https://discourse.citationstyles.org/t/book-formatting/858/4 "2010-06-06T13:21:52Z")

</div>

Hi Rintze,

Rintze Zelle-2 wrote:

> What’s the origin of the CSL style you use? It’s not a valid CSL 1.0  
> style,

yes, that was the problem. Replacing the [zotero.org/style-](http://zotero.org/style-) files with the  
1.0 ones from Bruce’s repository, it now all works (almost), as can be seen  
[http://quit.rewi.hu-berlin.de/bibliograph-dev/build/#datasource~lsbaer^folderId~185^modelId~24352^itemView~formattedView^modelType~reference^selectedIds~24352%2C3695%2C2746%2C2745](http://quit.rewi.hu-berlin.de/bibliograph-dev/build/#datasource~lsbaer%5EfolderId~185%5EmodelId~24352%5EitemView~formattedView%5EmodelType~reference%5EselectedIds~24352%2C3695%2C2746%2C2745)  
here .

Thanks,

C.–  
View this message in context: [http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5145418.html](http://xbiblio-devel.2463403.n2.nabble.com/Book-formatting-tp5144896p5145418.html)  
Sent from the xbiblio-devel mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Jerome\_Ron](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@Jerome\_Ron](https://discourse.citationstyles.org/u/Jerome_Ron)\
**Post date:** [June 6, 2010, 1:50pm UTC](https://discourse.citationstyles.org/t/book-formatting/858/5 "2010-06-06T13:50:07Z")

</div>

I suspect there is a logic error in the csl\_group-\>render() function. It is supposed to check for empty variables, but apparently that is not working correctly.

Ron.\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
From: panyasan [@panyasan]  
Sent: Sunday, June 06, 2010 3:55 AM  
To: [xbiblio-devel@lists.sourceforge.net](mailto:xbiblio-devel@lists.sourceforge.net)  
Subject: [xbiblio-devel] Book formatting

Hello,

sorry for flooding the mailing list currently, but I am trying to get my app  
finished and released as fast as possible, and CSL support is one of the  
last things that I want to implement before release.

At the moment, I am getting an additional “p. " after the edition in a  
"book” reference, even though there is no page information in the data. Is  
this a bug in the processor or in the CSL?

Thanks,  
C.

Formatted Result

Häberle, P. . (1997). Europäische Rechtskultur: Versuch einer Annäherung in  
zwölf Schritten. Suhrkamp-Taschenbuch ; 2662 (1. Aufl., p. ). Frankfurt am  
Main: Suhrkamp Taschenbuch Verl.

Input Data

{  
“H\u00e4berle1997”: {  
“type”: “book”,  
“id”: “H\u00e4berle1997”,  
“author”: [  
{  
“family”: “H\u00e4berle”,  
“given”: "P. ",  
“parse-names”: “true”,  
“initials”: "P. "  
}  
],  
“issued”: {  
“date-parts”: [  
[  
“1997”  
]  
]  
},  
“title”: “Europ\u00e4ische Rechtskultur: Versuch einer Ann\u00e4herung  
in zw\u00f6lf Schritten”,  
“publisher-place”: “Frankfurt am Main”,  
“publisher”: “Suhrkamp Taschenbuch Verl”,  
“edition”: “1. Aufl”,  
“collection-title”: “Suhrkamp-Taschenbuch ; 2662”,  
“keyword”: [  
“Europa”,  
“Verfassungsstaat”,  
“Aufsatzsammlung”  
],  
“note”: “Peter H\u00e4berle; Lizenzausg. der Nomos Verl.-Ges.,  
Baden-Baden\nNachdruck von 1994”  
}  
}

CSL Data

\<?xml version="1.0" encoding="UTF-8"?\> \<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/\*checkout\*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?\> American Psychological Association 6th Edition http://www.zotero.org/styles/apa Simon Kornblith @Simon\_Kornblith Bruce D'Arcus Curtis M. Humphrey Richard Karnesky karnesky+zotero@gmail.com http://arc.nucapt.northwestern.edu/Richard\_Karnesky Sebastian Karcher 2010-01-27T20:08:03+00:00

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [June 6, 2010, 3:05pm UTC](https://discourse.citationstyles.org/t/book-formatting/858/6 "2010-06-06T15:05:00Z")

</div>

The general view is we’re trying to get to where all projects that use  
CSL are using 1.0, and where [citationstyle.org](http://citationstyle.org) becomes the primary  
repository for these styles. But clearly this take a bit of time to  
manage the transition.

I think it’s up to individual implementers to figure out how best to  
manage the transition. All should probably include a note about how to  
get (or create) valid styles. Some might want to include a few example  
styles.

Bruce
