Connecting Tech Pros Worldwide Forums | Help | Site Map

remove a part of a string with xsl

Newbie
 
Join Date: May 2006
Posts: 1
#1: May 3 '06
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. ...

Reply