*
* Templates are checked outside of their stylesheet, which means we don't have access to the
* declarations and we can't easily test them. Attribute sets are fairly
* uncommon and there's little incentive to use them in small stylesheets
*
* @param DOMElement $template node
* @param Tag $tag Tag this template belongs to
* @return void
*/
public function check(DOMElement $template, Tag $tag)
{
$xpath = new DOMXPath($template->ownerDocument);
$nodes = $xpath->query('//@use-attribute-sets');
if ($nodes->length)
{
throw new UnsafeTemplateException('Cannot assess the safety of attribute sets', $nodes->item(0));
}
}
}