|
|
||||||
|
#1
|
|
|
|
|
Hello,
I have a problem I am trying to solve which I hope someone can help. I have the below xml data. I want to review the combined length and then make sure when I transform the data to a .txt file that only 240char of the combined TextLine data is written to the output. I have found that I can get the total length of the TextLine data with the string-length() function. <xsl:variable name="lengthtest" select="."></xsl:variable> Length is:<xsl:value-of select="string-length($lengthtest)"/> But am having trouble triming the TextLine data to output only 240 char in Total for all Mark Packages. I tried sub-string(var,1,240) but it is only trimming each line_no's text. Can someone help point me in the correct direction? <Mark_Packages> <TextLine line_no="1">Let's see how long this will work with line number one and if I need to see how long this one is to strip off part of the data.</TextLine> <TextLine line_no="2">Then I am on Line #2 now and I want to see what the length is here. I keep typing and this should be a good test</TextLine> <TextLine line_no="3">So then I am</TextLine> <TextLine line_no="4"> on Line 3 and I keep typing, now I will stop.</TextLine> </Mark_Packages> Thanks, Mary |
|
|
|
#2
|
|
|
|
|
substring(/, 1, 240)
Cheers, Dimitre Novatchev "Mary Mormann" <mmormann> wrote in message news:2136 [..] |
|
#3
|
|
|
|
|
Dimitre,
This was so Easy, why didn't I think of this. It works now. Thanks, Mary "Dimitre Novatchev" <dimitren> wrote in message news:7fe2 [..] |
|
|
| Similar Threads | |
| Page total shows total for entire document not each section total. Page total shows total for entire document not each section total. I have a document with several sections, but am unable to get a correct page total for each separate... |
|
| Total Text Length of Adjacent Cells Hi All, I have two adjacent cells (E13 and F13) and i want to restrict the length of the text so that their ~combined~ length is less than 9 characters. I tried to use data... |
|
| finding total off all the nodes sample xml <xml> <item name = "keyboard" cost = "1000"/> <item name= "mouse" cost = "1200"/> <books> <book name=... |
|
| need help finding string them averaging the total I have two lists , column A & B , in column A is the # for the product… i.e.: A334GHLZ , in column C I have the price for that product.. Now, there is always more than 1... |
|
| Finding total via entered text I have a formula that will will search and give me the totals for the month and text listed in specific... |
|
|
All times are GMT. The time now is 06:31 PM. | Privacy Policy
|