Re: Named Template not found

"James Fuller" <[email protected]> Tue, 18 Sep 2007 19:25:03 +0200
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
you may find your processor natively supports this instead of using template

otherwise u may have to hack up xslt to work e.g.

http://www.exslt.org/date/functions/format-date/date.format-date.template.xsl

says that the xslt implementation depends on str namespace

http://www.exslt.org/str/functions/padding/str.padding.template.xsl

u might want to just copy these 2 xslt into a single dir adjust paths, etc

gl, Jim Fuller

On 9/18/07, Jason Stadther <[email protected]> wrote:
> Named template
> '{http://exslt.org/dates-and-times}format-date' does not
> exist in the stylesheet.
>
> I can't seem to figure out why I keep getting this error. All the files are
> in the right spot and I think I'm referencing them correctly. Here is the
> start of my xls page.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform "
> xmlns:date="http://exslt.org/dates-and-times"
> >
>  <xsl:import
> href="exslt/functions/format-date/date.format-date.template.xsl"/>
>  <xsl:output method="xml" version="1.0" encoding="UTF-8"
>   cdata-section-elements="NTKProjTitle"
>  />
>
>  <xsl:param name="today"/>
>
>  <xsl:variable name="thisyear">
>   <xsl:call-template name="date:format-date">
>    <xsl:with-param name="pattern" select="'yyyy'"/>
>    <xsl:with-param name="date-time" select="$today"/>
>   </xsl:call-template>
>  </xsl:variable>
> _______________________________________________
> exslt mailing list
> [email protected]
> http://www.exslt.org/list
>