[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

match values

Subject: match values
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2001 13:30:03 +0100
robb seber
My xml is as follows:
<TrackingSystem>
	<FPRecord>
		<name>Jay</name>
		<email href="mailto:jay@xxxxxxxx";>jay.com</email>
                <shortdescription>Focal point</shortdescription>
                <country>England</country>
                <organisation>MFAL</organisation>
       </FPRecord>
       <FPRecord>
		<name>Freddie</name>
		<email href="mailto:fred.com";>fred.com</email>
            <shortdescription>fp for Uganda</shortdescription>
            <country>United States</country>
            <organisation>UN</organisation>    
        </FPRecord>
           ----
       <requests>
           <name>Jay</name>
       </requests>
</TrackingSystem>  

My xsl is:    

<table> <tr align="left" valign="top">
          <td bgcolor="#FF6300" width="181">
            <p> <xsl:call-template name="fontStyle">
		   <xsl:with-param name="text">
					Name
		   </xsl:with-param>
		</xsl:call-template>
            </p>
           </td>

            <td colspan="3" width="363">
                   <xsl:call-template name="fontStyle2">
		        <xsl:with-param name="text">
					<xsl:value-of select="FPRecord[name=//requests/name]/name"/>
			</xsl:with-param>
                   </xsl:call-template>
             </td>
            </tr>                 

             ----
 <xsl:apply-templates select="/TrackingSystem/FPRecord"/>
    </table>
  </xsl:template>

<xsl:template match="FPRecord">
</xsl:template
<xsl:template match="/">     

I want the output to return me the results for Jay.
e.g.
Name Jay
Email ---
ShortDescription ---

I am getting nothing. Can someone possibly explain where my error is.

Thanks

Tanz 

  
         

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • match values
    • Tanzila Mohammad - Tue, 24 Apr 2001 08:26:14 -0400 (EDT) <=
      • <Possible follow-ups>
      • Ben Robb - Tue, 24 Apr 2001 08:46:45 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.