def ConcatAttr(scope, attr, slash=False):
	"""Combine the SCOPE and ATTR to give the canonical name of
	the attribute."""

	if scope:
		if slash:
			sep = '/'
		else:
			sep = '.'
		return '%s%s%s' % (scope, sep, attr)
	return attr