jd.xml.xslt.util
Class AssocStylesheetBuilder

java.lang.Object
  extended byjd.xml.xslt.util.AssocStylesheetBuilder

public class AssocStylesheetBuilder
extends Object

A helper class to build a associated stylesheet from the processing instructions of an xml input document.


Constructor Summary
AssocStylesheetBuilder(String title, String media, String charset)
           
 
Method Summary
 XmlSource getStylesheetSource(XmlSource source)
          Get the associated stylesheet as a String.
 String getStylesheetString(XmlSource source)
          Get the associated stylesheet as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssocStylesheetBuilder

public AssocStylesheetBuilder(String title,
                              String media,
                              String charset)
Method Detail

getStylesheetString

public String getStylesheetString(XmlSource source)
                           throws SAXException,
                                  IOException
Get the associated stylesheet as a String.

Returns:
the string or null if the xml document does not contain any xml-stylesheet instructions
Throws:
SAXException
IOException

getStylesheetSource

public XmlSource getStylesheetSource(XmlSource source)
                              throws SAXException,
                                     IOException
Get the associated stylesheet as a String.

Returns:
the string or null if the xml document does not contain any xml-stylesheet instructions
Throws:
SAXException
IOException