473,503 Members | 241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

remove a part of a string with xsl

1 New Member
Hi
When I run the "xsl:" on the "Orginal xml:" file I get the result in "xml out"
but I want only the title not the footnote value from the second "value of select".
Anybody who have a solution for me

Orginal xml:
Expand|Select|Wrap|Line Numbers
  1. ...
  2. <section>
  3.  <title>
  4.   <phrase role="footnote reference">#
  5.    <footnote>
  6.     <para role="footnote text">
  7.       <phrase role="footnote reference">#Setting_service_parameter_VWPolo
  8.       </phrase>
  9.     </para>
  10.   </footnote>
  11.  </phrase>
  12. Setting the service interval on Volkswagen with flexible service interval </title>
  13. ...
XSL :
Expand|Select|Wrap|Line Numbers
  1. ...
  2. <xsl:template match="/article/section[1]/title">
  3.  <title> 
  4.   <footnote>
  5.    <para>
  6. <xsl:value-of select="/article/section[1]/title/phrase/footnote/para/phrase"/>
  7.    </para>                 
  8.   </footnote>  
  9. <xsl:value-of select="/article/section[1]/title"/> 
  10.  </title>
  11. </xsl:template>
  12. ...
XML out:
Expand|Select|Wrap|Line Numbers
  1. ...
  2. <section>
  3.  <title>
  4.   <footnote>
  5.     <para>#Setting_service_parameter_VWPolo
  6.         </para>
  7.         </footnote>
  8.  ##Setting_service_parameter_VWPolo Setting the service interval on Volkswagen with flexible service interval     
  9.  </title>
  10. ...
May 3 '06 #1
0 1893

Sign in to post your reply or Sign up for a free account.

Similar topics

12
55526
by: Sam Collett | last post by:
How do I remove an item with a specified value from an array? i.e. array values 1,2,2,5,7,12,15,21 remove 2 from array would return 1,5,7,12,15,21 (12 and 21 are NOT removed, duplicates are...
4
3931
by: u7djo | last post by:
Hi, I'm currently building an application in Access and as part of this need to import forms and modules from another database. Some of the imports will be revisions of existing forms/modules so I...
4
2201
by: ouch | last post by:
Hi Everyone, Is there any way to remove the "@" from a verbatim string? I've tried the .remove(int, int) method, but it doesn't work. Thanks ouch
11
18240
by: deko | last post by:
I need to loop through a string and remove all characters except numbers or letters. I am getting an ArgumentOutOfRangeException: "Index was out of range. Must be non-negative and less than the...
1
5682
by: Jeff User | last post by:
Hi ..net 1.1 I have a simple string array like string myArray = CallToWebServiceThat_Returns_Elements; I want to remove an item from the array and also remove its position. I can search the...
3
1249
by: Smythe32 | last post by:
All, I am not well versed in writing code and was looking for some assistance. I have the following info. housenumber directional 1143 1142 N
3
5380
by: Niyazi | last post by:
Hi all, I have a dataTable that contains nearly 38400 rows. In the dataTable consist of 3 column. column 1 Name: MUHNO column 2 Name: HESNO Column 3 Name: BALANCE Let me give you some...
7
6587
by: Susan Mackay | last post by:
I have a data table that is connected to a database table with a data adapter in the 'standard' manner. However I want to be able to remove selected rows from the data table (i.e. no longer...
3
2122
by: shalini jain | last post by:
Hi all, I dont know much of PERL so i m facing a problem in trying to remove the variable length of word from the string. I have written a code for it. Please guide me whether i will get the...
4
9829
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.