se.unlogic.standardutils.xml
Class XSLVariableReader

java.lang.Object
  extended by se.unlogic.standardutils.xml.XSLVariableReader

public class XSLVariableReader
extends Object

This class is used to read the values of xsl:variable tags in XSL stylesheets. It recursively parses through all xsl:includes and xsl:imports and also handles 'classpath://' style URI's.

Author:
Robert "Unlogic" Olofsson

Constructor Summary
XSLVariableReader(Document doc)
           
XSLVariableReader(File file)
           
XSLVariableReader(String filePath)
           
XSLVariableReader(URI uri)
           
 
Method Summary
protected  List<Document> getSubDocuments(Document doc, List<Document> subDocuments)
           
 String getValue(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLVariableReader

public XSLVariableReader(Document doc)
                  throws SAXException,
                         IOException,
                         ParserConfigurationException,
                         XPathExpressionException,
                         URISyntaxException
Throws:
SAXException
IOException
ParserConfigurationException
XPathExpressionException
URISyntaxException

XSLVariableReader

public XSLVariableReader(URI uri)
                  throws SAXException,
                         IOException,
                         ParserConfigurationException,
                         XPathExpressionException,
                         URISyntaxException
Throws:
SAXException
IOException
ParserConfigurationException
XPathExpressionException
URISyntaxException

XSLVariableReader

public XSLVariableReader(String filePath)
                  throws SAXException,
                         IOException,
                         ParserConfigurationException,
                         XPathExpressionException,
                         URISyntaxException
Throws:
SAXException
IOException
ParserConfigurationException
XPathExpressionException
URISyntaxException

XSLVariableReader

public XSLVariableReader(File file)
                  throws SAXException,
                         IOException,
                         ParserConfigurationException,
                         XPathExpressionException,
                         URISyntaxException
Throws:
SAXException
IOException
ParserConfigurationException
XPathExpressionException
URISyntaxException
Method Detail

getSubDocuments

protected List<Document> getSubDocuments(Document doc,
                                         List<Document> subDocuments)
                                  throws SAXException,
                                         IOException,
                                         ParserConfigurationException,
                                         URISyntaxException,
                                         XPathExpressionException
Throws:
SAXException
IOException
ParserConfigurationException
URISyntaxException
XPathExpressionException

getValue

public String getValue(String name)


Copyright © 2011. All Rights Reserved.