protected function getUriAttribute($node, &$context, $attributes) {
if (!is_array($attributes)) {
$attributes = array(
$attributes,
);
}
// Find the first attribute that returns a valid URI
foreach ($attributes as $attribute) {
if ($node
->hasAttribute($attribute)) {
$value = $node
->getAttribute($attribute);
$uri = $this
->processUri($node, $context, $value);
if ($uri) {
return $uri;
}
}
}
}