+ # use shlex.split so we can handle quoted strings with spaces
+ # in them, like <link enpoints="foo bar">. Note that there are
+ # documented problems with shlex.split and unicode, so we
+ # convert any potential unicode to a string first.
+ attList = shlex.split(str(tmp[1]))