| 1 | <?php |
||
| 16 | class DisallowAttributeSets extends TemplateCheck |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Test whether the template contains an <xsl:attribute-set/> |
||
| 20 | * |
||
| 21 | * Templates are checked outside of their stylesheet, which means we don't have access to the |
||
| 22 | * <xsl:attribute-set/> declarations and we can't easily test them. Attribute sets are fairly |
||
| 23 | * uncommon and there's little incentive to use them in small stylesheets |
||
| 24 | * |
||
| 25 | * @param DOMElement $template <xsl:template/> node |
||
| 26 | * @param Tag $tag Tag this template belongs to |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | 1 | public function check(DOMElement $template, Tag $tag) |
|
| 39 | } |