| 1 | <?php |
||
| 13 | class InlineAttributes extends AbstractNormalization |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | protected $queries = ['//*[namespace-uri() != $XSL]/xsl:attribute']; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Inline the xsl:attribute declarations of a template |
||
| 22 | * |
||
| 23 | * Will replace |
||
| 24 | * <a><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>...</a> |
||
| 25 | * with |
||
| 26 | * <a href="{@url}">...</a> |
||
| 27 | * |
||
| 28 | * @param DOMElement $element |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | protected function normalizeElement(DOMElement $element) |
||
| 53 | } |