Transforms xlink:href to data-xlink-href. Note that this should only
be used in scenarios where the corresponding HTML element in the data view
does not provide an attribute to handle the xlink:href value.
Example where to use this mapper: For the <img> element, we cannot
directly map xlink:href to a corresponding src attribute. Instead, the
src attribute will refer to some URL to download the Blob data from, while
we need data-xlink-href to store the reference to a given content and a
given Blob property.
Example where not to use this mapper: For the <a> element, we can map
the value of xlink:href to the href attribute in data view.
There is no need to store and maintain the original reference at some
other place. Thus, we would not use this mapper in this case.
Transforms
xlink:hreftodata-xlink-href. Note that this should only be used in scenarios where the corresponding HTML element in the data view does not provide an attribute to handle thexlink:hrefvalue.Example where to use this mapper: For the
<img>element, we cannot directly mapxlink:hrefto a correspondingsrcattribute. Instead, thesrcattribute will refer to some URL to download the Blob data from, while we needdata-xlink-hrefto store the reference to a given content and a given Blob property.Example where not to use this mapper: For the
<a>element, we can map the value ofxlink:hrefto thehrefattribute in data view. There is no need to store and maintain the original reference at some other place. Thus, we would not use this mapper in this case.