I really like to use NetBeans to develop Cocoon 2.2 applications. NetBeans has great support for XSLT 2.0, XML and Maven. And those are the technologies I use when I develop a Cocoon 2.2 application, so the choice is obvious. To speed up development we can make a new template for a sitemap.xmap
file. Once we have a template we can select it when we add a new file with File | New File.
To create a template we use an existing sitemap.xmap
from a Cocoon 2.2 project. We must right-click on the file and select Save As Template....
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbExPQ8cQi9Rux8qgxwRjRl9tFjHvsnRLn9kw1U9sNQQ3oo7SN7rF-QbPz-sy2CnvUDSRYeJtgJLxFwAKQsVxcTZdElDW-HZN0ziW78Y5Rtn3j8PlULNgUtrUZqdsJ3JjCV0ds3R_RTBOF/s320/netbeans-sitemap-template1.png)
NetBeans opens a dialog window where we must select in which category the template must be saved. We select XML to save the template and then press the OK button.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMeQ08d9aLtBFKEOVoySNlXu2F58pIaP51o0Ml6VGO9g-BBAS-Q_6cjZ9WOvAoX9NrzPQXYytNauJHeWrD563hezg5psO40RwDAX8fG-N7RsFdSor4tDp9Imsgxy289cqLDElR6PyZgt_v/s320/netbeans-sitemap-template2.png)
Now we can select the template when we go to File | New File (or press Ctrl+N in Windows). In the XML category we find our sitemap.xmap template. We can select and press the Next button.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnHtBC0E5IKjPjmT-H9iztF6WOApJc6OV4atJ8FyhV-7NuMqQ2j3KYkxg5yJMj9oaLw9iNgsntLw-cqwDH-FsSRWiYul1skISm2GSs2eBvTEJvxDAonyK1VQl7vKfj5rEkfxrJPtJ1CaV1/s320/netbeans-sitempa-template3.png)
We can type a new name and the location where we want to save the sitemap file. We press the Finish button and we can start editing the new sitemap file.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkc4M3DmJTdRHP7xH_qB-JtxK180wEocv1dRKXmi17s_XIluCMc0ITv2DM_yHZs7Bf9gwvT-FG_hlIUypPvrnhNCnZjtfXavPusI3JQWQHs4J6Vg6IT7kJBT91n0vir8Jf3YD79kIMDWec/s320/netbeans-sitemap-template4.png)