Re: help me please
James Fuller <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Webcomposite |
| Message-ID | <[email protected]> |
[email protected] wrote: >Hello Sir, > >I would like to use module format-date but the problem that I am initial >with xslt and I did not how i can include or integrate your module into my >code. > >I would like to use the module format-date to be able to use this code: > > ><xsl:template name="print-date"> > > <xsl:param name="date"/> > > <xsl:call-template name="date:format-date"> > > <xsl:with-param name="date-time" select="$date" /> > > <xsl:with-param name="pattern" select="'dd MMMM yyyy'" /> > > </xsl:call-template> > ></xsl:template> > > there 2 ways to use exslt option 1) include specific date:format-date() xslt template into your transform using xsl:import <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> <xsl:import href="date.format-date.template.xsl" /> option 2) use an XSLT processor that natively supports this function, then all u have to do is declare namespace <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> note that module level imports (e.g. importing xsl templates from the whole date module) do not work. hth, Jim Fuller