You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Steve Muench <sm...@us.oracle.com> on 2000/02/10 04:13:33 UTC

Re: converting from Microsoft's XSL to xalan

<xsl:value-of select="name(.)"/>

will do the trick.

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team

----- Original Message ----- 
From: "Linda Derezinski" <li...@derezinski.com>
To: <ge...@xml.apache.org>; <xa...@xml.apache.org>
Sent: Wednesday, February 09, 2000 6:04 PM
Subject: converting from Microsoft's XSL to xalan <xsl:node-name/> 


| I am converting xsl from Microsoft's implementation to xalan and have
| everything working but finding a replacement for <xsl:node-name/>.  This
| prints the current nodes' tag name.
| 
| The XML looks like this:
| <DATABASE NAME="MyDB">
|   <SECTION NAME="Sec1">
|      <mynode ID="23" NAME="MyName">
|        <child1>1</child1>
|        <child2>2</child2>
|      </mynode>
|    </SECTION>
| </DATABASE>
| 
| The output I am trying to create looks like this:
| Data mynode, 23, "MyName"
|   child1=1
|   child2=2
| End mynode
| 
| The XSL code to produce the data line in Microsoft looks like this:
| Data <xsl:node-name/>,<xsl:value-of select="@ID"/>,"<xsl:value-of
| select="@NAME"/>"
| 
| 
| From xalan I get the output of
| 
| Data , 23, "MyName"
| 
| Any ideas??
| 
| -Linda Derezinski
| 
|