New Schematron rule for DITA maps

If an element of class mapgroup-d/topichead has neither a @navtitle attribute nor a topicmeta/navtitle element, it should be flagged with a warning as it will act as a topicgroup in that case. Ideally <topichead> would require topicmeta/navtitle but of course that's not possible with DTD or XSD alone. Might also be useful to warn about the use of @navtitle, which is deprecated. Cheers, E. -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com

Hi Eliot, Indeed we added default validation scenarios for DITA topics which also use some Schematron validation stages but we did not add such validation scenarios out of the box for DITA Maps. Oxygen 13 will be released in a week or two so maybe in the next version we'll try to implement some Schematron rules also for DITA Maps. The warning about the use of navtitle was available in the DITA Schematron checks provided initially by Jarno Elovirta but I commented it out as the Schematron was not applied on the DITA Maps anyway and also because I considered the check kind of severe. The DITA 1.2 spec says something like:
Beginning with DITA 1.2, the preferred way to specify the navigation title in a map is with the navtitle element, available inside the topicmeta element.
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/21/2011 4:23 PM, Eliot Kimber wrote:
If an element of class mapgroup-d/topichead has neither a @navtitle attribute nor a topicmeta/navtitle element, it should be flagged with a warning as it will act as a topicgroup in that case.
Ideally<topichead> would require topicmeta/navtitle but of course that's not possible with DTD or XSD alone.
Might also be useful to warn about the use of @navtitle, which is deprecated.
Cheers,
E.

Hi Eliot and Radu, I implemented this in <https://github.com/jelovirt/dita-schematron/issues/1>. If you feel you'd like to have a separate validation phase (and a new schema file) for map validation, please add an item and I'll add it. Cheers, Jarno ________________________________________ From: oxygen-user-bounces@oxygenxml.com [oxygen-user-bounces@oxygenxml.com] On Behalf Of Radu Coravu [radu_coravu@sync.ro] Sent: Monday, August 22, 2011 11:37 AM To: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] New Schematron rule for DITA maps Hi Eliot, Indeed we added default validation scenarios for DITA topics which also use some Schematron validation stages but we did not add such validation scenarios out of the box for DITA Maps. Oxygen 13 will be released in a week or two so maybe in the next version we'll try to implement some Schematron rules also for DITA Maps. The warning about the use of navtitle was available in the DITA Schematron checks provided initially by Jarno Elovirta but I commented it out as the Schematron was not applied on the DITA Maps anyway and also because I considered the check kind of severe. The DITA 1.2 spec says something like:
Beginning with DITA 1.2, the preferred way to specify the navigation title in a map is with the navtitle element, available inside the topicmeta element.
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/21/2011 4:23 PM, Eliot Kimber wrote:
If an element of class mapgroup-d/topichead has neither a @navtitle attribute nor a topicmeta/navtitle element, it should be flagged with a warning as it will act as a topicgroup in that case.
Ideally<topichead> would require topicmeta/navtitle but of course that's not possible with DTD or XSD alone.
Might also be useful to warn about the use of @navtitle, which is deprecated.
Cheers,
E.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

@navtitle is normatively deprecated. This note occurs in several places in the language reference: "Note: The @navtitle attribute is deprecated in favor of the <navtitle> element. When both a <navtitle> element and a navtitle attribute are specified, the <navtitle> element should be used." Cheers, E. On 8/22/11 3:37 AM, "Radu Coravu" <radu_coravu@sync.ro> wrote:
Hi Eliot,
Indeed we added default validation scenarios for DITA topics which also use some Schematron validation stages but we did not add such validation scenarios out of the box for DITA Maps. Oxygen 13 will be released in a week or two so maybe in the next version we'll try to implement some Schematron rules also for DITA Maps.
The warning about the use of navtitle was available in the DITA Schematron checks provided initially by Jarno Elovirta but I commented it out as the Schematron was not applied on the DITA Maps anyway and also because I considered the check kind of severe. The DITA 1.2 spec says something like:
Beginning with DITA 1.2, the preferred way to specify the navigation title in a map is with the navtitle element, available inside the topicmeta element.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 8/21/2011 4:23 PM, Eliot Kimber wrote:
If an element of class mapgroup-d/topichead has neither a @navtitle attribute nor a topicmeta/navtitle element, it should be flagged with a warning as it will act as a topicgroup in that case.
Ideally<topichead> would require topicmeta/navtitle but of course that's not possible with DTD or XSD alone.
Might also be useful to warn about the use of @navtitle, which is deprecated.
Cheers,
E.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com
participants (3)
-
Eliot Kimber
-
Jarno Elovirta
-
Radu Coravu