org.inria.ns.reflex.xml.provider.fo
Class XHTMLToXSLFOFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.inria.ns.reflex.xml.provider.fo.XHTMLToXSLFOFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class XHTMLToXSLFOFilter
extends XMLFilterImpl

A filter that produces an XSLFO output from an XHTML, or XML input with CSS.

Author:
Philippe Poulard

Constructor Summary
XHTMLToXSLFOFilter()
           
 
Method Summary
 void parse(InputSource input)
          Catch the system ID from the input source, to set to the XSLFO builder.
 void startDocument()
          Plug the XSLFO builder and go on.
 void startElement(String uri, String localName, String name, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTMLToXSLFOFilter

public XHTMLToXSLFOFilter()
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Plug the XSLFO builder and go on.

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class XMLFilterImpl
Throws:
SAXException

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class XMLFilterImpl
Throws:
SAXException

parse

public void parse(InputSource input)
           throws SAXException,
                  IOException
Catch the system ID from the input source, to set to the XSLFO builder.

Specified by:
parse in interface XMLReader
Overrides:
parse in class XMLFilterImpl
Parameters:
input - The input.
Throws:
SAXException
IOException