This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: how to get tagnames using xsl?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] how to get tagnames using xsl?
- From: Eric van der Vlist <vdv at dyomedea dot com>
- Date: Mon, 08 Jan 2001 09:06:16 +0100
- Organization: Dyomedea <http://dyomedea.com>
- References: <20010108075853.46980.qmail@web10001.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
sha j wrote:
>
> Hi all
> I have an XML file and I want to convert into an HTML
> file. I want to print some of the XML tag names as the
> text of HTML. I am doing this is a for-each loop.
>
> <xsl:for-each select="document/*">
> <-- HERE I WANT TO PRINT THE TAG NAME-->
<xsl:value-of select="name()"/> <!-- to get the full name -->
<xsl:value-of select="local-name()"/> <!-- to get the local
(unqualified) name -->
Eric
> <xsl:value-of select="."/>
> </xsl:for-each>
>
> Could anyone help me with this?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list