xsl-list
[Top] [All Lists]

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

2005-11-01 13:38:23
  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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>