New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
args.eclipsehelp.toc/TOCROOT not used by map2eclipse.xsl #1116
Comments
Submitted by dave_resch This defect was discovered in DITA-OT 1.3 release. |
Submitted by imagiczhang the file name for toc file doesn't follow the ditamap name instead of being defined by the parameter. This decision is made to meet the needs for multiple toc files in one eclipse plug-in. Users can ignore this deprecated parameter and prevent using it. |
Submitted by dave_resch Sorry. I do not understand you. Do you mean that the args.eclipsehelp.toc property is deprecated? Is there no feature that allows you to specify the name of the toc.xml file generated by DITA-OT? |
Submitted by robander This may just serve to confuse things, but my understanding of the history is that originally the TOC xml file was always named toc.xml, and the property was available to change this. We fixed the code (at least I would consider it a fix) to make the name of the XML file match the name of the input map. Am I correct that you wish to continue to override the map name using the same old parameter, and that the parameter no longer works? You do not wish to have the name of the toc.xml file match the DITA map? As a side note - I am not sure why the parameter was removed. We should not be removing parameters without warning, even if the function has been superseded. |
Submitted by dave_resch Yes, you are correct; I want to override the default name of the Eclipse TOC file (map_file_name.xml) generated by DITA-OT with a standard name (such as toc.xml). Indeed, the args.eclipsehelp.toc parameter does not work in DITA-OT 1.3.x. It used to work in DITA-OT 1.2.1 and earlier. The current problem is that it "sort of" works, so the OT-generated plugin.xml file points to a TOC file name based on the value of the args.eclipsehelp.toc parameter (e.g., toc.xml), but the OT-generated TOC file is named for the ditamap, so the resulting plugin.xml is broken. While I don't mind the default (map) file name for the Eclipse TOC file, there are occasions when I do not want to expose the actual map file name in a plug-in. Thanks for looking at this. |
Submitted by robander I'm moving this to the feature request tracker. I agree that the ability should not have been removed in the first place, but at this point getting it to work will essentially mean implementing it from scratch as a new feature. |
One of our users had the same problem. |
Assigning to myself to either fix or close in 2.3 - I'm not sure what still applies from this issue. |
Checking with 2.2.4 and confirmed this is still an issue. The TOC file now defaults to the name of the map, rather than to |
Given that this has been broken since 1.3, and the updated behavior (without the parameter) is better than the old behavior, my preference is to remove the broken parameter entirely in 2.3. I don't think it is necessary to deprecate the parameter, given that it has not worked for 7 or 8 years. Instead, we should remove it, and stop passing it to |
Submitted #2354 to remove the parameter - @infotexture I forgot that removing the parameter from |
Converted from SourceForge issue 1568130, submitted by dave_resch
The args.eclipsehelp.toc property is not used to set the name of the toc.xml file generated by map2eclipse.xsl. However, it is passed as a param (TOCROOT) to the map2plugin.xsl, so the resulting plugin.xml file refers to the toc.xml file as ${args.eclipsehelp.toc}.xml.
Thus, if you set args.eclipsehelp.toc to a non-default value, you get a plug-in that points to a non-extant toc.xml file.
The text was updated successfully, but these errors were encountered: