This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: print out the actual node (NEWBIE)
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 16 Sep 2002 10:34:10 +0100
- Subject: RE: [xsl] print out the actual node (NEWBIE)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> Im having problems with my template and I think somehow its related to
> the node. Is there a way to print out the actual node I'm in?
>
> <a>
> <b/>
> <c>
> <xsl:value-of select="name()"/>
> </c>
> <d/>
> </a>
the name() function prints out the name of the element....if you want the
content you would do
<xsl:value-of select="."/>... but I left my mind reading email client at
home....need to see your xml and xslt to usefully comment.
cheers, jim fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list