You're close! Just add @ to the beginning of the qname attribute:
<create qname="@id" type="xs:string"/>
The relevant section of the documentation is Configuration by path vs. configuration by qname:
Attributes are specified by @attributeName, so if the attribute is called "attrib1", one uses @attrib1 in the index specification.