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:href
todata-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:href
value.Example where to use this mapper: For the
<img>
element, we cannot directly mapxlink:href
to a correspondingsrc
attribute. Instead, thesrc
attribute will refer to some URL to download the Blob data from, while we needdata-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 ofxlink:href
to thehref
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.