|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Date.xsl - incorrect function reference in example
Hi:
Being that I just spent about an hour trying to figure out what was going
wrong with the "date.xsl" example from J. Clark
(http://www.jclark.com/xml/xt.html - see: Extension Functions), I thought
I'd save 'someone' a bit of time by pointing out the error.
In the example given, i.e.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns:date="http://www.jclark.com/xt/java/java.util.Date"
xmlns="http://www.w3.org/TR/REC-html40"
result-ns="">
<xsl:template match="/">
<html>
<xsl:if test="function-available('date:to-string') and
function-available('date:new')">
<p><xsl:value-of select="date:to-string(date:new())"/></p>
</xsl:if>
</html>
</xsl:template>
</xsl:stylesheet>
change "function-available..." to "extension-function-available". (I don't
know if it makes a difference, but I also removed the 'result-ns=""'. Note
that I'm using the LATEST win32 version of xt.)
good luck,
brigitte
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








