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

RE: How do I pull out an element name out for use as a

Subject: RE: How do I pull out an element name out for use as a aprinted variable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 22 Jun 2001 13:39:10 +0100
breakiterator element
You want something like

<xsl:for-each select="*">
  <td><xsl:value-of select="name()"/></td>
</xsl:for-each>

Or have I misunderstood?

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Eric
> Schenfeld
> Sent: 21 June 2001 20:35
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How do I pull out an element name out for use as a
> aprinted variable
> 
> 
> I have the following XML structure:
> <contacts>
> <contact>
>      <name>xxxx</name>
>      <title>Program Director</title>
>      <phone>xxx.xxx.xxxx</phone>
>      <email>
>       <link 
> mailto:href="mailto:xxxxxxx@xxxxxxxxxxx>xxxxxxx@xxxxxxxxxxx</link>
>      </email>
> </contact>
> </contacts>
> 
> The children elements of contact vary slightly between 
> different contact lists.  Because of this, the tables in 
> which they appear should often have different headers (which 
> would just be the name of that child element... ie name, 
> title, phone, email ... in this case).  I tried using the 
> recommendation in the FAQ under the first table section but i 
> couldn't get it to work for children elements instead of the 
> attributes.  Any help is appreciated.
> eric
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 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.