fixes issue #109 attr refs should not be case sensitive

- additionally, strip whitespace around xref labels
Merge pull request #111 from mojavelinux/case-insensitive-attr-refs

Fix issue #109, attr refs should not be case sensitive