Re: [xsl] xsl:script tag not being allowed

Subject: Re: [xsl] xsl:script tag not being allowed
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Fri, 11 Oct 2002 07:34:49 -0700
Hi Vedu:

The script element needs to be bound to the language you are using. IE6
doesn't recognize the namespace you are using, so you need to implement the
appropriate namespace recognized by IE. So add this in your stylesheet


Then you call the function later, such as in a value-of statement:

<xsl:value-of select = "user:myFunction()" />

Note that user is an arbitrary prefix, you can name that however you like,
as long as it is the same as the namespace declaration it is supposed to be
bound to.

Visit to get a nice grasp on all this.


Charles White
The Tumeric Partnership
Author, Mastering XSLT, Sybex Books
Co-Author, Mastering XML, Premium Edition, Sybex Books

----- Original Message -----
From: "Vedu Hariths" <vhariths@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 11, 2002 6:52 AM
Subject: [xsl] xsl:script tag not being allowed

> Hi all,
> This is how my code looks (copied and pasted from
> Michael Kay's book, pg 100)
> <xsl:stylesheet version="1.1"
> xmlns:xsl="";
> xmlns:Date="java:java.util.Date">
> <xsl:script implements-prefix="Date" language="java"
> src="java.util.Date" />
> <xsl:variable name="Date"
> select="Date:to-string(Date:new())" />
> </xsl:stylesheet>
> This is what IE(6) spits out:
> Keyword xsl:script may not be used in namespace
> I ofcourse need the Java part for other functions but
> I was just trying this out to begin with and I wonder
> what I am doing wrong.
> Thanks in advance,
> Vedu
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread