One of the most difficult things to get working in XUL is templates. If you do have problems, perhaps you might find these 30 new template examples useful. Also, you can view them using a simple XUL viewer.