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

Re: attribute of a single-tag node

Subject: Re: attribute of a single-tag node
From: Ronan Klyne <ronan.klyne@xxxxxxxxxxx>
Date: Thu, 16 Nov 2006 15:13:54 +0000
Re:  attribute of a single-tag node
Nico Van Cleemput wrote:
> Hi,
> 
> sorry for my probably incorrect terminology, but when I say single-tag
> nodes I mean a node like <img src="..."> in HTML. If I want to create
> such a tag with specific attributes, how do I go about doing that? I
> guess I can't use <xsl:attribute> because that has to be defined inside
> the tag.
> 
> Is this the only possible way of doing it:
> 
> <img>
>   <xsl:attribute name="src">
>        <xsl:text><xsl:value-of select="$src"/></xsl:text>
>   </xsl:attribute>
> </img>
> 
> Is there anyway of doing this and not ending up with a non-existing
> </img>-tag?
> 
> Thanks,
> Nico
> 
> 

Use this:

<img src="{$src}"/>

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
ronan.klyne@xxxxxxxxxxx
www.groupbc.com

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.