se.unlogic.standardutils.xsl
Class XSLUtils

java.lang.Object
  extended by se.unlogic.standardutils.xsl.XSLUtils

public class XSLUtils
extends java.lang.Object


Constructor Summary
XSLUtils()
           
 
Method Summary
static java.util.List<java.lang.String> getDeclaredVariables(java.io.File file)
          Scans XSL documents for declared XSL variables such as <xsl:variable name="myvariable"/
static java.util.Set<java.lang.String> getVariableReferenses(java.io.File file)
          Scans XSL documents for references to XSL variables such as <xsl:value-of select="$foo"/ and <a href="{$foo}"/>.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLUtils

public XSLUtils()
Method Detail

getVariableReferenses

public static java.util.Set<java.lang.String> getVariableReferenses(java.io.File file)
                                                             throws org.xml.sax.SAXException,
                                                                    java.io.IOException,
                                                                    javax.xml.parsers.ParserConfigurationException
Scans XSL documents for references to XSL variables such as <xsl:value-of select="$foo"/ and <a href="{$foo}"/>. Returns the variable names.

Parameters:
file - Input XSL file
Returns:
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException

getDeclaredVariables

public static java.util.List<java.lang.String> getDeclaredVariables(java.io.File file)
                                                             throws org.xml.sax.SAXException,
                                                                    java.io.IOException,
                                                                    javax.xml.parsers.ParserConfigurationException
Scans XSL documents for declared XSL variables such as <xsl:variable name="myvariable"/

Parameters:
file - Input XSL file
Returns:
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException


Copyright © 2011. All Rights Reserved.