Subject: Re: [xsl] XSLT extensions and how to disable them From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 13 Nov 2009 17:57:10 +0100 |
I created a stylesheet to illustrate the use of three kinds of extensions (I do not show the use of an integrated extension function):
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="java:java.lang.Math" xmlns:exslt="http://exslt.org/math"
xmlns:saxon="http://saxon.sf.net/"
extension-element-prefixes="java exslt" version="2.0">
<xsl:template match="/" >
<xsl:value-of select="java:sqrt(2)" /> <xsl:value-of select="exslt:abs(8 - 12)" /> <xsl:value-of select="saxon:is-whole-number(1.23)" />
</xsl:template>
</xsl:stylesheet>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT extensions and how to di, Costello, Roger L. | Thread | [xsl] Do xsl processors contain opt, cert21 |
[xsl] XSLT extensions and how to di, Costello, Roger L. | Date | Re: [xsl] using xsl:output-characte, Tom T |
Month |