OK ! But a problem persists.
when I compile with FOP, It returns me errors about the line:
'exclude-result-prefixes="user"' in stylesheet and I don't understand why.

Thanks
Sandrine [Paris]




-----Message d'origine-----
De : Roland Lechner [mailto:[EMAIL PROTECTED]
Envoyé : mardi 30 avril 2002 11:02
À : [EMAIL PROTECTED]
Objet : Re: Current date integration



This definitly works (at least in my application).
It might be a "waste" to define a new namespace for just own function, but
it seems to be the only solution.

Roland

[EMAIL PROTECTED] schrieb am 30.04.02:
> Dear all,
>
> How is it possible to integrate (simply) current date to a xsl stylesheet
?
>
> This solution seems to be run, but it's constraining to define an own
> namespace for one function.
>
****************************************************************************
> ********************
> <xsl:stylesheet       version="1.0"
>               xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>               xmlns:fo="http://www.w3.org/1999/XSL/Format";
>               xmlns:func="http://www.exslt.org/functions";
>               xmlns:user="http://www.mcc-soft.com/mynamespace";
>
>               extension-element-prefixes="func"
>               exclude-result-prefixes="user">
>
> <func:script implements-prefix="user" language="javascript">
> <![CDATA[
>         function today()
>         {
>               // body javascript function
>         }
> ]]>
> </func:script>
> <xsl:template match="/">
>       <xsl:value-of select="."/><br/>
>       <xsl:variable name="today" select="user:today()"/>
> </xsl:template>
> </xsl:stylesheet>
>
****************************************************************************
> ********************
>
> Thanks for your help & best regards,
> Sandrine - Paris France
>
>


________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



(routed by MccMailRouter)

Reply via email to