This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: print out the actual node (NEWBIE)



> -----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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]