I have imported XML that is using a script to map all of the XML tags to styles by name. This is all working correctly, and in the Structure pane I can verify this when looking at "Map Tags to Styles..." (they are all mapped correctly).
However, when I drag and drop any XML element (that is mapped to a style) into the page, it automatically defaults to my self-created "Authors" style no matter what.
This is driving me crazy!!! I swear this was working fine yesterday, I have no idea what happened... Is there a checkbox I need to deselect? Or am I somehow not dragging and dropping correctly? I have read something about a character style possibly being selected (http://indesignsecrets.com/forum/general-indesign-topics/paragraph-styles-not-working), but which is not the problem here.
So, I just found a dumb workaround --
After doing this, everything is appearing on the page correctly as intended.
***However, note that the styles were already correctly mapped by name, but doing it again after selecting all works for some crazy reason.***
***Also note that this was working fine yesterday, without any changes to any settings, that I can remember anyway.***
And of course, I am still looking for a solution so that this is automated as intended, so I don't have to do this weird workaround I'm describing here...