Use Find-Replace to paste/wrap Element name?

Hi:
For FrameMaker 7.2, structured.
I'm a longtime *unstructured* FrameMaker who is performing cleanup on some structured FrameMaker documents created by my customer.
One of my tasks is to find all Index markers and applying the IndexMarker element (square-cornered) tag to the markers.
I'm currently using the tedious and slow technique of using Find to locate and select the Index tag, then in the Element catalog clicking "IndexMarker" followed by "Wrap".
I've poked around hoping I could find Copy Special / Paste Special choices that would speed this mousing-intensive chore up, but haven't found any such choices that work.
So -- is there some "intelligent" way to Find / Replace my way through this problem? Even if I manually have to click Replace at every instance, it's faster than what I'm doing...
Cheers & thanks,
Riley

Riley,
As much as I appreciate the unsolicited endorsements, I have to clarify that FrameSLT cannot help you with this task. It can do lots of things associated with structural management, but all of its current capabilities are dependent upon existing structure. More specifically, it requires existing structure to find the items for which it intends to manage, which your current markers do not have. So, while it can do things like element wrapping, it wouldn't be able to find the unstructured markers in order to wrap them.
This would be a reasonably simple task for a custom API client or FrameScript script. If you have zillions of these to do, it might be worth your while to explore that option. If not, Gary's suggestion might be your best bet.
Russ
(Owner, West Street Consulting)

