Forum Replies Created

  • pooh2583

    Reply To: Inserting Element

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hello,

    Thanks for your reply.

    I have tried to achieve above mntioned functionality i.e. using following logic

    1.have selected two ranges range1 and range2 where range1 points at start pont of the node and range2 points at the end pont at the node.
    2. If elemnt can not be inserted at the selected pont I keep moving the range1 to next insertion
    point inh the node by using following code

    var nextNode =child.nextSibling;
    //select insertion point before the node
    rng1.SelectBeforeNode(nextNode);
    child = nextNode;
    this logic is working, but I would like to know if is there any API present in Xmetal to move range to the next insertion point in the current node

    also could you please let me know how two ranges can be checked for equality?

    Regards

    Reply

    pooh2583

    Reply To: Issue in Image rendering

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hello,

    I can not provide the entire css file for some reasons,but I can assure you taht .css file is error free .

    Following is the exact content of my css for the element

    element:before {
    content:url(D:imagebullet.jpg);
    }
    and with the above code image is properly visible in Xml document in Xmetal

    but when I copy bullet.jpg where my .xac file is present and write
    element:before {
    content:url(bullet.jpg);
    }
    image is not visible instead an X is visible.

    Could you please help me with this?

    Reply

    pooh2583

    Reply To: Inserting Element

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hello,

    Above solution is working if and only if the element can be inserted into the current insertion point , i.e
    If my DTD has structure
    !ELEMENT para (top, middle , bottom) > and suppose i have to insert element bottom and my current insertion point is  betwwn top and middle i.e.test1
    (this is my current range)
    .
    then according to canInsert api it throws false because as per the DTD bottom element can not be inserted at the current location
    but my requirement is I have to check in entire para element whether  element bottom can
    be inserted or not and if DTD allows bottom element to be inserted into para it should move to the
    valid insertion point into para and insert there into the para element.

    Could you please help me in determining how shall I go with it, finding whether particulr element can be inserted anywhere into the selected current node that element or not instead of that particular point.

    Regards

    Reply

    pooh2583

    Reply To: CSS for XMetaL XACs, foreign languages

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hello,

    Above solution is working if and only if the element can be inserted into the current insertion point , i.e
    If my DTD has structure
    and suppose i have to insert element bottom and my current insertion point is  between top and middle i.e.test1
    (this is my current range)
    .
    then according to canInsert api it throws false because as per the DTD bottom element can not be inserted at the current location
    but my requirement is I have to check in entire para element whether  element bottom can
    be inserted or not and if DTD allows bottom element to be inserted into para it should move to the
    valid insertion point into para and insert there into the para element.

    Could you please help me in determining how shall I go with it, finding whether particulr element can be inserted anywhere into the selected current node that element or not instead of that particular location

    Reply

    pooh2583

    Reply To: Image as a bullet using CSS

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hi Derek,

    I have used all the file formats but image is not visible only cross is visible inpalce of an image.

    Regards

    Reply

    pooh2583

    Reply To: Image as a bullet using CSS

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hi Derek,

    I used you suggested method  and copied the image small.png(tried small.bmp as well) in BUildproject folder as well as folder out side Builproject where .css file exists.

    now imge is present but with X symbol , it seems there is some problenm with the path provide in url.

    could you please let me know where excatly I need to put the image so that I can use it in the css

    content:url(small.png);

    Reply

    pooh2583

    Reply To: Common Macro

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hello Derek,

    As per the requirement i will be referring to the external .js file from common folder, and when i use it by Macro->add->Existing File-> and i select the file from the ommon folder but when i go by this method it copies that file itself in the project and this doesnt solve my problem of avoiding redundency.

    Also wnen I try to implemet  your above mentioned method by providing external path of the file, i will have to create a new files in the project itself which will be having following code.

    var strMyJScript = Application.FileToString(“path to file.js”);
    eval(strMyJScript);

    so this code would be there for the no. of file I have to call from external common folder for each project.

    Ex. to call file1  callfile1
    file2 callfile2

    please suggest the solution.

    Regards,

    Reply

    pooh2583

    Reply To: Common Macro

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hi Derek,

    Thnk you for your suggestion an help.
    This exactly what I need.

    Regards

    Reply

    pooh2583

    Reply To: Common Macro

    Participants 0
    Replies 23
    Last Activity 9 years, 3 months ago

    Hi Derek,

    I am not using application level, Macro I have two different Xmetal projects which have some common functionality Macros for some elements in the Xml, so to avoid redundency I need to use these Macro (from a common folder for both the projects) , later i will have to keep the same project into SVN .

    Please help me with this

    Regards

    Reply

    pooh2583

    Reply To: OnInsert doesn’t work

    Participants 0
    Replies 23
    Last Activity 9 years, 10 months ago

    Hello ,

    I am using Xmetal Author Enterprise 7.0 on Windows Explorer.

    I can not provide the copy of the .ctm file though, but I have written above code only.

    When I try to insert a specified element using ElementList (radiobutton Insert and I click Apply), It seems the element in not getting inserted in the normal view, but it is getting inserted in plain text view.

    Regards,

    Reply

    pooh2583

    Reply To: OnInsertElementList Functionality

    Participants 0
    Replies 23
    Last Activity 9 years, 10 months ago

    Hello,

    Please help me solving my above query

    Regards

    Reply

    pooh2583

    Reply To: How to copy a node and insert it into a specific position

    Participants 0
    Replies 23
    Last Activity 9 years, 11 months ago

    Hello,

    My xmetal Tree structure is as follows,



     
       
    Reply

    pooh2583

    Reply To: Adding Additional functionality into Xmetal Validator/F9

    Participants 0
    Replies 23
    Last Activity 9 years, 11 months ago

    Thank you for your reply

    I would like to know what regular expression pattern should I use to allow patern like this I need to validate the value in the attribute for a specific node.

    these are some valid pattern, null is not allowed

    125345 890750
    124576 780645 365890
    789958 976454 655588 694379

    invalid patterns are

    678956 786
    678 569765 67

    i.e 1st set of 6 decimal is mandatory and another 0 to any no. of set of decimal no separated by sapce
    if the more than 0 sets are present then they should be separated by a space and each set have only 6 digits

    dddddd[sdddddd]*

    please reply

    Regards

    Reply

    pooh2583

    Reply To: Merging Bitmap images

    Participants 0
    Replies 23
    Last Activity 9 years, 12 months ago

    Thyank you for a reply

    Reply

    pooh2583

    Reply To: copy paste a clipboard file

    Participants 0
    Replies 23
    Last Activity 10 years ago

    Thank you , for the reply

    Reply

Products
Downloads
Support