Declaring an XSLT Extension Function

Extension functions must have one of the following signatures:

public Object FxnName()
       
public Object FxnName(Type1 var1, Type2 var2,...)
       
public static Object FxnName()
       
public static Object FxnName(Type1 var1, Type2 var2,...)
       

    

A class that contains an extension function might look like the following:

import org.w3c.dom.*;
               
import java.lang.Double;
               
public class NumberUtils
               
{ 
               
  public Object Average(NodeList nl)
               
  {
               
    double nSum = 0;
               
  for (int i = nl.getLength() - 1; i >= 0; i--)
               
   {
               
    nSum += 
               
    Double.valueOf(nl.item(i).
               
    getNodeValue()).doubleValue();
               
   }
               
  return new Double(nSum / nl.getLength());
               
  }
               
}
               

            

Using the Stylus Studio XML Grid View

This free onlince video tutorial shows how to use the Stylus Studio XML Grid View.

Industry DTD Standards Support (OASIS)

Stylus Studio provides integrated support OASIS catalogs, including thousands of industry-standard DTDs like DocBook, FIXML, and more!

Varying Record Layout to XML

Not every row in a text file has to have the same layout. Convert to XML has advanced pattern-recognition tools to route the data to where it belongs.

XML Reports

Build beautiful XML reports from Relational, XML and Legacy Data. You XML report can be rendered in PDF or HTML using XSLT, XQuery or XSL:FO.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member