Further to this issue, I've added an option in citeproc-js to turn off the
purging of duplicate spaces and punctuation, so that citeproc-js can also be
used to test styles for these unintended formatting glitches.

While I got a little worked up in the discussion (for which I apologize,
particularly to Andrea), I do agree that would be cleaner to control this in
the styles, rather than relying on processor magic. 

Thinking that a strict version of the CSL schema might be a handy for
editing, and for checking the scope of the problem in the repositories, I
had a go at restricting the leading prefix and trailing suffix spaces
outside of cs:date and cs:names -- and ran up against what I think is a
limitation in RelaxNG. What I would like to do is restrict leading spaces on
the cs:label prefix when it appears before cs:name, and trailing spaces on
the suffix when it appears after. That requires two instances of the element
(cs:label), and in Emacs nXML mode, at least, one of them clobbers the
other, so you get false positives for one error or the other, depending on
the order in which the RelaxNG elements are referenced during validation.

If anyone knows of at way around this (schematron?), it would be great to
get it going. It will be easier to get people building styles that nest
cleanly if real time validation that covers this can be set up in an editor.


--
View this message in context: 
http://xbiblio-devel.2463403.n2.nabble.com/how-much-bugged-a-style-may-be-tp5784767p6818349.html
Sent from the xbiblio-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to