se.unlogic.standardutils.xsl
Class XSLUtils

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

public class XSLUtils
extends Object


Constructor Summary
XSLUtils()
           
 
Method Summary
static List<String> getDeclaredVariables(File file)
          Scans XSL documents for declared XSL variables such as <xsl:variable name="myvariable"/
static Set<String> getVariableReferenses(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 Set<String> getVariableReferenses(File file)
                                         throws SAXException,
                                                IOException,
                                                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:
SAXException
IOException
ParserConfigurationException

getDeclaredVariables

public static List<String> getDeclaredVariables(File file)
                                         throws SAXException,
                                                IOException,
                                                ParserConfigurationException
Scans XSL documents for declared XSL variables such as <xsl:variable name="myvariable"/

Parameters:
file - Input XSL file
Returns:
Throws:
SAXException
IOException
ParserConfigurationException


Copyright © 2011. All Rights Reserved.