org.outerj.daisy.frontend
Class DocumentTypeSpecificStyler

java.lang.Object
  extended by org.outerj.daisy.frontend.DocumentTypeSpecificStyler

public class DocumentTypeSpecificStyler
extends java.lang.Object

This class is concerned with applying document type specific styling (by using Cocoon pipelines) to the documents stored in a PreparedDocuments object.


Nested Class Summary
static interface DocumentTypeSpecificStyler.StylesheetProvider
           
 
Constructor Summary
DocumentTypeSpecificStyler(java.lang.String publishType, java.lang.String basePath, java.lang.String daisyCocoonPath, DocumentTypeSpecificStyler.StylesheetProvider stylesheetProvider, PageContext pageContext, org.outerj.daisy.repository.Repository repository, Context context, ServiceManager serviceManager)
           
 
Method Summary
static java.lang.Object searchStyleInfo(SaxBuffer buffer)
          Searches the supplied buffer and returns: a String containing the value of the styleHint attribute on the p:publisherResponse element, if found otherwise a Long containing the typeId attribute of the first d:document element encountered otherwise null
 void transformPreparedDocuments(PreparedDocuments preparedDocuments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentTypeSpecificStyler

public DocumentTypeSpecificStyler(java.lang.String publishType,
                                  java.lang.String basePath,
                                  java.lang.String daisyCocoonPath,
                                  DocumentTypeSpecificStyler.StylesheetProvider stylesheetProvider,
                                  PageContext pageContext,
                                  org.outerj.daisy.repository.Repository repository,
                                  Context context,
                                  ServiceManager serviceManager)
Parameters:
publishType - 'html' or 'xslfo' or anything for which a pipeline is defined
basePath - the base path for addressing documents (should end on a slash). This is simply passed as a parameter to the stylesheets, who can use it if they need.
stylesheetProvider -
Method Detail

transformPreparedDocuments

public void transformPreparedDocuments(PreparedDocuments preparedDocuments)
                                throws java.lang.Exception
Throws:
java.lang.Exception

searchStyleInfo

public static java.lang.Object searchStyleInfo(SaxBuffer buffer)
Searches the supplied buffer and returns:

Parameters:
buffer - containing the XML of the publisher request for the document.


Copyright © -2006 . All Rights Reserved.