Just for the record:You must fix your document. You're asking for a non conformant behaviour and libxml2 will not provide this, sorry, that's the only alternative. http://www.w3.org/TR/REC-xml#sec-attribute-types "Values of type ID must match the Name production." [4] NameChar ::= Letter |
Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender[5] Name ::= (Letter | '_' | ':') (NameChar)* ... Aleksey |