Tagging in Story Editor messing up Structure

I have an XML file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<MailItem attribute1="value1" attribute2="and so on...">
     <Mail_ID>12345</Mail_ID>
     <CustomerName>Mr. Bray</CustomerName>
     <Sale_Date>2015-02-24</Sale_Date>
     <AndOtherElementsToo>Which are not important right now</AndOtherElementsToo>
</MailItem>
It's important to note that this document will only ever have ONE <MailItem> (gauranteed), which makes it a root element. I've tried wrapping this in ANOTHER root element called <MailJob> but that caused problems too. More on that in a minute.
I have an InDesign Template that is very straightforward. No tables, nothing. I import my XML file into my TAGS panel and I go to town tagging various text placeholders with things like Mail_ID, and Sale_Date.  I perform a test IMPORT XML and things look great.  A minor annoyance is if the elements are not in the correct order in the STRUCTURE pane, they won't import correctly, but I can engineer around this by ensuring the elements are produced in a static order. So far so good.
The problem comes when I go to the "letter" part of my template. It begins, "Dear So And So," (literally).  Since I want "So And So" to be the actual name from my data, I need to tag this. I open this up in the Story Editor (since I only want PART of the text replaced) and I select "So And So" and I select the CustomerName tag from my Tag panel.
What happens next is where the wheels come off the wagon and I am in desperate need of help. As SOON as I tag it, three things happen:
The tag appears in the Story Editor. Looks nice. No problem here
A new TAG appear in my TAG pane called "Story"
My Structure pane creates a new element called Story and nests a new element, CustomerName underneath it
When I perform a test import now, the greeting on the letter doesn't get replaced (the data doesn't import) because, duh, the structure doesn't match the data coming in. It's looking for <MailJob><Story><CustomerName>Mr. Bray</CustomerName></Story></MailJob> which I do not have in my XML file.
I learn that setting the Tag Preset Options allows me to change the "Story" default to any pre-existing tag. Great!  This solves problem #2 above (the "Story" tag no longer gets created in my TAGS panel).  But problem #3 still happens; My structure now looks like this:
MailItem
Mail_ID
CustomerName
Sale_Date
MailItem "Dear So And So,"CustomerName
Arg!  All manners of attempting to drag and drop the new, nested CustomerName element to higher in the Structure results in the text being UNTAGGED in the placeholder and the process begins again when I try to fix it.
I thought for a moment that maybe tags embedded within the story editor need to live within a second-level element instead of right under the root element, so I wrapped the whole XML file in <MailJob> </MailJob> elements. This only proceeded to make it impossible to have normal one-to-one text placeholders import/replace correctly (even after I reloaded the tags in the TAGS panel from the newly wrapped file). I didn't even bother testing the within-Story-Editor tags since this is a deal breaker right off the bat.
I can't simply reformat the XML to match what InDesign is expecting because we have ONE xml format (and exporter) for hundreds of document layouts. I *really* don't want to applying XSLT for every quirky change the design group wants to make (e.g. "We want to suddenly start using the state name in the text of the letter, can you update the XSLT file?"), and besides, we run GIANT jobs (thousands of individual documents) and XSLT processing EACH XML file will slow things down more than I want (I've already got a slow process upstream I'm dealing with, I don't want to make it any slower)
I'm going crazy, the pressure is on, and I'm desperate for help.  Why can't I get existing XML elements to import INSIDE of a placeholder (along with static text or other elements) the same way they do when I tag an entire placeholder? What am I doing wrong?

Have you tried underscoring your So_and_So text?
In any case, here's what I get.
Brining in the XML, I get:
Importing a new XML, I get:
Want the sample file?
Mike

Similar Messages

  • Weird Tags in Story Editor Breaking HTML export

    Some of my manuscript files will not export to html. After further exploration, we found that in story editor mode, there are weird arrow type characters around text (ie, superscript numbers or within references)  that seem to be the problem. Once the characters are removed, the html exports fine.
    Any ideas as to why these random special characters/tags show up only in the story editor mode and where they come from?

    Here is what I am seeing in story editor mode. These tags don't show up in the normal layout or preview mode.
    http://stfm.org/indesigntags.png
    Looking to determine what causes these. Could it be leftover Microsoft Word Formating?

  • Display tags as in story Editor

    Hi Indesign Experts,
                  I've a big issue with indesign. I'm trying to display the contents as in Story editor including tags in alert or in some output window panel. But the texts are displayed. But I can't get the tags. It's displayed like small box. I know the tag format displayed in storyeditor is not supporting in panel either alert. Can anyone solve my issue???????
    I need to get as atleast <body><book-part>...Content</book-part></body> like this...
    My story editor view:
    My Panel Content displaying View:
    Thanks and Regards,
    Vel.

    pls refer below,
                   http://www.adobe.com/devnet/indesign/documentation.html#idproducts

  • Cross Reference Sources appearing in Story Editor view but not appearing in the Cross Ref pane

    I have imported a Word document containing working cross references into an InDesign document. The vast majority of these cross references import correctly and link to their destinations within the document, however there are some that are not working. If I view the text frame in the story editor view, I can see these "broken" cross reference sources that came in from the Word doc but on selecting them I can see that there isnt a corresponding entry for it in the cross reference pane. As said, there are only a few that are behaving like this.
    What could be causing these not to appear in the cross reference pane?
    Obviously as they are not appearing in the list of cross references I can't update them, and also, as they are technically broken cross references, because a source exists for them but there is no corresponding entry in the pane, then on export to epub, InDesign crashes (If there is one broken cross reference in a document, export to Epub will crash indesign).
    Also, to clarify, in the Word doc if I navigate to a cross reference that is failing once in InDesign, I can update it properly, and also navigate to its destination in the Word doc, so it's not as though these cross references are broken before coming into InDesign. Also I believe the destinations for these "broken" cross references are coming across properly to indesign too as I can see them in the story editor view.
    Supposed Cross Reference source selected in Story Editor view on left, but no corresponding cross reference highlighted in pane on right:
    Technical Details:
    InDesign CS5.5 - Version 7.5.3
    Microsoft Word 2010, File type .docx

    I have found the possible cause of this problem!
    If a table is used within the Word document somewhere between where the cross reference source is and its destination then that particular cross reference will be broken as described above in my initial post.
    So the "fix" is to remove any occurances of a table in the Word document and the cross references come into InDesign perfectly. This is actually not a fix at all. I need to use tables in the Word document for layout purposes so if they break cross references if they stand between them and their destinations then I have to compromise, i.e. use tables but with no cross references in the document or vice versa.
    I found a similar issue recently with index markers in Word causing a shift on the cross reference tags when bought into InDesign. The "fix" again for that was to remove all index markers from the Word document. See post about this here: http://forums.adobe.com/thread/1043981
    InDesign really needs to sort out the issues with importing of Word documents with cross references in them. If I can't use index markers and tables in a Word document without breaking its cross references then they can't claim to have the ability to import a Word document while maintaining its cross references into an InDesign document. It just doesnt work as ive painstakingly proven.

  • Tagging a story

    Hi All,
    I have xml elements in structure view (see attached Sample.xml file for elements)
    I created three text frame
    I am trying to tag these frame with xml elements shown in structure view as follows
    How I could tag each text frame with diffrent elements shown in structure view
    I try with the following API
    IXMLElementCommands::CreateElement()
    But it creates another xml element with the same name
    Now I have two xml element with same name.
    How I could avoid this duplicacy of xml element
    Please help me to fix the issue.
    Regards,
    Alam

    Yes Petteri_Paananen inorder to avoid duplicacy we can use drag and drop option to tag a story with an existing xml element
    Now I want to achieve this thing  programmatically.
    How i could do this?
    tagging a story with an existing element and there is no duplicacy of xml element in structure view

  • How to edit multiple text boxes (not linked/chained) in story editor?

    I don't have a book with running text, but lots of pages (70) with separate text boxes on each page plus some captions. It is a design for exhibition panels.
    It is really painful to proof read. And taking a print for all these pages to proof read is a waste! Is there no way I can see "all" the text in a view, one by one (without selecting the text boxes on each page) to simply review and edit the text? Is the story editor so basic? (I don't see any options or functions in the story editor window!)

    No way I know of in InDesign but what you could do is export all the content to an InCopy assignment. Open the assignment in InCopy and then check it out. That will give you all the stories to edit in Galley, Story or Layout view.
    InCopy is a part of Creative Cloud. If you're on something earlier, there's little else I can offer unless you happen to be on CS6 since InCopy CS6 can still be purchased.

  • Story Editor greyed out and won't scroll in Indesign 5.5

    I have a document that I edited in track changes a month ago.  When I open it now, the "Edit in Story Editor" in the edit tab is greyed out.   How can I open the story editor panel to see the changes??
    I am running Indesign 5.5 on Vista x64.

    I've never needed to work with Track Changes, so I don't know if it's likely to be any part of the cause, but in gneral, when some part of the program stops working as expected, it's either user error, a bug, or currupt preferences. I can't help with the first two, but here's a link to how to fix bad prefs: Replace Your Preferences
    Also, be sure you've installed the 7.5.2 patch.

  • Weird problem with ToC/Story Editor

    Hi all,
    I write the documentation for a software package. Recently the package has had two new add-ons that require their own manuals, so I reused my original doc and cleared it out to use for the new packages. All good so far until I want to do the ToC. In the original docs, each bit is split into its own story editor, but with the new manuals everything is all in one story and I think that is causing problems with the ToC because sometimes I'll get sections with nothing in them while other Sections have too many subsections. I've been through and checked my styles, but the only way around it right now is to view the ToC in the Story Editor and drag/drop the subsections to the right places. Right now these new manuals are not even 30 pages each, with four or five sections but this is not a tenable situation. I use InDesign 5.5 under Windows. Anyone got any idea? Obviously more detail can be provided.
    Thanks in advance,
    B

    It looks the same and all the text is still in one Story. Can I split stories?
    B

  • Story Editor bug

    Hi.
    I'm currently experience a bug in story editor that is making it very hard to edit text effectively.
    The Story Editor works fine for a short while (maybe five minutes, sometimes a little longer), but then does odd things when selecting text. If I try to highlight a line of text by using Shift+DownArrow, the cursor jumps to the beginning of the story. If I try to move the cursor right with the RightArrow, the cursor doesn't move. Up, Left and Down appear to work okay, and moves the cursor in the appropriate direction. Any combination of shift or command or option with an arrow key does the same thing – moves the cursor to the start of the story.
    This behaviour sticks across closing / reopening the Story Editor, and, as I almost exclusively use the keyboard to control InDesign when editing books, I have to quit InDesign and relaunch to get things back to normal: a big pain and a time waster.
    Interestingly, perhaps, this behaviour only affects a single document; if I have a number of book files open, only one of them will be affected. To clarify, it's not just one InDesign file that shows this behaviour, but only one open file. It happens with different files at different times, but only a single file at a time, regardless of how many are open simultaneously.
    A few of my colleagues, who also use InDesign CC on their Macs for editing, also have the same issue. Is anyone else experiencing the same issue, or have any idea of what could be causing it?

    Can you please send a snapshot of story with the mentioned issue? You can send it to DL-AdobeStory-support<at>adobe<dot>com.
    Also are you facing this issue for a particular project or for all the projects?
    Thanks

  • Need Adobe Plugin that creates a view like 'story editor' but with text formatting

    We would ideally like a third view in InDesign (other than the layout and story editor views) that behaves like MS Word's 'Normal View' ie. a long 'roll' of text like the story editor (no page breaks viewable) but with the text retaining its formatting (like layout view). Ideally anchored images would also be visible. This feature would be very helpful for us when working on long documents such as books when both content and layout is done from within InDesign. Does anyone know if a Plug-in like this exists? If not, would it be difficult for an InDesign developer to create such a plugin?
    Many thanks for your assistance! Heulwen

    so odd, really. just because sometimes workflow separates copy writers and stylists -- sometimes -- it's one person.
    so just to write a document - and edit it normally - you need to use two applications?
    how does that make sense?
    i understand making it *possible* to separate content and style -- but forcing everyone to do so -- even publishers of regular ole multi-page documents -- i mean -- why?
    why does it make sense to force people into such a workflow -- where you cannot even edit your whole document?
    oh -- but you can -- but you have to use a separate application?
    how does that make sense?
    weren't we able to do this in, what was it called: pagemaker?

  • Possible bug with creating hyperlink destination while in story editor

    I'm just curious if anyone else is experiencing this and if it's proper behavior or a bug:
    I'm making manual cross references for endnotes in an ebook. To do this I'm creating hyperlink destinations for each endnote and endnote reference. I'm doing this in story editor because I can see the destination targets, however, I'm having a weird issue where when I hit enter when in the hyperlink destination dialog box, it closes and puts a hard return in my text. If I'm doing this in layout mode, I don't get the hard return--it's only in story editor. Creating a hyperlink and hitting enter on that dialogue box does not have the same behavior. It's just the "New Hyperlink Destination" dialog box that does it.
    Can someone else replicate this behavior: Open story editor for any length story. Select some text (doesn't matter where it is), and go to the hyperlink panel menu and select "New Hyperlink Destination" and then hit the keyboard "enter" [rather than clicking on OK] to close the dialogue box.
    When I do this on my Windows 8 laptop running the latest InDesign CC 2014, I'm getting a hard return that deletes whatever text was selected in the story editor. Is this supposed to happen?

    I'm just curious if anyone else is experiencing this and if it's proper behavior or a bug:
    I'm making manual cross references for endnotes in an ebook. To do this I'm creating hyperlink destinations for each endnote and endnote reference. I'm doing this in story editor because I can see the destination targets, however, I'm having a weird issue where when I hit enter when in the hyperlink destination dialog box, it closes and puts a hard return in my text. If I'm doing this in layout mode, I don't get the hard return--it's only in story editor. Creating a hyperlink and hitting enter on that dialogue box does not have the same behavior. It's just the "New Hyperlink Destination" dialog box that does it.
    Can someone else replicate this behavior: Open story editor for any length story. Select some text (doesn't matter where it is), and go to the hyperlink panel menu and select "New Hyperlink Destination" and then hit the keyboard "enter" [rather than clicking on OK] to close the dialogue box.
    When I do this on my Windows 8 laptop running the latest InDesign CC 2014, I'm getting a hard return that deletes whatever text was selected in the story editor. Is this supposed to happen?

  • How to embed image tag in HTML Editor Standard

    Hi all,
    I am using HTML editor standard in my application. I have placed a custom image to show on header region in custom folder. Now i want to give a image tag in HTML editor with a source to this file path. Now when i press save button, then the complete HTML with the image tag should be saved in the custom table.
    Can anyone help me in this regard?,
    With Regards,
    Sunil Bhatia

    Hi Ajantha,
    You can do the same as well in css..as  below..see sampl styles applied for Tab control...
    Tab.modifyTab
    selectedDownSkin: Embed(source="../images/tab_first.png"); 
    selectedOverSkin: Embed(source="../images/tab_first.png"); 
    selectedUpSkin: Embed(source="../images/tab_first.png"); 
    overSkin: Embed(source="../images/tab_first.png"); 
    upSkin: Embed(source="../images/tab_first.png");}
    I suggest you to use Button control instead of Image control .... so that you have more control as you need a click functionality ...
    So you can use the same to serve your purpose..
    <mx:Button id="btnSave" styleName="saveIcon" buttonMode="true" toolTip="Save comments"
                click="doSave();" />
    and your css is as shown below:
    .saveIcon{
     upSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    upSkin:Embed(source="/assets/icons/save_it_icon.png");  
    overSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    downSkin:Embed(source="/assets/icons/save_it_icon.png"); 
    disabledSkin:Embed(source="/assets/icons/save_it_icon.png");}
    You can use different images for different states of the Button..
    If this post answers your question or helps, please mark it as such.
    Thanks,
    Bhasker Chari

  • Elements tags into Lightroom keywords AND maintain structure?

    Hi, I would like to move from using Elements to using Lightroom. Whilst I realise that I can import my catalogue and photos, which should also create all my keywords, I am concerned that the existing keywords/tags parent/child structure would be lost? They would be created as a single contiguous list?
    Can anyone confirm this is the case, and if so, does anyone know how to go about moving the tags across whilst maintaining the original structure AND remaining associated with the correct photos?
    Thanks,
    Gareth

    Just to add to what Jeremy2 said:
    You do NOT import the photos. Let me say that again. You do NOT import the photos.
    You use the menu command File->Upgrade Photoshop Elements Catalog

  • In Story Editor - auto deselect

    Dear All,
    I have face b/m issue in specific system. In story editor selection get deselected automatically after right click.
    After right click:
    Thanks and regards,
    Balakrishnan R

    Dear Laubender,
    InDesign Version: CS5.5 v7.5.3
    OS: Windows XP
    Yes, i am using startup script to modify the context menu. but, it not affect other systems.
    Thanks for information, finally i have found root cause. I used "DPFUI" plugin for german dictionay. If i remove, issue got resolved.
    Thanks once again, Laubender.
    Regards,
    Balakrishnan R

  • GT60 2PC Dominator 3K Edition is selected as PCDIY! May Cover Story, Editor Choice and Excellent Des

    Recommend by PCDIY!, MSI GT60 2PE Dominator Pro 3K Edition is the King of Gaming Laptop, comes with an anti-reflective 3K panel, delivers outstanding system and graphic performance, also provides various unique features just for the best game experiencing.
    MSI GT60 2PE Dominator Pro 3K Edition is selected as the“Cover Story” ,“Editor Choice”, and “Excellent Design” by PCDIY!, one of the highly professional computer magazines, acknowledging the excellence in quality and performance that MSI can provide.
    The editing group of PCDIY!had a series of professional tests and concluded that, MSI GT60 2PE Dominator Pro 3K Edition is the most powerful gaming laptop in the market.  For enthusiastic players who are always on the lookout for extreme gaming experience, GT60 2PE Dominator Pro 3K Edition is definitely the top choice of that category.
    •Recommended from PCDIY!:
      Premium system and graphic performance.
      Pro Keyboard and Sound Solution
      Excellent gaming experiencing
    •Link: http://www.pcdiy.com.tw/webroot/article.php?art=265
    [ATTACH=CONFIG]5889[/ATTACH][ATTACH=CONFIG]5890[/ATTACH][ATTACH=CONFIG]5891[/ATTACH][ATTACH=CONFIG]5893[/ATTACH]

    In ASIA market, GT60 is really popular, especially the one with GTX880M and 3K panel.
    I think right now onlt GTX880M could play most game smoothly at 2880x1620 resolution,
    so if other brand come out GTX860M/GTX850M with 3K/4K panel, it's not able to play!!

Maybe you are looking for

  • Network Manager SOLVED!

    So, I just installed Arch last night, and I'm really proud of myself for getting almost everything working on my first try. However, there is still one thing that I'm still having problems with, NetworkManager. I installed both it and the NetworkMana

  • Problem in 1GB micro memory card

    hey, i'm using nokia 3120 classic. i have problem on my memory card. when i placed my 1GB micro memory card into my mobile. it show a message "Memory card not formatted". this problem occur when i was moving data from phone memory to memory card, i q

  • Can I stream movies to my tv using from time capsule storage?

    I'm thinking about trying to use the time capsule as my own personal cloud at home.  That way I can stream music and movies to my tv.  Will this work and how do you set it up?

  • Solaris 10 5/08 live upgrade only for customers with serviceplan ?

    Live upgrade fails due to missing /usr/bin/7za Which seems to be installed by adding patch 137322-01 on x86 according to release notes http://docs.sun.com/app/docs/doc/820-4078/installbugs-114?l=en&a=view But this patch (may also be the case for Spar

  • Combine year + period as one dimension for data input

    Existing Hyperion Planning has 2 dimension to keep the year and period. Our users would like to have the data entry web form title to show the year+period e.g. Jan 2009 instead of two rows. Is it very difficult to build such a label or a dimension fo