Similar Messages

  • How can I remove all content between two tags using Find/Replace regular expressions?

    This one is driving me bonkers...  I'm relatively new to regular expressions, but I'm trying to get Dreamweaver to remove all content between two tags in an XML document.  For example, let's say I have the following XML:
    <custom>
    <![CDATA[<p>Some text</p>
    <p>Some more text</p>]]>
    </custom>
    I'd like to do a Find/Replace that produces:
    <custom>
    </custom>
    In essence, I'd like to strip all of the content between two tags.  Ideally, I'd like to know how to strip the CDATA content as well, to return the following:
    <custom>
    <![CDATA[]]>
    </custom>
    I'd much appreciate any suggestions on accomplishing this.
    Many thanks!

    Thanks much for your response.  I found David's article to be a little thin with respect to examples using quantifiers in coordination with the wildcard metacharacters; however, I was able to cobble together a working expression through trial and error using the information he presented.  For posterity, here’s the solution:
    Find:
    <custom>[\d\D]*?</custom>
    Replace:
    <custom>
    <![CDATA[]]>
    </custom>
    I believe this literally translates to:
    [] = find anything in this range/character class
    \d = find any digit character (i.e. any number)
    \D = find any non-digit character (i.e. anything except numbers)
    *? = match zero or more times, but as few times as possible (i.e. match multiple characters per instance, but only match one instance at a time, or none at all)
    I’m still not sure how to effectively utilize the . wildcard.  For example, the following expression will not find content that ends with a number:
    <custom>.*?[\D]*?</ custom >
    I'm presuming this is because numbers aren't included in the \D metacharacter; however, shouldn't numbers be picked up by the .*? expression?

  • Can I use Find & Replace to change the fills and strokes of tables?

    I'm working on a catalog that has a fair amount of tables, that all have the same color scheme.  I need to change all of these tables to a new color scheme, and I'd much rather find a way to do it with one shot.  The tables do not have styles applied to them, so it's not a matter of adjusting the style definitions.
    I know you can do a Find & Replace for text or objects in a specific color. Is there a way to do the same for table cells?  I've tried but haven't had luck getting it to work.
    Thanks!
    -Sean

    Congratulations are in place -- changing parameter names in the right places is one thing, finding out what parts safely can be copied is step 2 in my book "how to become a successful scripter in 10 easy steps"
    You cannot select more than one table in Table mode, but what you can do is select them together with its surrounding text -- just keep on dragging that mouse until you've covered them all. The InDesign Selection is a multi-purpose object (see the way the script has to find out "what is selected"), and one of the things it keeps track of is how many and which tables are "inside" the selection. Then run this slightly amended script:
    a = app.selection[0];if (a.tables.length == 0)
    alert ("You must be kidding; not a single table inside your selection!");
    exit(0);
    for (b=0; b<app.selection[0].tables.length; b++)
    d = app.selection[0].tables[b]; // shortcut
    for (c=0; c<d.cells.length; c++)
      if (d.cells[c].fillColor == app.activeDocument.swatches.item("Bloo"))
       d.cells[c].fillColor = app.activeDocument.swatches.item("Redd");
      // .. Insert more colors here ..
    Now the script doesn't have to check anymore in which part of the table you clicked; it only has to iterate over the ones in your selection, and those are "immediately" accessible through the indexes (the square bracketed variables). And the "shortcut" is so I don't have to type "app.selection[0].tables[b].cells[c].fillColor" every time. (And the script runs marginally faster as well, although it's probably still almost immediate.)

  • Problem Pasting into Find/Replace in DW8

    I am using DW 8, working thru a training book and when I do
    the steps of the exercise for copy, then use Find/Replace and paste
    what was copied. So I have a file open in Split view, I click on an
    image in the Design view... tool highlights the html in Code View,
    I right click and copy, then Ctl-F to bring up Find/Replace. When I
    try to paste, it brings up a pop-up window about Image Description-
    Alt text (I had copied an img src statement that didn't have any
    alt text) rather than doing a paste of the text I had copied. I am
    getting to paste via the Edit menu option since right click doesn't
    give me an enabled paste option to choose. I'm sure this is due to
    'user error' but can't figure what I'm doing wrong since I am
    following the steps described in the training manual. Thanks for
    any suggestions!

    Use Regular Expressions
    "Big_Slick" <[email protected]> wrote in
    message
    news:f0ip6t$ee8$[email protected]..
    >I need to know how to Find/Replace for more than one tag
    at a time
    >(I.E--Search
    > for <table>, <tr>, and <td> or
    and and remove the code) As it is
    > right
    > now, it will only search for one tag at a time but I
    would assume DW can
    > handle
    > this kind of thing.
    >
    > Thanks in advance.
    >

  • Using # in element name

    Hi,
    How can i use special character like # in the element name.I have a element which has name like 'abc#'.I am getting the following error in xml spy if i try to use it.
    Value 'abc#' is not allowed for attribute 'name'.
    Hint: A valid value would be 'NCName'.
    Error location: schema / element / complexType / sequence / element / @name
    How can i handle this.
    Thanks

    Back to basics...
    http://www.w3.org/TR/REC-xml/#NT-NameStartChar
    gives allowed characters for an Attribute name.

  • RH8 - Any way to chage styles besides risky HTML find/replace

    Hi - We have created a new .css with updated styles. All the TWs must now manually apply the new styles in every topic, a time consuming task. I know there's the option of doing a find/replace in all topics that will change the HTML, but RH doesn't respond well given its tendency to add tags in the name of being helpful. Attempted to a find/replace and it worked for a heading, but when I went on to a custom paragraph style, the result was not good. Ended up going back to my backup from that day.
    Any suggestions/advice? Has Adobe provided anything in way of a tool that we can use?

    Use Find & Replace
    Search: Specific Tag        p
    + With Attribute                style   =   [any value]
    Action: Remove Attribute   style
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can I Print "find/replace" results?

    I use "find/replace" to locate all of the jpegs currently used within a site.  How can I print the search results. Copu/paste doesn't work It would be useful to print the result as they can number in the hundreds for larger sites.. Writing down the results is a real pain.

    From the search panel, there is a small icon on the right hand side for saving your search as an xml file, click this and view the xml file in your browser then print from there.
    Paula,
    I don't think that icon / option exists in DW 8 or MX. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Find/replace styles in Pages 5

    In Pages '09, one can find a style, under the "Advanced" menu in the find/replace pop-up.  I use this to prepare talks, writing my own comments in a different style than what I'll print and hand out.  Thus, I find the style and replace it (with nothing), and be left with simply the text for the handout.  Is there a way to use find/replace in Pages 5 to search and find a particular style?  I can't find it.  Thank you!

    That is an extremely useful feature. I just was using that on a document to hand last night, searching on an expression and applying a style to it, Saved me hours of work. Not something Apple seems to get these days.
    Nobody apparently is supposed to work on Macs anymore, just fiddle.
    Viking is being modest, the count is over 110 known missing features and countless bugs or things that simply don't work as they are supposed to.
    Thankfully there is still Pages '09! For now. Which should still be in your Applications/iWork folder.
    Peter

  • Generic WSDL element name

    Hi Gurus,
    For normal web services integration what kind of WSDL file should we use? custom or generic?
    If we using generic how to check the element name or the display name?
    Please advice.
    Thanks in advance.

    Hi, Would suggest custom, unless you like to build something that is generic which can work across multiple instances of CRMOD or goes across all fields / objects etc. Otherwise it may not worth the effort of managing the integration tags mapping related activities
    -- Venky CRMIT

  • Mass find / replace

    I'm having a problem with mass find / replace : files with
    other extensions aren't reached by the very useful find/replace
    tool. I'm positive of this as if I rename the extension and simply
    add ".txt" at the end, it's searched.
    I'm using ".ini" files in my projects and I tried in "Edit"
    > "Preferences", section "File Types / Editors" both adding the
    extension in the bottom list adding the extension then assigning
    Dreamweaver as the editor AND, more simply, adding at the top "Open
    in code view".
    It seems to me an application that has been thoroughly made
    like Dreamweaver would be able to search unknown file types and I
    just didn't see the option for it, would someone please give me a
    lead on this ?

    I'm sorry; :-(
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:gltau4$bfi$[email protected]..
    > Kowabonga. A brain!
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "Baxter" <baxter(RemoveThe :-)@gtlakes.com> wrote
    in message
    > news:glt9vj$ac3$[email protected]..
    > > If its a .ini file just rename it to .txt and do
    you replace and then
    > > rename
    > > it.
    > > Dave
    > > "Murray *ACE*"
    <[email protected]> wrote in message
    > > news:glt45r$3f8$[email protected]..
    > >> Yes, it works as expected in the *.sql format,
    but not in the *.ini
    > > format.
    > >>
    > >> --
    > >> Murray --- ICQ 71997575
    > >> Adobe Community Expert
    > >> (If you *MUST* email me, don't LAUGH when you
    do so!)
    > >> ==================
    > >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    > >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > >> ==================
    > >>
    > >>
    > >> "DynV" <[email protected]>
    wrote in message
    > >> news:glt0e4$s8s$[email protected]..
    > >> > Murray did you try the .ini or .sql format
    > >> >
    > >> >
    quote:
    Originally posted by:
    Newsgroup User
    > >> > I created a text only file. I selected it
    in the Files panel. I did
    a
    > >> > search in 'Source' of the selected file
    for a word. It found two
    > >> > instances.
    > >> >
    > >> >
    > >>
    > >
    > >
    >

  • Element name too long when using ROWTYPE

    I've come across an issue with xml element names longer than 30 characters. Seems it has something to do with ROWTYPE. Creation of this function is successful:
    <pre>
    CREATE OR REPLACE FUNCTION test_fnc
    RETURN XMLTYPE
    AS
    var_return XMLTYPE;
    l_dummy DUAL.dummy%TYPE;
    BEGIN
    SELECT dummy INTO l_dummy FROM DUAL;
    SELECT XMLCONCAT(XMLELEMENT (
    "TEST",
    XMLFOREST (
    l_dummy "THIS_IS_OVER_30_CHARACTERS_LONG"
    data_set
    INTO var_return
    FROM DUAL;
    RETURN var_return;
    END test_fnc;
    </pre>
    However, specifying the variable as ROWTYPE gives ORA-00972 error (unless I shorten the element name...):
    <pre>
    CREATE OR REPLACE FUNCTION test_fnc
    RETURN XMLTYPE
    AS
    var_return XMLTYPE;
    l_dummy DUAL%ROWTYPE;
    BEGIN
    SELECT dummy INTO l_dummy FROM DUAL;
    SELECT XMLCONCAT(XMLELEMENT (
    "TEST",
    XMLFOREST (
    l_dummy.dummy "THIS_IS_OVER_30_CHARACTERS_LONG"
    data_set
    INTO var_return
    FROM DUAL;
    RETURN var_return;
    END test_fnc;
    </pre>
    Has anyone come across this before, or have any ideas for a solution? I could specify all my variables as TYPE but as there are many within the tables it would be easier to use ROWTYPE.
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    Thanks.

    it works if you add "AS" after l_dummy.dummy
    SQL> CREATE OR REPLACE FUNCTION test_fnc
      2     RETURN XMLTYPE
      3  AS
      4     var_return   XMLTYPE;
      5     l_dummy      DUAL%ROWTYPE;
      6  BEGIN
      7     SELECT   dummy INTO l_dummy FROM DUAL;
      8
      9     SELECT   XMLCONCAT(XMLELEMENT (
    10                           "TEST",
    11                           XMLFOREST (
    12                              l_dummy.dummy AS "THIS_IS_OVER_30_CHARACTERS_LONG"
    13                           )
    14                        ))
    15                 data_set
    16       INTO   var_return
    17       FROM   DUAL;
    18  RETURN var_return;
    19  END test_fnc;
    20  /
    Function created.Ants

  • How to find out all the text elements in the report using Java?

    How to trace the contents of an rpt file?
    I am able to open the rpt file in my report viewer but can not trace it using the JAVA code.
    Actually, I need to find out all the text elements of rpt (Report) file and replace them with the contents of resource bundle.
    My Java code to open a report is given below:
    import com.crystaldecisions.reports.sdk.ISubreportClientDocument;
    import com.crystaldecisions.reports.sdk.ParameterFieldController;
    import com.crystaldecisions.reports.sdk.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.data.ConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.data.ConnectionInfos;
    import com.crystaldecisions.sdk.occa.report.data.Fields;
    import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
    import com.crystaldecisions.sdk.occa.report.data.ParameterField;
    import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;
    import com.crystaldecisions.sdk.occa.report.data.Values;
    import com.crystaldecisions.sdk.occa.report.lib.IStrings;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    public String viewRpt()
                   //1.) Setting Database Infos
                            IConnectionInfo iConnectionInfoObj=setDatabaseConnectionInfos();
                   //2.) Setting Report Path
                   String reportPath=u201DE:
    was60
    rptFilesLocation
    u201D;
                   reportPath=(reportPath!=null)?                                             reportPath:AppConstants.CONSTANTS.BLANK;
                   String reportName="report1.rpt";
                   String reportFullPath = reportPath +   rptName;
                 //3.) Setting Report Source
                             ReportClientDocument reportClientDoc = new ReportClientDocument();
                                              reportClientDoc.open(reportPath, 0);
                  IReportSource reportSource = reportClientDoc.getReportSource();
                  setReportSource(reportSource);
                  reportClientDoc.close();
              //4.) Setting the Fields Starts
              setFieldsCrystal(null);
              Fields fields = new Fields();
              ParameterField pfield1 = new ParameterField();
              Values vals1 = new Values();
              ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("@parameter1");
              pfieldDV1.setValue(u201Cvalue1u201D);
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              pfield1 = new ParameterField();
              vals1 = new Values();
              pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("@parameter2");
              pfieldDV1.setValue(u201Cvalue2u201D);
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              setFieldsCrystal(fields);
              //Setting the Fields Ends
    The sample jsp code to view the report is as follows:
    <%@taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
         prefix="bocrv"%>
    <bocrv:reportPageViewer viewerName="CrystalViewer"
                                                 reportSource="#{CrystalReportBeanObject.reportSource}"
                                                 displayToolbarRefreshButton="false"
                                                 allowDatabaseLogonPrompting="false"
                                                 allowParameterPrompting="false"
                                                 databaseLogonInfos="#{CrystalReportBeanObject.connectionInfosCrystal}"
                                                 parameterFields="#{CrystalReportBeanObject.fieldsCrystal}"
                                                 displayGroupTree="false" displayToolbarLogo="false"
                                                 displayToolbarToggleTreeButton="false"
                                                 enablePageToGrow="false" height="540"
                                                 zoomPercentage="100" width="750"
                                                 allowDrillDown="false"
                                                 displayToolbarPrintButton="true"
                                                 printMode="PDF"
                                                 ></bocrv:reportPageViewer>
    Edited by: JayKumarSharma on Mar 23, 2011 12:42 PM

    This is how you retrieve all the text fields in the reort:
    ReportObjects reportObjects = (ITextObject) oReportClientDocument.getReportDefController().getReportObjectController().getReportObjectsByKind(ReportObjectKind.text);
    for(int i=0; i< reportObjects.size();i++)
    ITextObject textObject = (ITextObject)reportObjects.get(i);
    // use ReportObjectController to modify the text object.
    If you want to modify the contents of the text element, you can do it as follows:
    TextObject oTextObject = new TextObject();
    Paragraphs oParagraphs = new Paragraphs();
    Paragraph oParagraph = new Paragraph();
    ParagraphElements oParagraphElements = new ParagraphElements();
    ParagraphTextElement oParagraphTextElement = new ParagraphTextElement();
    oParagraphTextElement.setText("This is the new text field");
    oParagraphTextElement.setKind(ParagraphElementKind.text);
    oReportClientDocument.getReportDefController().getReportObjectController().modify(textObject, oTextObject);
    oReportClientDocument.save();

  • After Replace queue.llb and notifier.llb for LabVIEW 6.1, I can't use find examples.vi any more.

    After Replace queue.llb and notifier.llb for LabVIEW 6.1, I can't use find examples.vi any more.Error list shows that SubVI 'EF-remove queue element with exit or error stop vi': subVI is not executable.
    Attachments:
    snap158.gif ‏13 KB

    I believe that by your action, you removed the compatability VIs and it would appear that the Find Examples used the older queue functions that require the compatability VIs. I would suggest you revert back to the LLBs that were distributed with 6.1. The new queue functions are there for you to use in new development and older VIs won't be broken. You could also make a request to NI support to see about an updated Find Example that uses just the new VIs.

  • How to use '*' character in element names ?

    Hi,
    I have to use '*' character in element names. But, it throws DOMException. is there a workaround to use such illegal characters ?
    thanks in advance...

    No, there is no work around as such. The '*' character is not a legal character in a tag name (it means zero or more in DTD content specifications).
    http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Name
    What does the star mean? Replace it with something more meaningful. The closest thing to a work around is using "-star-", but then you have to replace dash with "-dash-" and it all gets a bit silly, and won't really add meaning to the tagname.
    Pete

  • Using Project Settings creates an app.config and dozens of errors about "Could not find schema information for the element...

    I am trying to work with Application settings.  I would just like to put together a very simple example of using these, but I can't get the most basic example to work.  Virtually every tag regarding the new Settings produces an Error "Could not find the schema information for the element "applicationSettings". or the element "Settings" etc. etc.  I am not using IIS, this is not a Web Project, and I am not working with User Settings.  Just simple read-only Application Settings.  I've read every MSDN page regarding this subject, I don't see that I am missing a reference - HELP !!!
    REPRODUCING THE PROBLEM:
    Step 1. Create a new C# solution and Windows Forms project. 
    Step 2. Add a reference to System.configuration
    Step 3. Right click the project, choose Properties, then Settings.
    Step 4. Using the Settings Designer, create ONE setting called "MySetting" as a String with the value "MyValue".
    RESULT: Observe the Errors like these, complaining about all of the Settings tags and elements.
    Message 1 Could not find schema information for the element 'applicationSettings'. 
    Message 2 Could not find schema information for the element 'LoadOriginalLists.Properties.Settings'. 
    Message 3 Could not find schema information for the element 'setting'. 
     HERE IS MY APP.CONFIG, AS GENERATED BY THE SETTING DESIGNER TOOL:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
    <section name="LoadOriginalLists.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    </configSections>
    <applicationSettings>
    <LoadOriginalLists.Properties.Settings>
    <setting name="MySetting" serializeAs="String">
    <value>MyValue</value>
    </setting>
    </LoadOriginalLists.Properties.Settings>
    </applicationSettings>
    </configuration>

    Ummmm... okay so these are Messages that are in the Error List.  Whether or not they are actually Errors is debatable.  They are in the Error List, so they are errors. 
    The application runs, so my question is slightly changed to the following.
    I would like to use Application Settings.  However, having settings in my app.config pollutes my Error List with a bunch of meaningless messages like "Could not find the schema information for...".  These messages then hide real errors. 
    Am I missing some setting or is there something I can do to make Visual Studio not show me these messages? 

Maybe you are looking for

  • My delete key is not working properly

    I have a late 2010 MacBook Air that is running OS X 10.9.3 . Lately I have noticed that my delete key is now working as a backspace key. This is super annoying and I have tried googling the problem, but I haven't found a solution yet. Also, my top ro

  • Need CD-RW/DVD-ROM combo drive for Tecra 8200

    I have just bought an old Tecra 8200 with a CD-Rom drive in its SelectBay. I would like to change to a CD-RW/DVD-ROM combo drive. Could anyone let me know the correct model number for this combo drive please? Best wishes Michael

  • Get change document data

    How do we get the change document data to be used in a workflow, I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this chang

  • HTML to PDF again

    I need that my users can save my JSPs to PDF without installing a pdf printer. Is there any way or tool to do that? i've been read about FOP and iText but i think that is very complicated. I don't care if i need to pay for a license

  • Excell Formulas to Javascript

    I just got a request to convert an Excel file to PDF, and make the form calculate.  The calculations are pretty complex (at least to me they are).  There are four different types of formulas needed.  I've copied the information below.  Can someone he