Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Syntax proposal: type as implicitly match="any" #108
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:
<choose> <if type="webpage post-weblog" variable="url" match="all"> <text variable="url"/> <!-- or whatever --> </if> </choose>
Like #107, this would reduce the need for complex nested conditionals in CSL code.