xsl-list
[Top] [All Lists]

Re: Selecting a substring()

2005-12-08 06:28:09
Hi Julian,

<xsl:variable name="image" select='substring-after("$currentnode/@*[name()
=current()/@field]","-")'/>

Should be:
<xsl:variable name="image"
select='substring-after($currentnode/@*[name()=current()/@field],"-")'/>

That is, without the " around the XPath, that you want to execute.

Regards,
Ragulf Pickaxe :-)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>