[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: how to get tagnames using xsl?

Subject: Re: how to get tagnames using xsl?
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Mon, 08 Jan 2001 09:06:16 +0100
xsl tagnames
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.