[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Display link text as a hyperlink
> 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. Some of the functions can be implemented as native XSLT templates (not the same interface as a function but equivalent); others need processor-specific support. What I meant was (a) check whether this function is already implemented for your particular processor, and (b) if not, consider implementing it as specified in EXSLT, rather than designing your own specification. > > 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? > No, I don't think there's a function in EXSLT that handles this. It's quite hard to do with a simple function, which is why XSLT 2.0 does it with a custom instruction (xsl:analyze-string). Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|