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

Some help with xsl transform and filter please

Subject: Some help with xsl transform and filter please
From: Dylan Barber <dylan.barber@xxxxxxxxxxxxx>
Date: Thu, 25 Mar 2004 09:33:00 -0800 (PST)
xsl transform with filter
Okay hope I am not asking something so basic everyone thinks I am a dunce but i have an xml document that comes from a web service like this

  <?xml version="1.0" encoding="iso-8859-1" ?> 
           <methodResponse>
                <params>
                       <param>
                            <value>
                                <array>
                                    <data>
                                         <value>
                                              <struct>
                                                 <member>
                                                      <name>feedid</name> 
                                                      <value>
                                                             <string>2403</string> 
                                                      </value>
                                                 </member>
                                                 <member>
                                                      <name>status</name> 
                                                      <value>
                                                            <string>Syndicated</string> 
                                                      </value>
                                                 </member>
                                              </struct>
                                        </value>
                                  </data>
                             </array>
                       </value>
                 </param>
            </params>
  </methodResponse>

I have tried to transform it with something like this 

<xsl:template match="/">
	<xsl:for-each select="struct/member/value[string='Syndicated']">
		<xsl:value-of select="name" />
		:
		<xsl:value-of select="string" />
		;<br />
		</xsl:for-each>
	</xsl:for-each>
</xsl:template>

but this doesnt seem to work.  I am a newbie with this whole thing and really need some guidance on how this whole xsl xml thing goes together.  Sorry if I have missed the obvious or broken any rules.

Dylan Barber (CIW Professional, A+ Technician, Web Designer, Web Developer)

home phone-:- (785) 765-2664
work phone-:- (785) 539-3565 x1034
email-:- dylan.barber@xxxxxxxxxxxxx
homesite-:- http://www.codegalaxy.com

Current Thread

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.