{
parseNamespaceRule(strtok);
}
else if (styleRule instanceof CSSPageRule)
{
final CSSPageRule pageRule = (CSSPageRule) styleRule;
if (ruleName.length() <= 1)
{
return;
}
final String areaName = ruleName.substring(1);
final PageAreaType[] pageAreas = PageAreaType.getPageAreas();
for (int i = 0; i < pageAreas.length; i++)
{
final PageAreaType pageArea = pageAreas[i];
if (areaName.equalsIgnoreCase(pageArea.getName()))
{
final CSSPageAreaRule areaRule = parsePageRule(pageArea, atRule);
if (areaRule != null)
{
pageRule.addRule(areaRule);
}
return;
}
}
logger.info("Did not recognize page @rule: " + atRule);