Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] repost Applying xsl:key to similar looking node names

From: "Stuart Celarier" <stuart@----------->
To:
Date: 5/3/2002 6:46:00 PM
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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent