DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › DITA Ids not being assigned
-
mjkhan September 8, 2013 at 12:17 am
DITA Ids not being assigned
September 8, 2013 at 12:17 amParticipants 1Replies 2Last Activity 9 years, 4 months agoHi,
We have upgraded to XMetaL 8 SP1 Author Enterprise from XMetaL 6 SP1. We have observed an issue with XMetal 8 SP1 where DITA Ids are not being to all the content tags in the document. I have debugged with XMetal Developer 7 and looks like in nulAssignElements method in Library_ID.js macro the node list is not being traversed properly. Following is code snippet.//get ndl here
var readPosition = 0;
for (var i=0; i < len; i++){
var nde = ndl.item(readPosition); //readPosition is always 0
……..
}The behavior is that only the first tag in the document will be assigned DITA id. The code words in XMetaL 6 SP1 since the nodelist pops the item instead of a get in the list.
Please advice if our observation is correct and if the fix is available.
Thanks
Mahmoodgcrews September 9, 2013 at 2:59 pm
Reply to: DITA Ids not being assigned
September 9, 2013 at 2:59 pmYou might check Tools > DITA Options > General Tab > Options button (next to Auto-assign element IDs).
http://na.justsystems.com/webhelp/en/xmetalauthor/enterprise/7.0/XMEE.html#DITA%20options
Derek Read September 10, 2013 at 8:16 pm
Reply to: DITA Ids not being assigned
September 10, 2013 at 8:16 pmThis does not look like our code so I'm not sure what is being discussed here.
The only supported method for introducing changes to (some) DITA functionality with script is to implement those changes in specifically defined JScript prototype overrides.
This is undocumented (partners are typically involved in this work) but there is an example here:
C:Program FilesXMetaL 8.0AuthorDITAXACs1.2ditabaseditabase_ditabase.off.jsThat example must be renamed to remove the “.off” portion to be enabled. If a different DITA document type needs similar overrides to be made then the file needs to be duplicated into the corresponding folder for the other DTD, renamed to correspond to the base DTD file name in that folder, and all prototype declarations in the file must be similarly renamed.
Other types of changes are unsupported.
-
AuthorPosts
- You must be logged in to reply to this topic.