org.outerj.daisy.frontend
Class DocumentTypeSpecificStyler
java.lang.Object
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.
|
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 |
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 definedbasePath - 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 -
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:
- 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
- Parameters:
buffer - containing the XML of the publisher request for the document.
Copyright © -2006 . All Rights Reserved.