oxy_editor: editing parent attributes
Posted: Fri Nov 29, 2013 1:24 pm
Hi,
in my dita-derived docmuent type I'd like to ake the attributes @audience, @product and others visible and editable with oxy_popup (provided they are already set). Now in several cases the suitable place for these markers is not right before or after the element but after the first child element. For instance for everything with a title or tablerows. To use oxy_popup there I'd have to set the edit-parameter to "parent::*/@audience" which is currently not working.
An example to display the diff-attribute :
and with the "advanced" oxy_popup it would look like this:
An example to display the diff-attribute :
It might even be a reasonable extension to your standard dita css!?
Regards,
Patrik
in my dita-derived docmuent type I'd like to ake the attributes @audience, @product and others visible and editable with oxy_popup (provided they are already set). Now in several cases the suitable place for these markers is not right before or after the element but after the first child element. For instance for everything with a title or tablerows. To use oxy_popup there I'd have to set the edit-parameter to "parent::*/@audience" which is currently not working.
An example to display the diff-attribute :
Code: Select all
*[class~="topic/strow"][diff] > *[class~="topic/stentry"]:first-child:after {
font-size: 0.8em;
font-family: "Palatine Linotype", Serif;
content: " (" oxy_xpath("parent::*/@diff") ")";
}
An example to display the diff-attribute :
Code: Select all
*[class~="topic/strow"][diff] > *[class~="topic/stentry"]:first-child:after {
font-size: 0.8em;
font-family: "Palatine Linotype", Serif;
content: " ("
oxy_popup(edit, "parent::*/@diff",
selectionMode, "single",
color, "inherit",
fontInherit, true)
")";
}
Regards,
Patrik