Although it's not mentioned in the documentation, the classpathref= attribute appears to work with <typedef> / <taskdef>. Suggest you add an example down the bottom of the <typedef> doco using this, and potentially a one liner at the top of the page saying it exists.
Well spotted, doc has been updated will be in next release of ant.
couldn't the documentation be updated between releases?