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

[XPath-2.0] Get the name of type of a node

Subject: [XPath-2.0] Get the name of type of a node
From: Florent Georges <fgeorges.spam@xxxxxxxxx>
Date: Tue, 1 Nov 2005 21:38:23 +0100
name xpath
  Hi

  Do you know if it's possible to get the name of the type of an
element, with XPath 2.0?  Say I want to display the type of the 'elem'
elements.  What can I use in the '@select' of the following
'xsl:value-of'?

    <xsl:template match="elem">
      <xsl:text>name: 'elem', type: '</xsl:text>
      <xsl:value-of select="type-name(type-of(.))"/>
      <xsl:text>'&#10;</xsl:text>
    </xsl:template>

  Thanks,

--drkm

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.