Profiling attributes definitions and completion assistant
Posted: Thu Jun 30, 2016 12:43 pm
Hello,
Working on profiling attributes definitions, I am a bit confused about the interaction between the completion assistant (in Text mode), subject scheme maps and the Preferences dialog box. I am using Oxygen 17.1.
On this page, the user manual for Oxygen 17.1 says:
On this page, the user manual for Oxygen 18 says:
Thank you for your help,
C.
Working on profiling attributes definitions, I am a bit confused about the interaction between the completion assistant (in Text mode), subject scheme maps and the Preferences dialog box. I am using Oxygen 17.1.
On this page, the user manual for Oxygen 17.1 says:
This sentence is not clear to me.The displayed dialog box shows all profiling attributes and their values, as defined in the framework (document type) of the edited content.
On this page, the user manual for Oxygen 18 says:
Both quotes refer to the Edit Profiling Attributes dialog box in Author mode, but I assume that the completion assistant in Text mode works in the same way.
- If your root DITA map references a DITA subject scheme map that defines values for the profiling attributes, those values are used. [...]
- If your project defines project-level configuration values for the profiling attributes, those values are used.
- If Oxygen XML Author defines global-level configuration values for the profiling attributes, they are used.
- Otherwise, a basic default set of profiling attributes and values are available.
- In my project, if I have no subject scheme map and define the values for the product attribute in the Preferences dialog box (locally, i.e. in the project's xpr), the completion assistant works.
- In the Oxygen user manual project, the values for product are defined in a file called productSbjSchemeVals.ditamap, and this file is referenced in UserManual.ditamap by <mapref href="productSbjSchemeVals.ditamap" type="subjectScheme" toc="no"/>, which is a child of the <frontmatter> element. I also see that these definitions have been imported into the Preferences dialog box.
- When I try to insert the product attribute in a file of the Oxygen project, the completion assistant proposes the correct values, and it looks to me like the values come from the subject scheme map (because productSbjKey is displayed next to the values).
- If I remove the definitions in the Preferences dialog box, the completion assistant still works.
- In the mobile phone sample project, the ditamap calls the attribute values via <topicref href="productSbjSchemeVals.ditamap" format="ditamap" type="subjectScheme"/>. The attributes values have also been imported into the Preferences dialog box. If I delete them, the completion assistant no longer works, even if the map still references the subject scheme map.
- In the sample it-book project, if I try to do the same as in the Oxygen user manual project I get something else.
- I made a copy of the sample it-book project.
- In the Preferences dialog box, I made the profiling attributes local to the project and deleted all of them (so that the project knows no profiling attribute definitions at all).
- I copied the productSbjSchemeVals.ditamap file in the same folder as the taskbook ditamap.
- I inserted <mapref href="productSbjSchemeVals.ditamap" type="subjectScheme" toc="no"/> in the taskbook ditamap, just after <frontmatter>, exactly as it is done in the Oxygen user manual project. The completion assistant didn't work.
- I added a ditaval file to the project that contained <prop action="exclude" att="product" val="developer" /> and imported it into the Preferences dialog box. The completion assistant proposed the value developer.
- I removed the definition from the Preferences dialog box: the completion assistant no longer worked.
Thank you for your help,
C.