/*
 * Copyright (c) 2017 XMLmind Software. All rights reserved.
 *
 * This file is part of the XMLmind XML Editor project.
 * For conditions of distribution and use, see the accompanying legal.txt file.
 *
 * CSS styles adapted to editing XHTML 1.0 or 1.1 in XMLmind XML Editor.
 *
 * Same as xhtml.css, except that the background-color style property 
 * is applied to table elements. 
 */

@import url(xhtml.css);

table[style*="background-color:"],
colgroup[style*="background-color:"],
col[style*="background-color:"],
thead[style*="background-color:"],
tfoot[style*="background-color:"],
tbody[style*="background-color:"],
tr[style*="background-color:"],
th[style*="background-color:"],
td[style*="background-color:"] {
    background-color: concatenate(xpath("normalize-space(if(contains(substring-after(@style, 'background-color:'), ';'), substring-before(substring-after(@style, 'background-color:'), ';'), substring-after(@style, 'background-color:')))"));
}

