SetAttributeOnElements
class SetAttributeOnElements extends AddAttributeValueToElements
Set an attribute on matching elements
Constants
XMLNS_XSL |
XSL namespace |
Properties
protected Document | $ownerDocument | from AbstractNormalization | |
protected string[] | $queries | from AbstractNormalization | |
protected string | $attrName | from AddAttributeValueToElements | |
protected string | $value | from AddAttributeValueToElements |
Methods
void
normalize(Element $template)
Apply this normalization rule to given template
Text
createPolymorphicText(string $textContent)
Create an xsl:text element or a text node in current template
bool
__construct(string $query, string $attrName, string $value)
No description
array
getValues(string $attrValue)
Explode a string of space-separated values into an array
Details
in
AbstractNormalization at line 40
void
normalize(Element $template)
Apply this normalization rule to given template
in
AbstractNormalization at line 57
protected Text
createPolymorphicText(string $textContent)
Create an xsl:text element or a text node in current template
in
AbstractNormalization at line 69
protected array
getNodes()
Query and return a list of nodes of interest
in
AbstractNormalization at line 83
protected bool
isXsl(DOMNode $node, string $localName = null)
Test whether given node is an XSL element
in
AbstractNormalization at line 94
protected string
lowercase(string $str)
Make an ASCII string lowercase
in
AbstractNormalization at line 99
protected void
normalizeAttribute(Attr $attribute)
No description
in
AbstractNormalization at line 103
protected void
normalizeCdataSection(CdataSection $comment)
No description
in
AbstractNormalization at line 107
protected void
normalizeComment(Comment $comment)
No description
in
AddAttributeValueToElements at line 53
protected void
normalizeElement(Element $element)
No description
in
AbstractNormalization at line 115
protected void
normalizeNode(DOMNode $node)
No description
in
AbstractNormalization at line 139
protected void
normalizeText(Text $node)
No description
in
AbstractNormalization at line 146
protected void
reset()
Reset this instance's properties after usage
in
AddAttributeValueToElements at line 32
__construct(string $query, string $attrName, string $value)
No description
at line 15
protected array
getValues(string $attrValue)
Explode a string of space-separated values into an array