From 9d64912892a36c01478a97bda5ae30ac846d90e4 Mon Sep 17 00:00:00 2001 From: Roger Sheen Date: Thu, 5 Oct 2023 12:45:28 +0200 Subject: [PATCH] Use XML-domain notation for attribute references Signed-off-by: Roger Sheen --- src/main/config/messages_template.xml | 86 +++++++++---------- .../org.dita.pdf2/resource/messages.xml | 4 +- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/main/config/messages_template.xml b/src/main/config/messages_template.xml index 425d549d30..582cc4e1cd 100644 --- a/src/main/config/messages_template.xml +++ b/src/main/config/messages_template.xml @@ -151,8 +151,8 @@ See the accompanying LICENSE file for applicable license. - No format attribute was found on a reference to file '%1', which does not appear to be a DITA file. - If this is not a DITA file, set the format attribute to an appropriate value, otherwise set the format attribute to "dita". + No @format attribute was found on a reference to file '%1', which does not appear to be a DITA file. + If this is not a DITA file, set the @format attribute to an appropriate value, otherwise set the @format attribute to "dita". @@ -180,7 +180,7 @@ See the accompanying LICENSE file for applicable license. Failed to parse the input file '%1' (the content of the file is not valid). - If the input file '%1' does not have a DOCTYPE declaration, please make sure that all class attributes are present in the file. + If the input file '%1' does not have a DOCTYPE declaration, please make sure that all @class attributes are present in the file. @@ -197,7 +197,7 @@ See the accompanying LICENSE file for applicable license. The XML schema and DTD validation function of the parser is turned off. - Please make sure the input is normalized DITA with class attributes included, otherwise it will not be processed correctly. + Please make sure the input is normalized DITA with @class attributes included, otherwise it will not be processed correctly. @@ -211,7 +211,7 @@ See the accompanying LICENSE file for applicable license. - An element uses the attribute conaction="replace", but a conref attribute is not found in the expected location. + An element uses conaction="replace", but a @conref attribute is not found in the expected location. @@ -244,17 +244,17 @@ See the accompanying LICENSE file for applicable license. Conkeyref="%1" can not be resolved because it does not contain a key or the key is not defined. - The build will use the conref attribute for fallback, if one exists. + The build will use the @conref attribute for fallback, if one exists. Unable to find key definition for key reference '%1' in root scope. - The href attribute may be used as fallback if it exists + The @href attribute may be used as fallback if it exists. Unable to find key definition for key reference '%1' in scope '%2'. - The href attribute may be used as fallback if it exists + The @href attribute may be used as fallback if it exists. @@ -275,7 +275,7 @@ See the accompanying LICENSE file for applicable license. Code reference charset '%1' not supported. - See the DITA-OT documentation for supported charset values on the format attribute. + See the DITA-OT documentation for supported charset values on the @format attribute. @@ -300,7 +300,7 @@ See the accompanying LICENSE file for applicable license. - The id attribute value '%1' is not unique within the topic that contains it. + The @id attribute value '%1' is not unique within the topic that contains it. @@ -320,17 +320,17 @@ See the accompanying LICENSE file for applicable license. - Topic reference target is a DITA map but format attribute has not been set. - Set format attribute value to "ditamap". + Topic reference target is a DITA map but the @format attribute has not been set. + Set the @format attribute value to "ditamap". - Invalid '%1' attribute value '%2'. + Invalid @%1 attribute value '%2'. - The cols attribute is '%1' but number of colspec elements was '%2'. + The @cols attribute is set to '%1' but the number of colspec elements was '%2'. @@ -345,12 +345,12 @@ See the accompanying LICENSE file for applicable license. - No id attribute on topic type element '%1'. + No @id attribute on topic type element '%1'. Using generated id '%2'. - No id attribute on topic type element '%1'. + No @id attribute on topic type element '%1'. @@ -400,7 +400,7 @@ See the accompanying LICENSE file for applicable license. - Invalid action attribute '%1' on DITAVAL property. + Invalid @action attribute '%1' on DITAVAL property. @@ -420,7 +420,7 @@ See the accompanying LICENSE file for applicable license. - Ignoring empty conref attribute conref="". + Ignoring empty @conref attribute: conref="". @@ -445,12 +445,12 @@ See the accompanying LICENSE file for applicable license. - Split chunk attribute found on '<%1>' element that does not reference a topic. + Split @chunk attribute found on '<%1>' element that does not reference a topic. Ignoring chunk operation. - Found chunk attribute with value '%1' inside combine chunk. + Found @chunk attribute with value '%1' inside combine chunk. Ignoring chunk operation. @@ -464,13 +464,13 @@ See the accompanying LICENSE file for applicable license. - The title element or attribute in the ditamap is required for Eclipse output. + The @title attribute or element in the ditamap is required for Eclipse output. - The anchorref attribute should either reference another dita map or an Eclipse XML TOC file. The value '%1' does not appear to reference either. - + The @anchorref attribute should either reference another DITA map or an Eclipse XML TOC file. + The value '%1' does not appear to reference either. @@ -485,7 +485,7 @@ See the accompanying LICENSE file for applicable license. Unknown file extension in href='%1'. - References to non-DITA resources should set the format attribute to match the resource (for example, 'txt', 'pdf', or 'html'). + References to non-DITA resources should set the @format attribute to match the resource (for example, 'txt', 'pdf', or 'html'). @@ -524,17 +524,17 @@ See the accompanying LICENSE file for applicable license. - When you conref another topic or an item in another topic, the domains attribute of the target topic must be equal to or a subset of the current topic's domains attribute. + When you conref another topic or an item in another topic, the @domains attribute of the target topic must be equal to or a subset of the current topic's @domains attribute. Put your target under an appropriate domain. You can see the messages guide for more help. - A element with attribute conref="%1" indirectly includes itself, which results in an infinite loop. + A element with the @conref attribute set to '%1' indirectly includes itself, which results in an infinite loop. - The attribute conref="%1" uses invalid syntax. + The conref="%1" attribute setting uses invalid syntax. Conref references to a map element should contain '#' followed by an ID, such as mymap.ditamap#mytopicrefid. @@ -544,35 +544,35 @@ See the accompanying LICENSE file for applicable license. - A reference to '%2' appears to reference a DITA document, but the format attribute has inherited a value of '%1'. The document will not be processed as DITA. + A reference to '%2' appears to reference a DITA document, but the @format attribute has inherited a value of '%1'. The document will not be processed as DITA. - Found a link or cross reference with an empty href attribute (href=""). - Remove the empty href attribute or provide a value. + Found a link or cross reference with an empty @href attribute: href="". + Remove the empty @href attribute or provide a value. - The type attribute on a topicref was set to '%1', but the topicref references a more specific '%2' topic. Note that the type attribute cascades in maps, so the value '%1' may come from an ancestor topicref. + The @type attribute on a topicref was set to '%1', but the topicref references a more specific '%2' topic. Note that the @type attribute cascades in maps, so the value '%1' may come from an ancestor topicref. - The type attribute on a topicref was set to '%1', but the topicref references a '%2' topic. This may cause your links to sort incorrectly in the output. Note that the type attribute cascades in maps, so the value '%1' may come from an ancestor topicref. + The @type attribute on a topicref was set to '%1', but the topicref references a '%2' topic. This may cause your links to sort incorrectly in the output. Note that the @type attribute cascades in maps, so the value '%1' may come from an ancestor topicref. - Missing navtitle attribute or element for peer topic '%1'. + Missing @navtitle attribute or element for peer topic '%1'. References must provide a local navigation title when the target is not a local DITA resource. - Missing navtitle attribute or element for non-DITA resource '%1'. + Missing @navtitle attribute or element for non-DITA resource '%1'. References must provide a local navigation title when the target is not a local DITA resource. @@ -607,17 +607,17 @@ See the accompanying LICENSE file for applicable license. - Link or cross reference must contain a valid href or keyref attribute; no link target is specified. + Link or cross reference must contain a valid @href or @keyref attribute; no link target is specified. - The type attribute on a '%1' element was set to '%3', but the reference is to a more specific '%4' '%2'. This may cause your links to sort incorrectly in the output. + The @type attribute on a '%1' element was set to '%3', but the reference is to a more specific '%4' '%2'. This may cause your links to sort incorrectly in the output. - The type attribute on a '%1' element was set to '%3', but the reference is to a '%4' '%2'. This may cause your links to sort incorrectly in the output. + The @type attribute on a '%1' element was set to '%3', but the reference is to a '%4' '%2'. This may cause your links to sort incorrectly in the output. @@ -657,7 +657,7 @@ See the accompanying LICENSE file for applicable license. - The longdescref attribute on tag '%1' will be ignored. Accessibility for object elements needs to be handled another way. + The @longdescref attribute on tag '%1' will be ignored. Accessibility for object elements needs to be handled another way. @@ -712,8 +712,8 @@ See the accompanying LICENSE file for applicable license. - Default id "org.sample.help.doc" is used for Eclipse plug-in. - If you want to use your own plug-in id, please specify it using the id attribute on your map. + Default ID "org.sample.help.doc" is used for Eclipse plug-in. + If you want to use your own plug-in ID, please specify it using the @id attribute on your map. @@ -757,7 +757,7 @@ See the accompanying LICENSE file for applicable license. - ID '%1' was used in topicref tag but did not reference a topic element. The href attribute on a topicref element should only reference topic level elements. + ID '%1' was used in topicref tag but did not reference a topic element. The @href attribute on a topicref element should only reference topic level elements. @@ -772,7 +772,7 @@ See the accompanying LICENSE file for applicable license. - The copy-to attribute [copy-to="%1"] uses the name of a file that already exists, so this attribute is ignored. + The @copy-to attribute [copy-to="%1"] uses the name of a file that already exists, so this attribute is ignored. @@ -827,7 +827,7 @@ See the accompanying LICENSE file for applicable license. - No formatting defined for unknown class attribute value '%1'. + No formatting defined for unknown @class attribute value '%1'. diff --git a/src/main/plugins/org.dita.pdf2/resource/messages.xml b/src/main/plugins/org.dita.pdf2/resource/messages.xml index ecb61d0b02..29d27e17c1 100644 --- a/src/main/plugins/org.dita.pdf2/resource/messages.xml +++ b/src/main/plugins/org.dita.pdf2/resource/messages.xml @@ -63,12 +63,12 @@ See the accompanying LICENSE file for applicable license. A topic reference was found with href="". - Please specify a target or remove the href attribute. + Please specify a target or remove the @href attribute. The topic reference href="%1" could not be found. - Please correct the reference, or set the scope or format attribute if the target is not a local DITA topic. + Please correct the reference, or set the @scope or @format attribute if the target is not a local DITA topic.