|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








