This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Inserting URL info from XML element into XSL template
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Inserting URL info from XML element into XSL template
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 2 Aug 2001 14:45:11 +0100
- References: <3B6A17E8@parakeet> <004601c11b53$74c8b270$0201045c@IBMQC9EK1SKXHR>
- Reply-To: xsl-list at lists dot mulberrytech dot com
]Two options:
]
]1. Use a variable and an attribute value template:
]<xsl:variable name="filename" select="img/text()"/>
]<img scr="images/{$filename}" />
]
]2. Use xsl:attribute with xsl:value-of:
]<img>
] <xsl:attribute name="src">images/<xsl:value-of
]select="img"/></xsl:attribute>
]</img>
or simpler
3) use the attribute value template directly
<img scr="images/{img}" />
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list