xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Muench" <smue...@us.oracle.com>
Subject Re: converting from Microsoft's XSL to xalan <xsl:node-name/>
Date Thu, 10 Feb 2000 03:13:33 GMT
<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" <linda@derezinski.com>
To: <general@xml.apache.org>; <xalan-dev@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
| 
| 


Mime
View raw message