RE: [xsl] saxon fail to find xslt functions

Subject: RE: [xsl] saxon fail to find xslt functions
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 28 Jun 2001 13:40:26 +0100
It's best to raise Saxon questions on the Saxon list (currently
saxon.xsl@xxxxxxxxxxx, but moving soon to SourceForge).

I don't know the answer to this one, I'd need to see the whole stylesheet.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Dominic J.
> Blythe
> Sent: 28 June 2001 11:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] saxon fail to find xslt functions
>
>
> I have this function in an xsl doc - I don't think i can use
> template match because it needs to run on all dates, to convert
> CCYY-MM-DD dates into YYMMDD, and there are a lot of date nodes
> in the xml document with various names.
>
> <saxon:function name="bcp:fixDate">
>     <saxon:return
> select="concat(substring(.,3,2),substring(.,6,2),substring(.,9,2))"/>
> </saxon:function>
>
> i'm calling it like this:
> <xsl:value-of select="bcp:fixDate(bas:InvoiceDate)"/>
>
> the xsl, bcp, saxon and bas namespaces are defined in the
> <xsl:stylesheet>
> element and if I don't call the function, transformation works ok.
> If I do call the function, i get this error from saxon:
>
> The URI http://www.bcpsoftware.com/schema does not identify an
> 	external Java class
>
> Of course it doesnt, it's the namespace identified by the bcp: prefix
> I'm attaching to the function. According to my saxon documentation
> 	"In a function call where the function name has a non-null
> 	namespace URI,the system searches first for a matching
> 	saxon:function definition, then for an external Java function"
> So why is it looking for an external Java class when there is a
> matching saxon:function definition?
>
> I'm not using EXSLT func: namespace because I don't think
> InstantSaxon 6.2.2 supports it.
>
> ______________________________________________________________________
> Dominic Blythe
> Programmer
> BCP Ltd
>
> BCP House, 151 Charles St, Stockport, SK1 3JY  UK
> t: 0161 355 3000 f: 0161 355 3001
> e: dominic.blythe@xxxxxxxxxxxxxxx
> _____________________________________________________________________
> /*  It's nice to be important, but it's more important to be nice  */
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread