Checks if the attribute value meets the lexical constraints of its type.
1.parameter dtdPart : the children of the
DOCTYPEnode2.parameter attrDecl : the declaration of the attribute from the DTD
returns : a function which takes an element (XTag or XDTD ATTLIST), checks if the attribute value meets the lexical constraints of its type and returns a list of errors