General XMetaL Discussion
bjorn March 10, 2014 at 1:05 pm
Use element with attributes in the CTM file, instead of just the element tag.March 10, 2014 at 1:05 pmParticipants 0Replies 1Last Activity 8 years, 10 months ago
I'm trying to assign bulletedlist and numberedlist to my template. But my problem is that I have DTD that uses attribute instead of element to decide if its a bulletedlist or a numberedlist being inserted.
When I'm trying to modify the CTM file, I can't figure out how to assign one button to bulletedlist and one to numberedlist.
Is it possible to point the buttons to attributes instead of element in the CTM file?
The easiest way would be to change the DTD to use element instead and attributes, but I can't change the DTD at this point.
I see the same problem with
(bold, underline, italic) buttons.
I'm using XMetaL Author 8.0 – Enterprise.
Bjorn.Derek Read March 10, 2014 at 4:56 pm
Reply to: Use element with attributes in the CTM file, instead of just the element tag.March 10, 2014 at 4:56 pm
The CTM settings that enable the functionality of these toolbar items require that each list have a different main element. This feature has no logic that will allow you to easily get it to do something with attributes.
You will need to create macros that perform the insertion according to the specific markup required. I have no examples for scripts that would work for this type of markup and it could be quite tricky. APIs that would probably be of use would include:
I'm not sure that Selection.ToggleInline would be useful in this case as there are two elements that make up a list, the list element and the list item element.
- You must be logged in to reply to this topic.