Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I am trying to add header cells to my custom troubleshooting table. I am following the tutorial in Styler help:
I add a name in the Name field, and 'Possible Cause' or '' (I tried both methods) in the XPath field. When I click OK the blue circle spins a bit and the dialog closes, but there are no new cells listed in the Generated header cells field:
I checked the sfes, and nothing was added there either.
Am I doing something wrong, or does this feature not work for some reason? We are running this on Editor/Styler 7.1. and using DITA 2.0 as our architecture.
I am wondering if after all these years you found a solution or not. I'm currently using the Generated Cells and just getting no content showing at all.
Hello,
I believe this question may have been answered in your post related to Generate a Dynamic table with Arbortext styler
If you now have the answer could you please note this as 'Solution'
This will enable other customers with the same question to know there is an available solution and where they can find the details.
I think you have a problem with your XPath expressions. When you ask for "/LongTitle", the slash at the beginning indicates you want it to look for that element at the root of the document, not in the current context. If you want to get the LongTitle element as a child of the current element (the Identification element if I'm reading the original post correctly), you should use "./LongTitle" (note the dot before the slash), or simply "LongTitle". So, try rewriting your Regulation expression like this:
concat(string(LongTitle), ' ', string(Id))