[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Failed to load java error in SAXON transformation

Subject: RE: Failed to load java error in SAXON transformation
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 29 Jul 2004 13:50:28 +0100
load java
In Saxon's implementation of Java extension functions, you need to declare
one namespace for each Java class that you use in an extension function,
with the local name of the method within the class acting as the local name
of the XPath function. Saxon doesn't support the alternative Xalan mapping
used in your stylesheet.

Michael Kay 

> -----Original Message-----
> From: Ranjan K. Baisak [mailto:ranjanbaisak@xxxxxxxxx] 
> Sent: 29 July 2004 10:48
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Failed to load java error in SAXON transformation
> 
> I got it resolved by following declaration
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0"
> 		    xmlns:m="java.util.Date">
> ...
> <xsl:template name="displayDate">
> 	<xsl:value-of select="m:new()"/>
> </xsl:template>
> ...
> 
> but the problem is, I am using lots of java methods in
> my stylesheet so should I declare each class with a
> name space and use it later or there is a way to
> resolve it.
> 
> regards,
> Ranjan
> 
> --- "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx> wrote:
> 
> > Hello List,
> >           I am trying to move from XALAN to SAXON.
> > My stylesheet contains following declarations:
> > <?xml version="1.0"?>
> > <xsl:stylesheet
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0"
> > 		    xmlns:java="http://xml.apache.org/xslt/java">
> > ...
> > <xsl:template name="displayDate">
> > 	<xsl:value-of select="java:java.util.Date.new()"/>
> > </xsl:template>
> > ....
> > </xsl:stylesheet>
> > 
> > When I am doing the transformation then it gives
> > error:
> > Failed to load java. This occurs during date
> > display.
> > So I think Saxon is not able to recognise java
> > namespace declaration.
> > xmlns:java="http://xml.apache.org/xslt/java"> needs
> > to
> > be changed. Can anybody suggest me what should be
> > correct namespace declaration for Saxon to work
> > perfectly?
> > 
> > regards,
> > Ranjan
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.