Sorry, I don't follow. Why is this use case not covered by "cs:group implicitly acts as a conditional: cs:group and its child elements are suppressed if a) at least one rendering element in cs:group calls a variable (either directly or via a macro), and b) all variables that are called are empty." (http://citationstyles.org/downloads/specification.html#group)? Wouldn't that extend to modular macros?
Rintze On Tue, Feb 24, 2015 at 8:11 AM, Frank Bennett <[email protected]> wrote: > I'm looking at implementing a "small" extension in citeproc-js that > seems necessary for modular style support. > > Code calling a modular macro may need to know whether the macro > produced output, without regard to its internals. One such case is > critical for modular support: the modular code may return a bare term > (such as "§") to be applied as a label, which is sometimes returned > empty (as for a "page" locator). In this case, the calling style may > wish to add a connecting label: > > Ibid. at 123. > versus > Ibid. § 45. > > The supplementary connecting string ("at" in this example) needs to be > under the control of the calling style, but we lack a conditional that > can identify whether the remote macro generating the label produced > output. The solution I'm looking at would work like this: > > <text macro="juris-label" alt-macro="the-word-at"/> > > I don't think this will be useful in self-contained styles, but in the > modular architecture it seems like a minimal solution to what would > otherwise be an awkward problem. > > Frank > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > xbiblio-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ xbiblio-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
