These attributes and elements are attributes and elements of the <checkstyle> ant task, which you can use in your build file thanks to the taskdef you have added in point 1. And yes, this <checkstyle> task must be used in your build.xml.

You place it wherever you want. you just need to give its path to the <checkstyle> task using its config attribute.

Email codedump link for Setup checkstyle as part of java project build process