org.daisy.pipeline.css.CssCascader Maven / Gradle / Ivy
The newest version!
package org.daisy.pipeline.css;
import javax.xml.namespace.QName;
import javax.xml.transform.URIResolver;
import org.daisy.common.transform.XMLTransformer;
/**
* Used by the px:css-cascade
step to inline CSS style sheets in XML.
*
* The known implementations are:
*
* - Medium embossed
*
*/
public interface CssCascader {
public boolean supportsMedium(Medium medium);
/**
* @param multipleAttrs When {@code true}, cascade the styles into multiple attributes per
* element. In this case the namespace and prefix of {@code attributeName}
* are used for the attributes, the local part is ignored.
*/
public XMLTransformer newInstance(Medium medium,
String userAndUserAgentStylesheets,
URIResolver uriResolver,
CssPreProcessor preProcessor,
XsltProcessor xsltProcessor,
QName attributeName,
boolean multipleAttrs);
}