Conditional processing with the @rev attribute
As far as I
know, the @rev attribute has always been included in the list of
conditional processing attributes (http://docs.oasis-open.org/dita/v1.1/CD02/archspec/condproc.html). I don’t know of anything in the DITA 1.1 spec that says that it
should be processed differently from the other conditional
the Open Toolkit ignores
DITAVAL statements to exclude content based on @rev, and a recent statement from Michael
was that “rev cannot be used for filtering”: http://tech.groups.yahoo.com/group/dita-users/message/17821 . It’s not clear to me whether Michael’s statement is a statement of how the OT currently
behaves or if it’s a statement of how the OT should behave.
The draft DITA
1.2 spec deepens my confusion. It says,
“DITA defines five attributes that are
specifically intended to enable filtering or flagging of individual
elements. Those attributes are @audience, @platform, @product,
@otherprops, and @props.” But then a few paragraphs later under a section titled “Conditional processing attributes” it lists six attributes including @rev.
So is @rev a
conditional processing attribute or not?
What is our expectation from processors?
a) Processors should filter
based on @rev if instructed to do so by the DITAVAL file
b) Processors may choose to filter based on @rev if
instructed to do so by
the DITAVAL file
c) Processors must never filter based on @rev regardless of what the DITAVAL file says
In my opinion, the wording of the
DITA 1.1 spec indicates option A or B, so we can’t
change the expected behaviour to C without breaking backwards-compatibility.
XMetaL Community Forums: http://forums.xmetal.com/