2 Replies Latest reply on Sep 5, 2013 10:17 AM by rriker21

    MapTagsToStyles

    rriker21

      I have a set structure for catalog character styles in that all formats for a particular field are grouped in a style group and have to be set up this way for our scripted workflow. I've manually created a template file for all the corresponding xml tags and I'm trying to use the xmlImportMaps.add function to map those with a script since the names will always be the same. I've used the formatting that I think is correct based on some earlier searching. The problem that I'm running into is that the xml map function doesn't seem to be accepting the style group. Here's my code:

       

       

      myDocument.xmlImportMaps.add(myDocument.xmlTags.item("C_Title"), 
      myDocument.characterStylegroups.item("Title").characterstyles.item("Title"))
      
      

       

      I've also attached a screen shot to show the character styles. Does anyone have any ideas?Screen shot 2013-09-03 at 1.41.36 PM.png