This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sqrt


Hi.

> I need to use a sqrt() math function in a XSL/SVG
> style sheet. Knowing that I use a Saxon processor

Would this help you?

<?xml version="1.0"?>
<xsl:stylesheet
  version="1.0"
  xmlns:math="java:java.lang.Math"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  exclude-result-prefixes="math">

  <xsl:template match="/">
   <return><xsl:value-of select="math:sqrt(4)"/></return>
  </xsl:template>

</xsl:stylesheet>

Works in Saxon.


Bye.
/lexi


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]