Appendix C. Schema shortcuts
There is often more than one way to write something in Mondrian’s XML schema format. Mondrian provides shortcuts to allow you to write concise XML. These are particularly useful if you’re writing XML by hand.
Name |
Example |
---|---|
Attribute.nameColumn default | An attribute’s name defaults to its key (if the key has a single column) or the last column of its key (if the key is a composite). For example, <Attribute name='Year' keyColumn='year'/> is equivalent to <Attribute name='Year' keyColumn='year' nameColumn='year'/> |
Attribute.keyColumn for Attribute.Key | If an attribute’s key is a single column, you can use the keyColumn attribute. For example, <Attribute name='Year' keyColumn='year'/> is equivalent to ... |
Get Mondrian in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.