set_alt_attr | R Documentation |
This finds the attribute curly braces after an image declaration, extracts the alt text, and adds it as an attribute to the image, which is useful in parsing the XML, and will not affect rendering.
set_alt_attr(images, xpath, ns)
images |
a nodeset of images |
xpath |
an XPath expression that finds the first curly brace immediately after a node. |
ns |
the namespace of the XML |
the nodeset, invisibly.
this function assumes that the images entering have a curly brace following.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.