replace the text in the initial value of the attribute

Hi Forum,

How to replace the original value of an xml attribute in the world?  I have an indesign document that has the month name attribute and the value jan13issue01.

See the example below of the existing xml attribute and value.

month = jan13issue01

I need to change the value to mar14issue01 above in the world (see below).

month = mar14issue01.

Thank you

LUN

Good, in condition add attribute name verification.

If ((elm.xmlElements [i1].xmlAttributes.item (i2) .name == 'months') & (elm.xmlElements [i1].xmlAttributes.item (i2).value.match (RegExp('^jan13'))! = null)) {}

Kind regards

Bala

Tags: InDesign

Similar Questions

  • Why the initial value of the text box disappear?

    I applied javascript to the text box on this page to make the initial value disappear when the user clicks on the box, but it doesn't seem to work. Can someone please tell me why?

    http://clockdoctors.co.UK/contact_me.html

    You have not included the framework jQuery:

  • Deletion of text in the initial value of a form when you click text field on

    Hi all
    I have a simple text field in a form tag.
    I have the text of the initial value.

    Basically, the initial value informs the user that the field is for.

    For example: password.

    Now when the user clicks in the field, the initial text of val is deleted by a click event on. [CODE] < input name = "userName" type = "text" id = "uNameField" onclick = "this.value ="; " "value ="enter user name"maxlength ="19"/ > [/ CODE]

    The problem is, lets suppose the user typed a user name [B] [/ b] in the field, but I forgot to add a character and decides to add this character, the value, they entered previously is deleted. This can be frustrating. But I only use it for two fields not an entire form.

    Is there a way to make the initial value to delete on the first click in the text field, but then whatever the user entered rest until the form is sent or the browser is refreshed or clear?


    I'm lost here.

    Any ideas will be appreciated.

    Patrick

    I keep this one as an extract:

    The domain is deleted only if it contains the value by default when it is focused.  In addition, when it loses focus, if it is empty, it will find the default.

  • How do you replace the values in a control of the ring?

    Hello

    I have a control of the ring (text values) in Labview 2009 and it is populated by programming with 20 points. The end user selects from the list items or fills with a new item based on a checkbox to add a new item. What I want to do, that's when section 20 is entered and the user selects the check box next to the point 21 to add I want around rap on the first item in the list and crush him. Is this possible and a sample VI would be great demonstrate how this is done. Any help would be greatly appreciated!

    Thanks in advance

    Charlie

    Replace the subset of the table.  You need to keep track of the element to replace in a shift register.  I would also like to keep the list in a shift register to make your life a little easier.

  • Initial value of the article display

    Hello

    Forms 6i,

    I use some display items with an original value (of the text), they are not db-objects, they are on a control block,

    the problem is when I run the form, the text (initial value) are missing, I don't know why.

    But if I moved the display settings to the db block I, it displays the text in this regard?

    Thank you

    Because block display of the element is not active.  the block has probably only display point or like him.  any block must have at least one navigable element.

    Add the element of text on the same block, you will see that the value of the element display will appear.

    Best regards

    Celal

    If the answer helps you, please tick the right answer or helpful response.

  • Find and replace the delimited string value by the

    Hi all

    I have a requirement where I need to find and replace the delimited string values.

    For example, the string is "GL ~ 1001 ~ 157747 ~FEB-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". The 4th column gives the month and year. I need to replace it with the name of the previous month. For example: "GL ~ 1001 ~ 157747 ~JAN-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". I need to do the same thing for the past 12 months.

    I thought initially divide the values and store it in a variable and then after him substituting the value required, join the return.

    I just wanted to know if there is a better way to do it?

    Like this:

    with a model like

    (select "GL ~ 1001 ~ 157747 ~ FEB-13 ~ CREDIT ~ A ~ N ~ $ ~ NULL ~' double UNION ALL data")

    Select ' GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDIT ~ A ~ N ~ US ~ NULL ~' double data)

    Select

    REPLACE (DATA, TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR"), 'MON - RR'), TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR")-1, 'MON - RR'))

    modeling;

    GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    GL ~ 1001 ~ 157747 ~ DEC-12 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    Ishan

  • Replace the text

    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value
      '\\Computername\Path\comp_name\\domain\\location' 
    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    Replace
     \\domain\\ 
    with
     \domain\ 
    I tried with query below...
    SELECT REGEXP_REPLACE('\\Computername\Path\comp_name\\domain\\location' ,
           '(\\){2,}', '\')
           AS Expression
      FROM dual;
    I get the below result to top query.
      \Computername\Path\comp_name\domain\location 
    But I want the result as below...
     \\Computername\Path\comp_name\domain\location 
    I use Oracke vesion 11g.

    Please help me on this.

    Thanks a lot for your help.

    Hello

    sunitha2010 wrote:
    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value

      '\\Computername\Path\comp_name\\domain\\location' 
    

    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    I guess that the 1st appearance will not always be at the beginning of the string.

    Replace

     \\domain\\ 
    

    with

     \domain\ 
    

    I tried with query below...

    > SELECT REGEXP_REPLACE ('\\Computername\Path\comp_name\\domain\\location',

    '(\\){2,}', '\')
    AS Expression
    DOUBLE;

    REGEXP_REPLACE has an optional 3rd argument, which allows you to say what position in the string to begin the search, you can do something like this:

    SELECT  REGEXP_REPLACE ( str
                            , '\\\\'    -- 2 backslashes, escaped.  See note below
                     , '\'
                     , 2 + INSTR ( str
                                       , '\\'
                           )
                     )     AS expression
    FROM    table_x
    ;
    

    In the 2nd argument of REGEXP_REPLACE '-' has a special meaning. To say you want a literal character, you have to escape , by putting a '-' immdiately before the special character, which in this case is be '-' also.

  • Initial value of the checkbox field is not affected.

    Hello

    I have a custom form with 2 fields, which is a check box which is below the values
    Value when checked: 1
    Value when disabled: 0
    Mapping of other values box: checked

    and the other is a text field. Please insert text fields field data into the table db that are checked.

    Iof displayed the Web file number is 10.


    I use the code in the trigger of the COMMIT BUTTON to save data in the table below. that is, I'm insertion of the value of the text field in table for the check box that is checked

    GO_BLOCK ("CHANNELS");
    premier_enregistrement;
    LOOP
    IF: CHANNELS. CHECK = 1 THEN
    INSERT into...
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    COMMIT;
    END;


    The problem is the value of the checkbox is always null and records are not get inserted into the table. Y at - it elsewhere, that we have to specify the initial value of the box. Not sure why the value of the checkbox becomes void even if the ix checked checkbox.

    Thank you
    Didi.

    What you have listed for the property of the initial value of your box?

    Craig...

  • Replace the JQuery text is all the text in the webapp manufacture

    Hello, I hope someone could give me a hand!

    On this home page: www.largemouthfrog.net I am running a Web application called "Testimonials" which produces a string of words/phrases on the basis of the selected check box. "They come in the page as: < li >... <div class= 'testimony-commentaires1' >awesome! Excellent! really good < /div >... < /li >

    For each < li > there is a separate set of words or phrases separated by a comma.

    I want to remove the comma and replace < br >

    I have the following JQuery (see below) which replaces the comma with < br > BUT it must be the first instance of < li > of

    "<div class= 'testimony-commentaires1" > and it repeats again and again for all other < li > ' s. " In other words:
    "great!, great!, really good" is repeated several times.

    I tried to put the JQuery inside available to the Web application list, but does the same thing.

    < script >

    {$(document) .ready (function ()}

    var str = $(".testimonial-comments1").html () replace (/, / g, '< br / >');

    $(".testimonial-comments1").html (str);

    });;

    < /script >

    Any help would be appreciated!

    Hi Wayne,

    Your code is a bit too simplistic and it fails because it is not really

    loop through all elements of web application and instead, it captures the content of the

    first one defines the rest of them with this content. I have created some

    code that will help you get started. Here it is:

    $(".testimonial-comments1").each (function (index) {var tags_text =

    $(this) .text (); var split_text = tags_text.split(',');

    Console.log (split_text); });

    You can see here http://mgtrain.worldsecuresystems.com/tags

    My class is simply called "label" and my layout of the list looks like this:

    {tag_name}

    {tag_tags}

    Basically, this code creates an array of strings for each iteration.
    All you have to do now is to browse table and Add.
    "to each.

    point, join the elements in a string, then set $(this) .text () of this new

    value.

    That said, I recommend you to build a form UL these options in this

    case. It's a bit more semantic to me.

    I can actually make this my first blog at www.twoblokeswithapostie.com

    See you soon,.

    Mario

  • do the initial value of test data

    Hello world

    I'm testing the scale, and as the firstl value which sensors shows me is not 0, I need my first initial value.

    The thing is I use digital controller and I just subtract the first value of my data to see the actual data.

    The thing is I want to do this program automatically, I mean when I press the button to start the program automatically measure the first data, save it and use it as initial data.

    do you have an idea, suggestion? Thank you

    See below.

  • How to assign an initial value by using the driaver or traditional?

    Hi all

    the question is quite simple: I use PCI - 6014 with driver OR traditional DAQ (so far). I have a device connected to a set of things to do in order to provide for a grouping, which selects the operating mode. As soon as the device is triggered and I initialize the DIO, I attribute the initial values BD. The problem is that it takes a while (approx. 15 ms) to do, and during this time (between the initialization of the devices and the initial assignment) the combination of output is one level 0, which is highly undesirable because of the specificity of the device. Is it possible to "encode" the initial values of the things to do, so that, as soon as data is turned on, and the line is declared as DO, it automatically receives the pre-defined value?

    Thank you in advance,

    Mike

    Have you read the card? The answer is no.

  • reset all outputs the initial values

    Hello

    in our case, a project VeriStand is running on a machine RT with cRIO-I/O.

    Is there a possibility to reset all outputs to the initial value, while the project is running? (I don't want to restart the system in real time or deploy the project to new because who consumes too much time).

    Hello

    You can create an alarm that calls a reset procedure. The alarm can be mapped on a Boolean button in the workspace. Or you can call a Sequenze RT to reset your values.

    Best regards

    Philippe

  • How to replace the value of a column in a table based on the value in the second column?

    Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).=""  based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).=""  i've="" attached="" a="" sample="" .csv="" file.=""  if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.=""  can="" someone="" help="" out="" with="" this="" search="" and="" replace="">

    Thank you

    Keith

    (using LV 2009 SP1)

    A few quick hits.

    You can merge the two for loops

    You have not need one of the constants 1 and 2 in the index table.  They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.

    It seems a lot of handling additional table spent unnecessarily.

    See below.  I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.

  • Formula of mounting: replace the names of parameters by actual values

    Hello

    After finding the values of the parameters in the formula of editing, I need to replace the names of parameters by actual values found by the algorithm of editing.

    For example in the screenshot below, I need to replace a, b, c by actual values (e.g. 2.346878,-12.4589 8.0012) in order to use this formula to solve a nonlinear equation.

    Transform the string to byte array formula seems to be quite dufficult because replacements have different sizes (e.g. an having to be replaced by 2.346878).

    Is there a smart solution to such a problem.

    Thank you

    Or better yet... the list of parameter names can also be extracted:

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

Maybe you are looking for