You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Linda Derezinski <li...@derezinski.com> on 2000/02/10 02:38:51 UTC

converting from Microsoft's XSL to xalan

I am converting xsl from Microsoft's implementation to xalan and am having
problems with finding a replacement for <xsl:node-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"/>"