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

Re: Can I find out the names of elements in a tree?

Subject: Re: Can I find out the names of elements in a tree?
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Date: Mon, 7 Jan 2002 22:02:42 +0100
trees finding name family trees
Hi Khalid,

Jeni, Michael & Co. are so deepened in their discussions about the 2.0
working drafts, that they forget to answer the easy questions ;-) I think
name() is the thing that you have been searching for.

<xsl:template match="root">
    <xsl:apply-templates select="*"/>

<xsl:template match="*">
    <xsl:value-of select="name()"/>
    <xsl:apply-templates select="*"/>



----- Original Message -----
From: "Khalid" <k_ali@xxxxxxxxxxxxxxx>

> If yes then can some on help me find out how?
> suppose the exml doc looks like the following
> <root>
>  <first>
>   <second>
>     <third>
>       <and-so-on>
>       </and-so-on>
>     </third>
>   </second>
>  </first>
> </root>
> <xsl:template match = "root">
>  and in here I want to find out the names of all the nodes in a display
> manner i.e one name on each line or something
> </xsl:template
> Thanks

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

Current Thread


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.
First Name
Last Name
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.