Getting the absolute text position from a DOM tree
Does anybody knows how to get the absolute text position of a node inside the DOM tree? Is there any DOM implementation that keep track of the absolute text position of each Node element or I need to overload somo methods by hand?
Regards,
Daniel Oliveira
The position() function in XSLT returns the order of the element.
For an xml document with elements:
<a>
<b></b>
<b></b>
</a>
<xsl:apply-templates select="b"/>
<xsl:template match="b">
Element b:
<xsl:value-of select="position()"/>
</xsl:template>
Similar Messages
-
How to get the PDF Text position, font, size, align...?
Hi~!
I can extract all the text from the PDF file, but just plain text.
I need their format, position, font, size, align.
I am using C#, IAC, and read the SDK carefully.
How to get them?
Thanks for every hint on how to achieve this!
Jason Wang"Often this is a rectangle, sometimes not (e.g. for italic text the box
may be slanted too)."
Sometimes it lines up with the horizontal axis, sometimes not.
Aandi Inston
=====================================================
"Remember, in PDF, the origin is BOTTOM LEFT... "
Leonard Rosenthol
=====================================================
Thank you, Aandi, Leonard, Thanks a lot
Jason Wang -
How to get the start Y position from IWaxLine
Hello Everybody..
When I enter the text in the textframe,
the text's top position is not equal to textframe's top position(startYposition).
I want to know that how to get text's top position.
I guess that
IWaxLine* waxLine = waxIterator->GetFirstWaxLine(start);
PMReal startYPosition = waxLine->GetYPosition () - waxLine->GetLineHeight ();
but it is not true.
I use Adobe Paragraph Composer
When I use Adobe CJK Paragraph Composer the everything ok.
But, I have to use Adobe Paragraph Composer.
How can I solve this problem ?
Thank you..
-
I updated my phone to ios8 by connecting to my computer. I then updated my husbands phone to ios8. Since then, I get every message he sends (as an imessage) and I also get my own messages back when I send him a message (text). I connected them to the same computer. I have now changed it so we have different apple id's, but at the time, it was the same. HELP!
Stop using the same AppleID. That's why you're getting each other's messages.
-
How to get the short text values from F4 SEARCH HELP
Hi Friends,
My requirement is in Module -pool Screen Programming, i have Designed one field in a custom screen and provided a F4 search help to that field..
For eg the F4 help is displayed as below.
Value short text
1 A
2 B
3 C
4 D
5 E
6 F
7 G
When i select the first option (1) then value 1 appears in the field.
now i want the text relevant to the value 1 to appear by the side of the field.
Eg : 1 A (A should appear by the side of the value 1)
How do i achieve it?
Kindly help me.
Regards,
K.S.Kannan.
Edited by: kannan ks on Dec 8, 2008 4:05 PMhi
1) place a field adjacent to your value field on which F4 is operated
so now you will have 2 fields.
iam considering it as for ex: field1 & field2
2)
BOLD one is import in FM call
CLEAR: t_dynpfld_mapping,
e_dynpfld_mapping.
e_dynpfld_mapping-fldname = 'F0001'.
e_dynpfld_mapping-dyfldname = -
> name of field1 (for ex: your 1 value field name)
APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
e_dynpfld_mapping-fldname = 'F0002'.
e_dynpfld_mapping-dyfldname = -
> name of field2 (for ex: your short text field name)
APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
3))))))))
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield =
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = -
> name of field1 (for ex: your 1 value field name)
value_org = 'S'
TABLES
value_tab = itab
dynpfld_mapping = t_dynpfld_mapping
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3 -
Getting the absolute location of a component within a JFrame
I am trying to get the location of the mouse on a Canvas object inside a JFrame.
At present I'm using the MouseInfo.getPointerInfo().getLocation() method to get the absolute mouse position, and taking away the absolute position of the JFrame using myFrame.getLocation(). But this value is slightly off, due to the window decoration.
Is there any way to get the absolute position of the Container(JFrame.getContentPane()) housing my Canvas object? Since this has no decoration it wouldn't throw off the position.
Thanks in advance,
EugeneThe size information of the decorations is available through
Insets insets = frame.getInsets();
insets.left and insets.top may be helpful for location info.
Also, SwingUtilities has handy convertPoint and convertTo/FromScreen methods which you can use.
Or you can look up the implementation of these in the source code and make up your own method(s). -
How to get the absolute path of a file from the local disk given the file n
how to get the absolute path of a file from the local disk given the file name
// will look for the file at the current working directory
// this is wherever you start the Java application (cound be C: and your
// application is located in C:/myapp, but the working dir is C:/
File file = new File("README.txt");
if (file != null && file.exists())
String absolutePath = file.getAbsolutePath(); -
Get the long text into BADI from text editor
hi all,
I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
Can anybody help how can i get the long text to the BADI.
Regards,
MadhaviHi
Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
IF_LONGTEXTS_MM~GET_TEXTOBJECT
IF_LONGTEXTS_MM~GET_TYPES
IF_LONGTEXTS_MM~GET_TEXT
IF_LONGTEXTS_MM~SET_TEXT
IF_LONGTEXTS_MM~ADOPT_TEXT
IF_LONGTEXTS_MM~DELETE_TEXT
IF_LONGTEXTS_MM~EDIT_TEXT
Regards
Eduardo -
How to get the field texts from abap dictionary into screen Text fields
Hi SapAll.
here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
but iam unable to get the field text for the text field from teh table CAUFVD.
CAN ANY BODY HELP ME IN THIS.
regards.
varmaHi Varma,
Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
Regards
Thiru -
Get the long text from Text Editor
Hi,
I am using text editor to enter the long text, after entering the text in the text editor
when press the save button i am getting the long text into the internal table . this is working fine till here.
But when press SAVE button , i want the text into the internal table and the text editor to be closed.
but here i am not able to get the data into internal table as it is again creating text editor .
Can anyboby help me .Hi,
Refresh the table. -
How can I get the cursor's position in a opened file and display a menu?
Hello,
I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
More clearly-
1. First I would save some words or sentences in a file(aa.txt).
2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
Would you please help me on this regard.
ThanksDrClap wrote:
I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
[http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
<quote>
...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
</quote>
So I guess that a non-sequitor ... or is it? -
While my friend was setting up his iphone because i had recently updated it for him he needed a itunes account to use for "bump" so i could transfer his contacts back. So i used my itunes and icloud account to sign in so he could download that because he didnt have any of those accounts. So when i logged in he was basically me, my name was his phones name aswell. Well i used "bump" his name was the same as mine. I got the contacts to work but now every time i send him a text message, (imessage) i get the exact same message from myself. How to i unverify him off of my icloud so i can be the only one using it?
The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.
-
Can I get the same text messages on both my iPhone and my iMac
can I get the same text messages on both my iPhone and my iMac
It seems that my Mac is getting them and they dont show up on my iphone.Hi julian KAYE!
You will want to make sure that both your computer and phone have all options checked in the “Start new conversations from” section in your Messages settings:
iOS: Using Messages
http://support.apple.com/kb/ht3529
You can change the address that new iMessage conversations are started with in Settings > Messages > Send & Receive > Start new conversations from. Note that this setting applies only to new conversations. If you would like to change the address from which messages are sent, first change this setting, and then delete the existing conversation and start a new one.
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
Thanks for using the Apple Support Communities!
Cheers,
Braden -
How to get the absolute path of logicalhost server domain on Windows Sun
i am reading a file from Xsql Folder, that is located in the logicalhost Sun\AppServer\domains\domain1\applications\j2ee-apps.(IN Sun Application Server)
I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
i tried with System.getProperty("com.sun.aas.instanceRoot").
but i am able to retrive Sun\AppServer\domains\domain1 upto this .i am unable to retrive Sun\AppServer\domains\domain1\applications\j2ee-apps.
please suggest me how u can get absolute path in sun application serverTake a look here
-
How to get the absolute path of logicalhost server domain on Windows?
My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
And my second question is: Why does this happen?The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
Hope this helps
Paul
Maybe you are looking for
-
Does PSE11 show HDR exif data for a Canon 5D Mark III?
I have taken some pictures with the HDR feature on my Canon 5D Mark III. The HDR image that the camera creates does not show that it was created using the camera's HDR feature when viewed with PSE11. The Canon Software that came with my camera is Ima
-
Hello, I'm not sure if this is a Captivate or Flash question, but I'm hoping someone can point me in the right direction. I have a couple of videos created in Captivate 5 that I would like to share with my team. These consist of video capture done by
-
Hi, Using DW CS3, I was cleaning up my site and wanted to place my main css file in the css folder (for some reason, it was in the root folder). I assumed DW would keep all links, etc. in tact. Everything else is fine, including my horizontal Spry Me
-
all my contacts have cell phone numbers next to their name. i would like to print a list of only this field. How do i do this? i tried to cut and past to Excel but it not a "clean fit" and is more trouble than it is worth. is there an easier way?
-
Integration iLearning login with LDAP?
Hi friends, Although there exists a Metalink note with this exactly title, (How To Integrate Oracle iLearning and LDAP Note:452425.1) I've searched inside documentation how exactly iLearning does this step. I mean: I have to install the iLearning Pla