On Fri, Nov 18, 2011 at 10:49 PM, andrea rossato <[email protected]> wrote: > Frank Bennett <[email protected]> writes: > >> On Fri, Nov 18, 2011 at 9:19 PM, andrea rossato <[email protected]> >> wrote: >>> I do not see it this way: author has no value and so a substitute, >>> *another* variable, is used instead. As a result, the act of using it >>> suppresses it, which means that the variable will return no value for >>> any other call in the cs:layout element. >> >> If substituted variables are unset globally, does that mean that the >> result of a conditional test for the variable value depends on whether >> the test is made before or after the cs:names element is rendered? If >> so, that might be a little confusing for style authors. > > Well, this is the problem I rose with this thread, actually. > > I do not think it is that confusing for style authors, though. Or > better, I would find a bit more confusing the possibility of a > conditional returning true and the variable not being rendered, wouldn't > you?
Not really, no. Since CSL fails gracefully on an unsuccessful attempt to render an element, a style wouldn't wrap a names element to render editor (say) in a conditional test for the presence of an editor. I think the way style authors think about it is to condition the form of a cite on the variables presented on the item. It's easier to understand if the condition yields the same result wherever it is invoked. > > Andrea > > ------------------------------------------------------------------------------ > 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. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > xbiblio-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel > ------------------------------------------------------------------------------ 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. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ xbiblio-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
