Top-level comments in CSL styles

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:

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?


While the comment seems to be valid XML (as suggested by successful
validation and the XML spec at ), there have been multiple
reports of problems with XML comments in this location (e.g. and
). 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


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