This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: question about implements-prefix
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 6 Dec 2001 19:56:40 -0000
- Subject: RE: [xsl] question about implements-prefix
- Reply-to: xsl-list at lists dot mulberrytech dot com
> In the case of the original question, the namespace URI
> mattered. Not putting in the correct URI for the "user"
> namespace meant that the extension function in question would
> not be recognized.
That isn't right! You can put anything in there except a namespace that
means something like "http://www.w3.org/1999/XSL/Transform" i.e.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="anyoldname"
version="1.0">
<msxsl:script language="VBScript" implements-prefix="user">
function formatArg(idate)
formatArg = ucase(idate)
end function
</msxsl:script>
<xsl:template match="testcode">
<xsl:value-of select="user:formatArg(date)"/>
</xsl:template>
</xsl:stylesheet>
Would work just as well
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list