I would add `attribute.LocalName` to the end of the `WixErrors.ExpectedAttribute` call. That will give a message like:

                The {0}/@{1} attribute was not found; it is required when attribute {2} is specified.