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

accessing individual nodes while iterating

Subject: accessing individual nodes while iterating
From: "NIENKE, Bill P. - ACCOR-NA" <Nienke_Bill@xxxxxxxxxxxx>
Date: Thu, 12 Dec 2002 15:36:22 -0600
xml accessing nodes
Hi,
I'm having troubles translating XML into HTML. I can iterate through the WPT
nodes, but I get all of the child nodes too. Since I don't want all of the
nodes in my output I'd like to format like this:
<a href="http://www.geocaching.com/seek/cache_details.aspx?ID=38989">Hunt
for the Hideout by Nick & Nora</a> - GC984D

Here is a sample of the XML file:

<wpt lat="32.725083333" lon="-97.014716667">
 <name><![CDATA[GC984D]]></name>
 <desc><![CDATA[Hunt for the Hideout by Nick & Nora]]></desc>
 
<url><![CDATA[http://www.geocaching.com/seek/cache_details.aspx?ID=38989]]><
/url>
 <urlname><![CDATA[Cache Details]]></urlname>
 <sym>Waypoint</sym>
 <type><![CDATA[geocache]]></type>
</wpt>

How can you access just the nodes that you want while iterating?
Also, how would I work an xsl:sort into the iteration?

Thanks!
William Nienke




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


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.