Forum Replies Created
-
pooh2583 October 25, 2013 at 10:50 am
Reply To: Inserting Element
October 25, 2013 at 10:50 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHello,
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 codevar 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 nodealso could you please let me know how two ranges can be checked for equality?
Regards
pooh2583 October 24, 2013 at 10:16 am
Reply To: Issue in Image rendering
October 24, 2013 at 10:16 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHello,
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 Xmetalbut 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?
pooh2583 October 24, 2013 at 10:07 am
Reply To: Inserting Element
October 24, 2013 at 10:07 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHello,
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
pooh2583 October 24, 2013 at 9:55 am
Reply To: CSS for XMetaL XACs, foreign languages
October 24, 2013 at 9:55 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHello,
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
pooh2583 October 14, 2013 at 12:42 pm
Reply To: Image as a bullet using CSS
October 14, 2013 at 12:42 pmParticipants 0Replies 23Last Activity 9 years, 3 months agoHi Derek,
I have used all the file formats but image is not visible only cross is visible inpalce of an image.
Regards
pooh2583 October 11, 2013 at 11:57 am
Reply To: Image as a bullet using CSS
October 11, 2013 at 11:57 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHi 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);
pooh2583 October 10, 2013 at 6:45 am
Reply To: Common Macro
October 10, 2013 at 6:45 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHello 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 callfile2please suggest the solution.
Regards,
pooh2583 October 9, 2013 at 10:30 am
Reply To: Common Macro
October 9, 2013 at 10:30 amParticipants 0Replies 23Last Activity 9 years, 3 months agopooh2583 October 8, 2013 at 11:17 am
Reply To: Common Macro
October 8, 2013 at 11:17 amParticipants 0Replies 23Last Activity 9 years, 3 months agoHi 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
pooh2583 March 27, 2013 at 10:29 am
Reply To: OnInsert doesn’t work
March 27, 2013 at 10:29 amParticipants 0Replies 23Last Activity 9 years, 10 months agoHello ,
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,
pooh2583 March 22, 2013 at 8:59 am
Reply To: OnInsertElementList Functionality
March 22, 2013 at 8:59 amParticipants 0Replies 23Last Activity 9 years, 10 months agopooh2583 February 20, 2013 at 7:45 am
Reply To: How to copy a node and insert it into a specific position
February 20, 2013 at 7:45 amParticipants 0Replies 23Last Activity 9 years, 11 months agopooh2583 February 19, 2013 at 5:50 am
Reply To: Adding Additional functionality into Xmetal Validator/F9
February 19, 2013 at 5:50 amParticipants 0Replies 23Last Activity 9 years, 11 months agoThank 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 694379invalid patterns are
678956 786
678 569765 67i.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 digitsdddddd[sdddddd]*
please reply
Regards
pooh2583 February 5, 2013 at 10:41 am
Reply To: Merging Bitmap images
February 5, 2013 at 10:41 amParticipants 0Replies 23Last Activity 9 years, 12 months agoThyank you for a reply
-
AuthorPosts