maxLength is an attribute of the c:de element, and the above call (where spec is an Element object) is the correct call to do this. However from the XML (not XSL) fragment above you'd see that the...