# Top-level comments in CSL styles

**URL:** https://discourse.citationstyles.org/t/top-level-comments-in-csl-styles/1150
**Category:** CSL Development
**Created:** [December 22, 2012, 2:49am UTC](https://discourse.citationstyles.org/t/top-level-comments-in-csl-styles/1150 "2012-12-22T02:49:21Z")
**Posts on this page:** 3
**Page:** 1

<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: [December 22, 2012, 2:49am UTC](https://discourse.citationstyles.org/t/top-level-comments-in-csl-styles/1150/1 "2012-12-22T02:49:21Z")

</div>

Carles has identified some styles that fail to run in citeproc-js due  
to an XML comment that is a sibling of the cs:style node:

[https://github.com/citation-style-language/styles/blob/master/inter-ro.csl](https://github.com/citation-style-language/styles/blob/master/inter-ro.csl)

The complaint I get in the test runner under Rhino is:

“SyntaxError: XML objects may contain at most one node.”

Is it possible to have these comments moved inside the cs:style node?

Frank

---

<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: [December 22, 2012, 4:10am UTC](https://discourse.citationstyles.org/t/top-level-comments-in-csl-styles/1150/2 "2012-12-22T04:10:48Z")

</div>

While the comment seems to be valid XML (as suggested by successful  
validation and the XML spec at  
[http://www.w3.org/TR/REC-xml/#sec-comments](http://www.w3.org/TR/REC-xml/#sec-comments) ), there have been multiple  
reports of problems with XML comments in this location (e.g.  
[http://forums.zotero.org/discussion/26323/](http://forums.zotero.org/discussion/26323/) and  
[http://forums.zotero.org/discussion/21916/submitting-style-zoterosf/?Focus=116995#Comment\_116995](http://forums.zotero.org/discussion/21916/submitting-style-zoterosf/?Focus=116995#Comment_116995)  
). So I agree that we should move them.

Feel free to make the change yourself. I’ll probably update my own  
maintenance script to deal with these comments, but that might take a  
while.

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: [December 22, 2012, 4:23am UTC](https://discourse.citationstyles.org/t/top-level-comments-in-csl-styles/1150/3 "2012-12-22T04:23:22Z")

</div>

Thanks. It looks like only three styles were affected. I’ve make the  
changes and pushed them to the repo.

Frank
