xsl-list
[Top] [All Lists]

Re: Failed to load java error in SAXON transformation

2004-07-29 02:48:17
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(_at_)yahoo(_dot_)com> 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 


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





                
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


<Prev in Thread] Current Thread [Next in Thread>