First generation wikis are used to collaborate on content. Second generation wikis (a.k.a Application Wikis) can be used to create collaborative web applications. XWiki can be used either as a first generation wiki or a second generation one.