By default the Magento XML sitemap and canonical URL features ignore categories and write all URLS as
www.example.com/model1a
It appears that these features can't use categories because a product can be under more than one category. However, a product can only be under one attribute set, and it just so happens that my attribute sets line up pretty well with my base level categories so I was wondering what changes I would need to make to get Magento to use attribute sets in the XML sitemap and canonical URL tags? For example, if product "Model1A" was of attribute set "Foo", I would like the XML sitemap and canonical URL to show:
www.example.com/foo/model1a
I've been looking around for a bit but could not find a straight forward explanation about this. I suppose for the canonical URLs I could disable the feature and edit a phtml template to include the tag manually the way I want to build it, but I'm particularly lost when it comes to changing how the XML sitemap is generated. Any suggestions?