Handling resources before attributes so attribute expressions have access to local resources.