Adding Conditional-Text conditions in bulk.

We are importing text from excel using XML via XSLT.
We would like to mark certain prices (excel columns or Indesign tags) as conditional text.
We are having a great deal of difficulty in applying conditional text using find-and-replace within Indesign, because of the variation in formatting of prices.
Below two products, where product B includes a thousands comma separater, a Tax Staus marker in the UK and a Truck Shipping marker in the USA all of which need to be included within the conditional text.
Product
UK (X1X)
Europe (X2X)
USA (X3X)
A
£1.99
3.50E
£3.59
B
£1,199.00 XV
3.500.00E
$3,590.00 T
Is it possible to apply conditions to tags?
Is it possible to apply conditions using XML or XSLT?

This problem was solved by a response to a more focussed question about GREP searching.
applying the conditions is straightforward once the correct strings have been GREP'd

Similar Messages

  • Delete text option when deleting a Conditional Text Style

    I now have a document with my first real Conditional Text items. We have many distributors with different product numbers. I am using Conditional Text for the product numbers. Great. But! what if we lose a distributor? Right now, if I delete a Conditional Text condition, I am asked what condition I would like to replace it with. What I would probably like to do is actually delete all of the text assigned to that condition, not just delete the condition. As it is now, if I delete the condition, I still would have to go back and delete the text relating to that condition. Not too handy.

    JustBob wrote:
    That Find/Replace Format does not seem so obvious to me...
    Find the condition-to-drop
    then Replace with Format empty...That wouldn't just change the format to unconditional? It would actually delete the text?
    Well, only one way to find out. Yes! You are correct. I would never have thought of that. Thank you.
    Now that you mention it, I'm not exactly sure why it seemed obvious to me. The real reason that it works isn't simply that Replace with Format is empty, but rather that both Replace with Format and Change to are empty.
    If you Find what: specific text - say letter "a" - whose Find format: is <conditionname> and Change to: letter "b" with Change format: Empty, "a" changes to "b" and the condition stays the same.
    If you Find what: specific text - say letter "a" - whose Find format is <conditionname> and Change to: is empty with Change format: <differentconditionname>, or different text color, or <characterstylename>, letter "a" remains the same, and the condition, text color, or character style, is applied.
    It takes a while to get used to.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Conditional text adding paragrpah returns?

    I'm trying to show/hide instructor pages of text for a student copy of a book but, when I hide the instructor information (styled as conditional text) paragraph returns, with conditional markers, are being added.
    What may be causing these, and how can I avoid them? This doesn't happen in the source files I received from my client, but I can't see what I'm doing differently in my template that would cause this.
    Thanks!!!

    Is there a fix for this? I have a situation when I have a bulleted list and need to conditionally tag the first 5 elements as A and the second 5 as B. When I hide A, the B list shows, but there's an empty bullet before them with the A marker in it. Tried conditionally tagging the entire element (including the paragraph symbol), but that doesn't help.
    Thanks,
    Barry

  • Issues using Oracle Text conditions

    Hi all,
    I'm facing an issue executing a query on a VIEW using Oracle Text Indexes.
    The DB version I'm using is "Enterprise 9.2.0.5".
    TEST_VIEW is an sql-view that has a query on several tables where one of them has two Oracle Text indexes, one on field FIELD2 and another on FIELD3
    executing this query I get 10 rows:
    select *
    from TEST_VIEW
    where FIELD1 = 1001 -- regular condition
    and (contains(FIELD2, 'Blitz') > 0 ) -- Oracle text condition
    But if I add another condition on an existent Oracle Text Index, I'll get only 1 row:
    select *
    from TEST_VIEW
    where FIELD1 = 1001
    where (contains(FIELD2, 'Blitz') > 0 OR contains(FIELD3, 'Blitz') > 0)
    As you can see the third condition was added using a logical OR, so I should get at least 10 rows ...
    Can anyone help me ?
    ThaNks in advance.
    Eduardo.

    Eduardo,
    Without a full test case, it is hard to see if there is something wrong or not. I did the following, and all worked fine on my 10g instance. I had to assume some things, but I at least think I have the basic gist of your inquiry in this example. Run it/change it to match your situation, and post back when you can.
    Thanks,
    Ron
    CREATE TABLE Z_TEST1 (
    FIELD1 VARCHAR2(30));
    INSERT INTO Z_TEST1
    VALUES ('QUICK');
    INSERT INTO Z_TEST1
    VALUES ('BROWN');
    INSERT INTO Z_TEST1
    VALUES ('FOX');
    INSERT INTO Z_TEST1
    VALUES ('QUICK');
    INSERT INTO Z_TEST1
    VALUES ('BROWN');
    INSERT INTO Z_TEST1
    VALUES ('FOX');
    CREATE TABLE Z_TEST2 (
    FIELD2 VARCHAR2(30));
    INSERT INTO Z_TEST2
    VALUES ('JUMPED');
    INSERT INTO Z_TEST2
    VALUES ('OVER');
    INSERT INTO Z_TEST2
    VALUES ('LAZY');
    INSERT INTO Z_TEST2
    VALUES ('DOG');
    INSERT INTO Z_TEST2
    VALUES ('QUICK');
    INSERT INTO Z_TEST2
    VALUES ('BROWN');
    INSERT INTO Z_TEST2
    VALUES ('FOX');
    commit;
    CREATE VIEW TEST_VIEW
    AS
    SELECT Z_TEST1.FIELD1 AS "FIELD1", Z_TEST2.FIELD2 AS "FIELD2"
    FROM Z_TEST1, Z_TEST2;
    CREATE INDEX Z_TEST1_IDX ON Z_TEST1(FIELD1)
    INDEXTYPE IS CTXSYS.CONTEXT;
    CREATE INDEX Z_TEST2_IDX ON Z_TEST2(FIELD2)
    INDEXTYPE IS CTXSYS.CONTEXT;
    select *
    from TEST_VIEW
    where CONTAINS(FIELD1, 'FOX') > 0;
    14 rows
    select *
    from TEST_VIEW
    where (CONTAINS(FIELD1, 'FOX') > 0 OR CONTAINS(FIELD2, 'FOX') > 0);
    18 rows

  • Removing conditional text tags in a batch

    Hi everyone, using TCS2 on Win-7 64-bit.
    We have been using some conditional text tags in our writing, and now we are looking at adding a few new ones and taking a few away. Is there a way to remove a batch of conditional text tags from a whole bunch of FM documents, all at once? It is a tedious process to do it manually, doc per doc, tag per tag... wondering if there is a script, or anything like that?
    Thanks,
    Adriana

    I believe there are a couple of utilities to manage conditional tags; you might try searching Leximation's tool list:
    http://www.leximation.com
    And, there could definitely be Framescript-based scripts, either generic or written customized for your requirements. Here's the FrameScript group:
    http://groups.yahoo.com/subscribe/framescript-users

  • How to Create A Conditionally-Texted Paragraph Element

    I'm creating a multi-purposed document where I need to add a section of conditional text on each page, but not always in the same place on the page (so I don't think a Master Page solution would work). Rather than have to select the text and manually apply the condition each time, I would like to create a paragraph tag that is already defined with that condition so my users can just select that tag and enter the text. The paragraph designer doesn't provide the ability to specify a condition text setting for newly created paragraphs.  I tried creating  a new reference page and adding a conditionally-texted text box within a graphics frame, and then specifying that for the Below Pgf setting for a new paragraph element, but it just imports the graphic frame from the reference page and the text within cannot be editing.
    Suggestions?
    Thanks

    I would create a unique paragraph tag and then apply a conditional
    text setting to all tags of that type with a FrameScript.
    An alternative may be to set up a paragraph tag with the conditional
    text settings already applied and then copy-and-insert it with a third
    party tool such as ClipMate or Autotext, but I don't know that the
    conditional text setting is "sticky" when processed through a
    third-party solution. You'd have to test it a bit.
    Art
    Art Campbell
                   [email protected]
      "... In my opinion, there's nothing in this world beats a '52
    Vincent and a redheaded girl." -- Richard Thompson
                                                          No disclaimers apply.
                                                                   DoD 358

  • RH8 After conversion, added space after conditional tag phrase

    We just installed RoboHelp 8. After converting my 3 projects from RH7 to RH8, the system added spaces in between words of a condtional build phrase. That's great since it's much easier to see the words -- that was an improvement over version 7.
    However, it's also adding a space after the conditional build phrases, which is incorrect. It adds a space before a comma, adds a space before a period if the conditional build phrase occurs at the end of the sentence, etc. But it doesn't look like it does this in every case...I'm not sure why it did this, but it only happened after the conversion to 8.
    The generated help appears as in the example below. Note the space before the period in the first sentence and the space before the comma in the second sentence. It has done this on quite a few pages.
    Customer Definition Detail
    This page allows you to add a new customer or to edit an existing customer . If you are adding a customer , you must complete the detail information and then save it.
    Tried to upload the example of conditional build phrase, but it's not letting me.
    Thank you in advance for any help you can offer. This would be a lot to manually repair, so I'm hoping someone knows of a way to fix this using a setting.

    Thanks for your posts.
    After trying everything I could think of the only thing that resolved the issue was replacing any instance of back-to-back conditional text followed by any punctuation with two sentence exactly the same except for the conditional choice.
    For example, the original sentence (color indicates conditional build tag):
         For customersmembers, this field indicates transaction limits.
    would be changed to these two sentences:
         For customers, this field indicates transaction limits.
        For members, this field indicates transaction limits.
    I'll submit this as a RoboHelp 8 bug in the forums (if it hasn't already been submitted).

  • Frame 8 crashes when showing all conditional text

    When I try to Show ALL conditions in my Frame 8 file, Frame crashes. I just recently installed CS4 on my system, but other than that, nothing has changed. I have had no problems with conditional text and this file before. Wondering if anyone has had this issue and knows a workaround or fix. Thanks, sandra

    Good, then you're all patched up, that's great.
    I don't use conditional text at all, but several folks around here do and will be along to offer some help.
    Can you identify whether this crash is a result of adding a new condition recently? Had showing all conditions had previously worked?

  • RH and FM conditional text

    I am evaluating alternatives to our old WWP setup. With that
    setup, we were able to process our conditional FM source
    automatically into various outputs. The WWP project file interacted
    with FM to control the conditional settings for different jobs.
    With RH 7 for HTML, acccoring to the online help, we must set
    the conditions manually in Frame before we run RH. Is this correct?

    Thanks. At this point, I'm trying to figure out what to do
    first.
    The Help says to apply FrameMaker Conditional Text Build
    Expressions before adding any FrameMaker files. Since I haven't
    added any FM files, RH can't have any information about the
    conditional tags we've defined in FM. Does this mean I have to
    define some conditional expressions in RoboHelp to match the ones
    we're using in FM, and then use these RH expressions when importing
    the FM files?
    The RH Help says that when I select the "Apply FrameMaker
    Conditional Text Build Expression" option, "only the filtered
    content is imported into RoboHelp, based on the conditional text
    build expression." This suggests that I can use one expression to
    load one "flavour" of my FM document into the RH project. It
    implies that if I want a separate flavour for a separate output, I
    will have to change the expression and add the FM files again. Is
    that correct?
    Does it make a difference how the conditions have been set in
    the FM files when I add the files to RH?
    What is the FrameMaker Conditional Text Build Expression? Do
    I need to create a build expression named "FrameMaker" for use when
    adding FrameMaker files?
    Sorry for all the questions, but I'm having a hard time
    following the Help.

  • Conditional text to Acrobat

    Dear,
    For our educational works (typesetting) we use conditional text for adding the solutions.
    At the end of the job we have to make 1 pdf with solutions and 1 without solutions.
    We don't use normal layers in Indesign because you have the problem that you can't anchor layers. So when there are a lot of corrections you always have to move your layers also, that's too much work.
    The big advantage of normal layers is that, when you make a pdf, acrobat takes that layers into the pdf.
    So then we can choose with the layer option of Acrobat that we want to view the answers or not (same like in Indesign).
    When we work with conditional text we don't find any option in Acrobat where I can switch off the conditional text.
    I'm afraid Acrobat 'flattens' the indesignfile...
    So my worry is that we now have to make a script for putting conditional text as a layer in Indesign at the end of the job and then make an e-pdf.
    Or is there a way in Acrobat I can see the 'layers' of conditional text like I see them in Indesign?
    Thanks in advance!

    I don't think you can do this in Acrobat, but you should be asking this in the Acrobat forums. Here's a link:
    http://forums.adobe.com/community/acrobat/creating__editing_%26_exporting_pdfs

  • Show/Hide conditional text at a book level

    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana

    adrianaharper wrote:
    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana
    I don't have FrameMaker available right now, so I'm working from memory, using the traditional FrameMaker menus, rather than the FM 9 tools.
    Select all the files in the book window. With the book window active, open the View menu and look for Conditional Text. Your settings here apply to all selected files in the book window, so it's possible to set conditions on all or some files files. Ctrl+Click to select non-contiguous files; Shift+Click to select a range of contiguous files.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • (FM8p277) Crashes when saving first doc in book after changing conditional text display

    That was a mouthful :-)
    Okay, this happens with any of the books that I work on --- it never happened with Frame 7.
    I have a book containing several documents.
    The documents contain several conditional text segments.
    Start new Framemaker session, open book, open all documents.
    Change conditional text display (from Show All to Show Selected, or vice-versa).
    From the book, choose Save All (or from the *first* document, choose Save). The following text appears in a 'FrameMaker dialog': "File <filename of first document>.fm has changed on the disk since you last opened or saved it. Someone else has probably modified the file. Do you want to save it anyway?
    Click OK. All of the files save properly. (If I had clicked Cancel, the first file would be skipped and all other files would save.)
    Change conditional text display again (note: this could even be for a different book at this point, I believe, but will have to verify).
    (Repeat step 3): The same text appears again in the dialog.
    Click OK. FrameMaker crashes while trying to save the first file. (If I had clicked Cancel, the first file would be skipped and all other files would save. However, if I attempt to save the first file afterward, FrameMaker still crashes.)
    Anybody have any insight into this? Am I the only one this happens to? Argh :-)
    Thanks.

    Sorry, the only answers I got were on the forum and nothing worked
    That being said, at least now I know I'm not crazy! (Sorry it had to
    happen to you, though.)
    As it stands, I've been training myself to make sure that after the
    first time I toggle the settings, I do the save, and then make sure to
    save all, quit, and restart FrameMaker before I attempt another toggle.
    On the odd occasion that I don't do that and get the warning message, I
    select Cancel (which lets the rest of the files save), quit, restart,
    and then make sure I update the first document appropriately.
    All the while cursing and swearing, of course
    As an aside... if you find a solution, please let me know about it if
    you remember.
    Thanks.
    John

  • Conditional Text in Table - Problems with row height adjustment

    Hey there,
    I’m german but I try to express my problem in english as good as I can. Not always easy with the different menu names. Hope you get what I want to say! :-)
    As you can see in my attached screenshot, I placed text in a table.
    Text height is set to: minimum 1,5 … so it adjusts to the amount of text.
    This is what I want - it should adjust the height to the marked/aktivated conditional text.
    It always adjusts the hight when I blind out the first line oder lines in between (e.g. line 2+3 of 4).
    But if I want to blind out the last line(s), there is a ¶ at the end and a extra blank line with the #.
    I know, the # stands for the following hidden Text, but why does it work with the red/green text.
    There is also text hidden (green), but the mark # is right after the last word - not in a new line.
    Has anyone a solution for this?
    Thanks in advance!

    That's ok so far. A paragraph sign at the end of a text forces a new line.
    To change that do the following:
    For every condition you need another condition just for the paragraph sign that comes immediately after the condition. Not after every paragraph of one condition, but at the end of every consecutive numbers of paragraphs of the same condition.
    So in your third example you'll need two conditions more:
    1. One for the paragraph sign at the end of condition "meaasurements"
    2. One for the paragraph sign at the end of condition "price 2"
    Whenever you make the other conditions invisible, you also have to turn off the new conditions that only control the paragraph signs.
    See the following screenshots:
    Uwe

  • Very slow PDF generation when conditional text is hidden in FM 9.0

    I am working on 96-page chapter of a larger book. A 7-page section of the chapter needs to be hidden until the next release, so I hid it with conditional text. After doing this, the "Save as PDF" printing process goes from taking 6-7 seconds to taking several minutes. If I unhide the conditional text in the same session, printing is very quick again.
    I have no problem generating very PDF files with the PDF printer in other applications (Word, PowerPoint). The issue is specific to FrameMaker and the use of conditional text. What might be causing this?
    I am using FrameMaker 9.0p255 and Distiller 9.0.
    - Chris

    Hi Jeff,
    These were good suggestions to try. Saving the document first has no effect on PDF generation.
    However, I did find that printing to the Adobe PDF printer remains fast when the conditional text is hidden. That's quite an interesting finding! I did also notice that these two methods of PDF generation aren't identical:
    "Save as PDF" opens an Adobe Distiller window, while printing to the Adobe PDF printer opens a different "Creating Adobe PDF" progress box (looks like it's from the printer driver itself).
    "Save as PDF" generates a 1188k PDF file, while printing to the Adobe PDF printer generates a 1049k PDF file.
    "Save as PDF" defaults to placing the PDF in FrameMaker's working directory, while printing to the Adobe PDF printer defaults to saving to the last place to saved a printed PDF file (awkward when working with multiple directories, as I often do).
    When I do a "Save as PDF", FrameMaker does still spool to the PDF printer. It is this spooling that takes a long time. Once spooling is complete, then the Distiller window opens and the PDF is created very quickly.
    I would still like to get "Save as PDF" working since it knows where to place the PDF file. No solution to the runtime yet, but at least there is progress...

  • TCS2 Inline graphics hidden by conditional text cause unwanted carriage returns

    I have some FrameMaker documents where there are some small icons in the text.  Their anchored frames are set to be "at insertion point" in FrameMaker. They work fine normally, but when the icons are hidden by conditional text, they cause unwanted carriage returns in the RoboHelp output. The text is split into different paragraphs in the middle of the sentence.
    For example, this is the FrameMaker input:
    And this is the RoboHelp (WebHelp) output:
    I notice that if I manually edit a topic in the RoboHelp editor, I can manually apply a conditional tag to an inline graphic without causing a line break.
    So, I'm wondering if there's a way to avoid this when using linked FrameMaker documents.
    Thanks,
       Philip.

    Your logs are generated automatically by your system as it runs - there is nothing further that you need to do. They are ordinary text files, so you can display them on a terminal using any of the usual tools - cat, less, grep, etc.

Maybe you are looking for

  • Nano no longer shows up as device in itunes

    My nano no longer shows up as a device in Itunes.  Connection is good as it still charges, but nothing when I plug it in.  Does not show up as device in windows either.

  • Write Back in OBIEE

    Hi All, Is there any document about write back? I need to understand how I can use this in my reports. Thanks, Poojak

  • Notification - How to send to a user

    Can we send Notifications to an user in OAF; the tool used is Oracle 9i JDeveloper. We are not using any workflow, but on submitting a page for approval , we need the approver to be notified. Please give me some insight on how to do this Thanks, PRaj

  • TIme Capsule stopped working after 10.10.3

    Now, after upgrading to 10.10.3 in a fruitless belief that it would speed up things, I can no longer do a backup with Time Capsule. I have followed all the hints left about deleting old time capsule config files but to no avail. Tried to run disk uti

  • SYSTEM tablespace full

    Hi, I am new to Oracle database. Currently I am using Oracle 10g version 10.2.0.4. I noticed that the SYSTEM tablespace is 100%, may I know what's the impact to the database server? Will it slow down all the transactions to process? Thanks.