Does Oxygen Web support more than CSS for Author mode style?
Posted: Tue Jun 17, 2025 4:35 pm
We completed a prototype with Oxygen and learned a few things on the way. One issue we ran into was the ability to style the XML content in the way we need to style it.
One example: CSS can only access an element's attributes, not sibling, child or parent attributes.
Very simplified XML looks something like this: <a y="2"> <b z="1" /> </a>
Our CSS selector matches <a>. Our CSS style requires a call to an Oxygen function that needs the values of both the y and z attributes. Not possible. CSS selector for <a> cannot see <b>'s attributes. If we match <b>, it cannot see <a>'s attributes.
Another example: CSS gets complicated when XML is not displayed top to bottom, but reordered and side-by-side.
No example XML to show. There may be a way to do this with CSS, but we're short on CSS expertise. If XML was structured a bit differently, which in some cases we may be able to make happen but in other cases not, CSS might be easier to figure out and/or simpler.
Does Oxygen Web support anything that would help us here? We were thinking something that goes between the XML and CSS (e.g., XML + ??? + CSS) like XSL or a custom hook. Or is XML + CSS the only option available?
Thanks!
Kelly
One example: CSS can only access an element's attributes, not sibling, child or parent attributes.
Very simplified XML looks something like this: <a y="2"> <b z="1" /> </a>
Our CSS selector matches <a>. Our CSS style requires a call to an Oxygen function that needs the values of both the y and z attributes. Not possible. CSS selector for <a> cannot see <b>'s attributes. If we match <b>, it cannot see <a>'s attributes.
Another example: CSS gets complicated when XML is not displayed top to bottom, but reordered and side-by-side.
No example XML to show. There may be a way to do this with CSS, but we're short on CSS expertise. If XML was structured a bit differently, which in some cases we may be able to make happen but in other cases not, CSS might be easier to figure out and/or simpler.
Does Oxygen Web support anything that would help us here? We were thinking something that goes between the XML and CSS (e.g., XML + ??? + CSS) like XSL or a custom hook. Or is XML + CSS the only option available?
Thanks!
Kelly