full user_catalog.xml generation logic