maartenba/MvcSiteMapProvider — pull request #134 by ArtyomBaranovskiy (2013-03-12 06:57:30+00:00)
Title: Implementation of XML attribute inheritance

Hello,

I'm using your Mvc.Sitemap provider library and recently faced the following problem:
I need my custom xml node attributes to be inherited from parent nodes, if there is no value in current node.
I've already implemented the functionality, so please verify it and tell me, if something is wrong (I've refactored the code a bit).

Short commit history:
1) Implement loading inherited attributes
- The attribute value is got from current node OR from the closest parent
node which contains not-null/non-empty value
- Refactor getting inherited route values to remove several hard-coded
strings and prevent copy-paste
2) Add config property to setup custom inherited attributes

Best regards,
Artyom