final AttributeMap attributes = layoutContext.getAttributes();
for (int i = 0; i < namespaceNames.length; i++)
{
final String namespace = namespaceNames[i];
final NamespaceDefinition ndef = namespaces.getDefinition(namespace);
if (ndef == null)
{
continue;
}
final String[] styleAttrs = ndef.getStyleAttribute(layoutContext.getTagName());
for (int x = 0; x < styleAttrs.length; x++)
{
final String attr = styleAttrs[x];
final Object styleValue = attributes.getAttribute(namespace, attr);
addStyleFromAttribute(node, styleValue);