Is there a way for preventing the placeholder from appearing if there is not content for it?

I am creating a structure with tags and place holders.  However, not all my entries have all the same information. For example, my first entry has a 3 line address (123 West Street, Suit 23, Lincoln NE 68521) but my second entry only has 2 line address (456 North Street, Lincoln NE 68521).  When imported into my structure, the second address reads 456 North Street, <address2>, Lincoln NE 68521. My question for you is, is there a way for preventing the placeholder from appearing if there is not content for it?

IJWAA,
A work-around if you don't already use XSLT (to avoid having to) is to not have placeholder text, just use empty tags in your text layout that correspond to your incoming XML structure (any unused by the incoming structure IN ORDER, will be skipped). So long as you don't mind the blank line (rather than left over placeholder copy).
If you had placeholder copy in your text box (<address2> for example) look at it using the story editor window (edit > edit in story editor, or command-y/control-y) so you can see the surrounding tags... style the surrounding tags by selecting them with the cursor and applying character or paragraph styles (with text in between the tags at the time) and then delete only the placeholder text from the middle of the sandwich, leaving the tags in tact. Trying to do this without being in the story editor will not work.
Also, when importing the XML, I believe you'll still need to use "merge content" and "don't import empty white space" as you have been in order to replace placeholder text in any areas you had it.
For situations when you have a mixture of dynamic and static text in the same text block and you are merging data (more so when the placeholder text has been deleted as I've suggested above but the dynamic tags for the possible incoming text are still there), you can use a tag you've created (I call mine "staticText") in your layout to wrap ANY bits of text you don't want to accidentally delete when the surrounding tags get populated or not, using the merge option upon importing your XML. Just be sure never to use "staticText" as an actual tag in your structure or surrounding incoming data. The text contained within staticText tags in your layout will be ignored by incoming data, and won't accidentally get deleted when it's sandwiched between two sets of tags that are dynamically populated when merge content is the import option.
In my example below I'm using brackets/carats with the tag name instead of the color coded tag icon you see in the story editor, also I've used LB here to indicate a regular line break in Indesign and SP a regular space character in indesign:
[staticText>Name:<staticText][firstName>Abc<firstName][staticText>SP<staticText][lastName>Xyz<firstName][staticText>LB<staticText]
[staticText>Address:<staticText][address1><address1][staticText>LB<staticText]
[address2><address2][staticText>LB<staticText]
all other tags on following lines...
This should just leave a blank line for address2 when no data comes in for it. I'm assuming you have line breaks, if not, all the better.

Similar Messages

  • Is there a way to prevent the display from waking up?

    is there a way to prevent the display from waking up when using the (play, next, volume up/down, etc.) keys for itunes?

    How to stop the searching on dashboard when one opens the dashboard...
    If you search, there are more threads on this topic in this forum.

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • In fullscreen mode, is there a way to prevent the page from shifting down when displaying the menu and tabs?

    In fullscreen mode (F11), when moving the mouse toward the top of the screen to display the tabs & stuff, the page displayed is shifted down. This makes it annoying when returning down with the mouse - you want to reach a certain link, for example, but your target gets shifted up once the tabs & stuff is hidden back.
    Is there any way to make the tabs & stuff display 'above' the page content, like on another layer?

    Is it the web page display that is changing its own position, or is it something
    about the toolbars that is pushing the page down? I have the same issue with
    my browser using an add-on to show a multiple line bookmark bar.

  • Is there a way to prevent the Dashboard from running?

    Is there a way to make the Dashboard only calculate after the prompt values are selected?
    Thanks in advance

    How to stop the searching on dashboard when one opens the dashboard...
    If you search, there are more threads on this topic in this forum.

  • In Firefox 3.6.10 I was able to go forward and backwards between pages without the page defaulting to the top of the page. Is there any way to prevent the page from automatically moving to the top when using the forwards and back buttons in Firefox Four?

    I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?

    Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.

  • Is there a way to prevent the ringtone from playing through my headphones when listenting to music?

    I am exceedingly concerned about my hearing, so when listening to music through my headphones, I always turn the volume down. However, when I receive a call, the ringtone, which is works on a separate volume control from the music and other apps, rings at its normal volume - even if the phone is set to silent. I find this exceedingly troublesome as I have to lower the ringtone volume when I'm using my headphones as well and turn it back up when I'm done.
    Is there a way to stop this? If I deliberately set the phone to silent, shouldn't the ringtone be silenced, regardless of whether I have the headphones plugged in or not?

    Is it the web page display that is changing its own position, or is it something
    about the toolbars that is pushing the page down? I have the same issue with
    my browser using an add-on to show a multiple line bookmark bar.

  • In Lion Mail is there a way to keep the messages from appearing?

    Sometimes I get unsavory images in my Mail that I don't particularly want my children to see if they happen to check the Mail. The Junk filter doesn't necessarily catch all of them. With the new Mail, the images show up when the message is selected, even if only to delete it. If I remember correctly, in the old Mail, there were buttons beside the message-line or heading that allowed the email to be selected without actually opening it up. These could then be deleted without opening the message. Can this still be done in Lion?

    u can slide the message viewer all the way over to the RIGHT, thus hiding the message from view, and then delete at will from the expanded left column.
    Message was edited by: coocooforcocoapuffs: can't tell my left from right yet.

  • Is there a way to prevent hidden calendars from appearing in Notification Center?

    I have 4 calendars syncing with my iPhone -- now running iOS5.
    One of those calendars is my Google Calendar, which includes birthdays of all my contacts.
    However, the iOS also offers a special "Birthdays" calendar that pulls birthdays from the Contacts app.  I have that calendar hidden because it is duplicative of my Google Calendar.
    Yet, despite the fact that it is hidden from showing in the Calendar app, those entries appear in the new Notifications Center.  As a result, birthdays appear twice.
    While this is far, far from a big deal and certainly something I can live with, it would be nice if hidden calendars didn't appear in Notification Center.  Is there a setting somewhere that I'm missing?

    Well, since you have multiple calendars synced to one account, this may not work.  I was syncing one Yahoo calendar and that's the one that was giving me the duplicate entries on the notification screen.  On my iphone I went to Settings -- Mail, Contacts, Calendars -- chose my Yahoo account (which was already inactive) and turned off Reminders (which curiously has an icon next to it that looks like the iOS5 reminders app). I've noticed that not all of my email/calendar accounts have this option, though.  Very strange.

  • In Mail, is there any way to prevent the ampersand 20 symbol in downloaded attachments?

    Long title, but as it suggests, every time I download an attachment in Mail that has a space in the title, Mail puts in %20 to replace the space (ascii symbol for space).  I'd like to prevent this and have attachments stored under the name they are sent.  Any way to do this?

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there any way to prevent the copying of text from Presenter's Notes tab?

    PowerPoint Notes Page text exposed on a Presenter Notes tab can be selected and copied from the Notes tab and then pasted into any text document. Is there any way to prevent the copying of text short of not providing notes text at all?

    Hi Robingo,
    Excel is strictly treated as a data source and Siena only imports the data in your tables, not the formatting.
    If there is some business logic behind the formatting, you could mimic the same logic in Siena. For example, the font is bold or red if a value is in a certain range, the font is in italics if the data is for a specific customer, etc.
    Thanks
    Robin

  • Is there a way to prevent the No Sender emails that flood my email?  I know how to get rid of them but I want to prevent them.

    IIs there a way to PREVENT the No Sender emails?  I know how to delete them but I don't want them at all.

    Knitnutty
    To help other members answer your question, give as many details as you can.
        •    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
        •    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "Mail 10.x".
        •    Describe the problem, and include any details about what seems to cause it.
        •    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    I know this sounds like a bunch stuff, but we need to know many things before we can get our minds around your system, so then we maybe can help your with filtering these some.
    Include also:
    Who is your email provider? DO NOT post your email address!!
    Did this just begin recently? Always? If recent, what can you think of that has changed recently?
    CCC

  • Is there a way to stop the OS from switching to a newly opened app?  I would like to be able to continue what I'm doing while I wait for an app to launch and not get interrupted by a forced entry into the app.

    Is there a way to stop the OS from switching to a newly opened app?  I would like to be able to continue what I'm doing while I wait for an app to launch and not get interrupted by a forced entry into the app.
    As an example, I'm going to my email in safari, while I wait for it to load, I open an excel document, and the OS decides excel should be the front app, so I go back to safari so I can enter my login info, but halfway through my password the OS decides that excel is where I should finish typing my password.
    VERY ANNOYING.  Can I open apps in the background?

    Thank you everyone for the suggestions. J D, I'm not a terminal fan, but I'm sure it works.  I found a solution that I can use in the dock from another post. 
    Annoyed by Mac OS
    Works great and allows me to maximize those multitasking minutes.

  • Is there a way to prevent ibooks author from shutting down after just one or two uses of the alpha tool?

    Is there a way to prevent ibooks author from shutting down after just one or two uses of the alpha tool?

    Hello One Job at a time,
    Deleting the application will not delete your projects.
    Normally I keep all my work files on a separate drive.
    If you command click on the title name of your project you will get a drop down path to show you the location of your book project.
    or you can click on the drop down triangle beside its name to duplicate.
    Just remember where you saved the file too.
    In your applications folder on your computer select the iBA icon and press delete and also erase / empty the trash can.
    You can then go back to the APP STORE and install iBA from new again.
    I hope this helps.
    Regards,
    Nigel

  • Is there any way to prevent web.xml from any change ?

    hi all,
    we have a filter in web.xml. Now we want to prevent it from any change in future. I mean after making a war(EAR) no one can change the filter in web.xml. if he chaged it then he will not be able to re deploy the application.Right now it is in web.xml so one can easily change it and then he can redeploy the application.
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    I think you could use some third party software to lock the folder like FolderLock, just make sure others ppl cannot access your file should be fined.
    This is my stupid solution only,cheers.

Maybe you are looking for

  • Sending PO through EDI

    Helo Gurus Please will u be able to explain to me how to maintain these condition component when u want to send a PO thru EDI.... Sending a Purchase Order via EDI (MM-PUR-PO)   Use Prerequisites Application Message Control The following condition com

  • Tablespace or datafile  creation during recovery

    Hello During recovery, If there is new tablespace or datafile added in archivelogs or redologs I have to manually issue: alter database create datafile .. as .. Why doesnt oracle automatically create the datafiles ?

  • Muse Login Page

    Hi. Am I able to create a php login to my site in Muse? I currently have a site that was created in Dreamweaver. There is code for php from password_protect. Is it possible from me to add that code to the site I am creating in muse?

  • Issue with OAS Connection Object

    we have running project in which Migration from Weblogic 8.1 ,Oracle 9i R2 Rel to OAS 10.1.3, Oracle 10g we running issues with one of the module which we are trying to insert to temporary table which is failing and no exception found at console. her

  • How to define the Update key ? Checkbox disabled !!!

    I'm trying to update a dimension using IKM SQL Incremental KM but the Key checkbox is disabled for all fields. Why is that? Is it because a primary key has been defined on that datastore in the module? Under Interface->Controls->Constrains the primar