if ($attr->namespace_uri() == 'http://template.sesse.net/' && $attr->name() == 'id') {
$id = $attr->value();
if ($clean) {
- // FIXME: this won't work since we're not in the right namespace
- // $child->remove_attribute($attr->name());
+ $attr->unlink_node();
}
}
}
# FIXME: use varargs here
function XML_Template_alternate($tag, $array, $elems)
{
- $i = 0;
$num = count($elems);
for ($i = 0; $i < count($array); $i++) {