xsl-list
[Top] [All Lists]

Re: [xsl] current month xslt 1.0

2010-11-29 07:21:36
On Mon, Nov 29, 2010 at 12:14 AM, Szabo, Patrick (LNG-VIE)
<patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at> wrote:
Hi,

Is there a way to determine the current month with nativ xslt 1.0 !?

No, there isn't a current-month() function in XPath 1.0 and neither is
this information part of the static context.

There is a workaround: Pass the current month as a parameter on
invoking the XSLT transformation.

Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play

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