Syntax proposal: type as implicitly match="any" #108

fbennett opened this Issue Jan 31, 2013 · 0 comments


None yet
1 participant

fbennett commented Jan 31, 2013

This is a companion to #107.

A condition may test for multiple types. As an item can only have one type, a test for multiple types with match="all" is not useful because it will always return false. If the type attribute always returned true on a match to any of the listed types, regardless of the value of match, constructs like the following would become possible:

  <if type="webpage post-weblog" variable="url" match="all">
    <text variable="url"/> <!-- or whatever -->

Like #107, this would reduce the need for complex nested conditionals in CSL code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment