xsl-list
[Top] [All Lists]

RES: Selecting a substring()

2005-12-08 07:30:56
Thank you very much Ragulf.

Easy when you know how :o)

-----Mensagem original-----
De: Ragulf Pickaxe [mailto:ragulf(_dot_)pickaxe(_at_)gmail(_dot_)com]
Enviada em: quinta-feira, 8 de dezembro de 2005 10:28
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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 :-)

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>
  • RES: Selecting a substring(), Julian Karsten Arthur <=