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

Re: XSL nested tag help

Subject: Re: XSL nested tag help
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 04 Oct 2002 21:33:26 +0200
Re:  XSL nested tag help
<xsl:template match="Main">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="Main/text()">
  <h1><xsl:value-of select="."/></h1>
</xsl:template>

<xsl:template match="Main/Target">
  <h2><xsl:value-of select="."/></h2>
</xsl:template>

Regards,

Joerg

Mani Malarvannan wrote:
Hi,
I've following XML file.
<Main>
This is a first test message
<Target> and </Target>
it is important
</Main>


From the above XML file I'd like to write and XSL so that I'll get
following output
<h1>This is a first test message<h1> <h2> and </h2> <h1>it is important </h1>


I tried with xsl:for, xsl:if, xsl:while to check the tag but nothing is working. Any tips or pointers will help me a lot.

Thanks for your help

-Mani
mani@xxxxxxxxxxxx
www.cybelink.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.