You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Zamek <za...@vili.pmmf.hu> on 2003/10/22 23:38:31 UTC

element name value in xsl

Hello all,

I am new in cocoon (and xml too), and I cannot found any snippets to get any 
element name. For example

<xsl:template match="/|*">
  this element name is: ?????????
  <xsl:apply-templates/>
<xsl:template>


-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: element name value in xsl

Posted by Oleg Dulin <du...@olegdulin.com>.
This is really a question for an XSL list.

But I'll be nice and tell you:

<xsl:value-of select="name()" /> will insert the name of the current 
node into the output.

Kind regards,
Oleg

Zamek wrote:

> Hello all,
> 
> I am new in cocoon (and xml too), and I cannot found any snippets to get any 
> element name. For example
> 
> <xsl:template match="/|*">
>   this element name is: ?????????
>   <xsl:apply-templates/>
> <xsl:template>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org