Subject: Re: [xsl] Display link text as a hyperlink From: Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx> Date: Thu, 19 Mar 2009 23:02:35 +0100 |
Well, it might, that was what I wanted to find out -- the best way to do it. Haven't used EXSLT. Does the processor have to have a built-in support for them, or is it possible to use some pure XSLT libraries? I'm running PHP, and I think PHP XSL is built on libxsl. http://www.exslt.org/regexp/functions/replace/ seems to be the function, but as far as I understand, it replaces strings with strings. What about replacing strings with elements, i.e. link text with <a>? Is there an EXSLT example on this? Martynas www.whatsup.lt On Thu, Mar 19, 2009 at 3:03 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote: > Wouldn't it be better to do this by implementing the EXSLT string-handling > and regexp functions (or using the implementations if that has already been > done?) > > www.exslt.org > > Michael Kay > http://www.saxonica.com/ > > >> -----Original Message----- >> From: Martynas Jusevicius [mailto:martynas.jusevicius@xxxxxxxxx] >> Sent: 19 March 2009 14:00 >> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >> Subject: Re: [xsl] Display link text as a hyperlink >> >> I made a quick hack for this in PHP, calling native PHP >> regexp functions from XSLT. Maybe it will be useful for some: >> http://www.xml.lt/Blog/2009/03/19/Regexp+string+replace+with+PHP+XSL >> >> Martynas >> www.xml.lt >> >> On Thu, Mar 12, 2009 at 3:14 PM, Michael Kay >> <mike@xxxxxxxxxxxx> wrote: >> >> to refresh an old thread again -- how can this be done in XSLT 1.0? >> > >> > I wouldn't attempt this in pure XSLT 1.0, except by use of an >> > extension function supporting regular expressions. >> > >> > Michael Kay >> > http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Display link text as a hy, Michael Kay | Thread | RE: [xsl] Display link text as a hy, Michael Kay |
Re: [xsl] Fwd: using xquey in XSLT , Michalmas | Date | Re: [xsl] Fwd: using xquey in XSLT , Michalmas |
Month |