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

Nested Tags

Subject: Nested Tags
From: "Mark Micallef" <mmica@xxxxxxxxxxxxxx>
Date: Wed, 14 Aug 2002 13:38:58 +0200
tags nested
Hi All,

  This is probably a breeze for all of you but I'm still a beginner. ;-)

  I have the following situation:

  <description>This text describes the <link target="www.xyz.com"
text="procedure"/> involced in doing something.</description>

  I need to display the text withing the <description> tags and also to add
an html hyperlink whereever I encounter the <link> tag.

  I am trying to do it like this but it's obviously wrong because the link
appears at the end of the sentence instead of the beginning:

  <xsl:template match="description">
	<p>
		<xsl:value-of select="."/>
		<xsl:apply-templates select="link"/>
	</p>
	<br/>
  </xsl:template>

Any ideas?

Thanks,

Mark


 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.