The goal is to generate an IBM® Rational® Publishing Engine document that displays:
What IBM Rational Publishing Engine allows: drilling into the class - getting at the class attributes and drilling into the types of those attributes - upon drilling into those types, the IBM Rational Publishing Engine schema starts referring to nested elements, and nested elements do not have types that can be drilled into.
The schema defines the Attribute > Type relation, which represents a Classifier. Classifier is the base type for all the possible types (Class, Type, and so on) an attribute can have. To drill in further than IBM Rational Publishing Engine is currently allowing, IBM Rational Publishing Engine would have to support the ability to get the concrete type from Classifier and drill in further to get more information - this would require that IBM Rational Publishing Engine provide support for casting to a concrete type. To address this type of request, the REST Specification would need to be enhanced.
There is one limitation in IBM Rational Publishing Engine implementation, the CAST can be applied only to the last segment of the query. The following query is correct: Packages/Packages/NestedElements/ModelElement(Class) while this one is not: Packages/Packages/NestedElements/ModelElement(Class)/Attributes.
To make the second one valid you must split it in two: