[Yanel-dev] str:replace()
Michael Wechner
michael.wechner at wyona.com
Mon Apr 18 14:53:15 CEST 2011
On 4/18/11 11:40 AM, Balz Schreier wrote:
> I don't know, you could show me once how to do that without Yanel?
will send you something shortly
Cheers
Michael
>
> On Mon, Apr 18, 2011 at 11:27 AM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Hi Balz
>
> Does it work if you try this standalone (not within the Yanel
> context)?
>
> Thanks
>
> Michael
>
>
> On 4/18/11 11:02 AM, Balz Schreier wrote:
>> I tried to use the string extension now, but it still gives me
>> the error that the method does not exist...
>>
>> I have this in my XSL:
>>
>> <xsl:stylesheet version="1.0"
>>
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>
>> xmlns="http://www.w3.org/1999/xhtml"
>>
>> xmlns:xhtml="http://www.w3.org/1999/xhtml"
>>
>> xmlns:xi="http://www.w3.org/2001/XInclude"
>>
>> xmlns:z="http://zwischengas.com/article/1.0/"
>>
>> xmlns:dc="http://purl.org/dc/elements/1.1/"
>>
>> xmlns:dcterms="http://purl.org/dc/terms/"
>>
>> xmlns:dyn="http://exslt.org/dynamic"
>>
>> xmlns:exsl="http://exslt.org/common"
>>
>> xmlns:str="http://exslt.org/strings"
>>
>> exclude-result-prefixes="xhtml dc"
>>
>> extension-element-prefixes="str">
>>
>>
>> and the code
>>
>> <xsl:choose>
>>
>> <xsl:when test="str:ends-with($price, '00')">
>>
>>
>> if anybody has an idea, let me know.
>> cheers
>> balz
>>
>> On Mon, Mar 28, 2011 at 5:25 PM, Cedric Staub <cs.staub at cssx.ch
>> <mailto:cs.staub at cssx.ch>> wrote:
>>
>> On Mon, Mar 28, 2011 at 10:44:42AM +0200, Balz Schreier wrote:
>> > how can I find out what exslt library is used by Yanel?
>> >
>> > I wanted to use
>> >
>> > xmlns:str="http://exslt.org/strings"
>> >
>> > , specifically the function str:replace(),
>> >
>> > but it seems it does not exist in the version that is
>> included in Yanel?
>>
>> Last time I checked Yanel used Xalan 2.7 which should support
>> the string
>> extensions in eXSLT. Did you also set extension-element-prefixes?
>>
>> For example:
>> <xsl:stylesheet version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>> xmlns:str="http://exslt.org/strings"
>> extension-element-prefixes="str">
>>
>> There's also a pure XSLT implementation at
>> http://www.exslt.org/str/index.html
>>
>> See also Xalan's homepage on eXSLT
>> https://xml.apache.org/xalan-j/extensionslib.html#exslt
>>
>> Cheers
>> Cedric
>>
>> --
>> Yanel-development mailing list Yanel-development at wyona.com
>> <mailto:Yanel-development at wyona.com>
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>
>>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110418/d52d6aa5/attachment.html>
More information about the Yanel-development
mailing list