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

RE: repost Applying xsl:key to similar looking node na

Subject: RE: repost Applying xsl:key to similar looking node names
From: "Stuart Celarier" <stuart@xxxxxxxxxxx>
Date: Fri, 3 May 2002 19:51:58 -0700
RE:  repost Applying xsl:key to similar looking node na
I am not sure I understand your question. What does "pull the data"
mean? What does "similar looking node names" mean?

Are you looking for something like this?

<xsl:template match="/">
  <agentnames>
    <xsl:apply-templates select="//agentname"/>
  </agentnames>
</xsl:template>

<xsl:template match="agentname">
  <xsl:copy-of select="."/>
</xsl:template>


That would result in an XML file with an <agentnames> element containing
each of the <agentname> elements. I don't see where you think you need
to use xsl:key.

Try restating the question or giving an example of the result you want
from transforming you sample.

Cheers,
Stuart

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of KUMAR
NINGASHETTY
Sent: Wednesday, May 01, 2002 10:46

Sorry if this is not a sensible question ...For the following xml i was
wondering is there a way to 
use xsl:key for similar looking node names...If so how ??
All i need is to pull the data from the node  <agentname> across the
whole xml ...

<data>
    <companies>
       <agent>
            <agentname>AAA</agentname>
       </agent>
       <agent>
           <agentname>BBB</agentname>
                    <companies>
                          <agent>
                    	<agentname>CCC</agentname>
                          </agent>
                          <agent>
 		<agentname>DDD</agentname>
	          </agent>
	   </companies>
       </agent>
    </companies>
</data>



 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.