RES: [xsl] Selecting a substring()

Subject: RES: [xsl] Selecting a substring()
From: "Julian Karsten Arthur" <julian.arthur@xxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Dec 2005 11:30:56 -0300
Thank you very much Ragulf.

Easy when you know how :o)

-----Mensagem original-----
De: Ragulf Pickaxe [mailto:ragulf.pickaxe@xxxxxxxxx]
Enviada em: quinta-feira, 8 de dezembro de 2005 10:28
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Assunto: Re: [xsl] Selecting a substring()


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 :-)

Current Thread