Edit online

Style Elements: -oxy-style Property

Used to configure the style of particular elements.

Oxygen XML Editor allows you to specify the style for an XML element. This is helpful if you want to embed CSS styling to XML elements directly in the XML file you are editing without having to edit the CSS files that are normally attached to the XML files. The property should have an XPath function for the value.

Example: -oxy-style Property

The following code snippet should be added in the CSS file that renders the files for your framework customization:

*{
   -oxy-style:attr(style);
}
Suppose you want to display the <title> elements in your XML document in the color red. You could add the following snippet directly in the XML document:
<title style="color:red;">My Memoirs</title>
Tip: The @style attribute is supported by default in HTML5 documents.