|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.xsl.AbstractStylesheet
A compiled XSL stylesheet. Stylesheets use 'transform' to transform an XML tree to an XML Document.
The resulting document can be printed, or it can be added to another XML tree.
Inner Class Summary | |
static class |
AbstractStylesheet.Depend
Class holding a dependency. |
Field Summary | |
protected java.lang.String |
errorPage
|
Fields inherited from interface com.caucho.xsl.CauchoStylesheet |
CACHE_DEPENDS, DEPENDS, GLOBAL_PARAM |
Constructor Summary | |
AbstractStylesheet()
|
Method Summary | |
protected void |
addCacheDepend(java.lang.String path)
Adds a cache dependency. |
protected void |
addDepend(Path path)
Add a dependency to the stylesheet. |
protected void |
addDepend(Path path,
long lastModified,
long length)
Add a dependency to the stylesheet. |
java.lang.Object |
clone()
Clone the stylesheet. |
protected void |
copy(AbstractStylesheet stylesheet)
Copies the current stylesheet into the new stylesheet. |
java.util.ArrayList |
getCacheDepends()
|
java.util.ArrayList |
getDepends()
Returns the dependency list of the stylesheet. |
java.lang.Object |
getProperty(java.lang.String name)
Returns a stylesheet property. |
void |
init(Path stylePath)
Initialize the stylesheet with the search path. |
boolean |
isModified()
Returns true if the any of the source stylesheets have been modified since this stylesheet was compiled. |
NodeTransformer |
newNodeTransformer()
Creates a new node transformer. |
SAXTransformer |
newSAXTransformer()
Creates a new SAX transformer. |
StreamTransformer |
newStreamTransformer()
Creates a new stream transformer. |
StringTransformer |
newStringTransformer()
Creates a new string transformer. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a stylesheet property. |
abstract void |
transform(Node xml,
XMLWriter out,
TransformerImpl transformer)
Transforms the XML node to a new XML document based on this stylesheet. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.caucho.transform.Stylesheet |
getOutputFormat |
Field Detail |
protected java.lang.String errorPage
Constructor Detail |
public AbstractStylesheet()
Method Detail |
public void init(Path stylePath) throws java.lang.Exception
stylePath
- path used to search for stylesheets.protected void copy(AbstractStylesheet stylesheet)
stylesheet
- the new stylesheet which will contain the copied values.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface Stylesheet
public void setProperty(java.lang.String name, java.lang.Object value)
public StringTransformer newStringTransformer()
newStringTransformer
in interface Stylesheet
public StreamTransformer newStreamTransformer()
newStreamTransformer
in interface Stylesheet
public NodeTransformer newNodeTransformer()
newNodeTransformer
in interface Stylesheet
public SAXTransformer newSAXTransformer()
newSAXTransformer
in interface Stylesheet
public boolean isModified()
isModified
in interface CauchoStylesheet
protected void addDepend(Path path)
path
- the path of the source stylesheet.protected void addDepend(Path path, long lastModified, long length)
path
- the path of the source stylesheet.lastModified
- the last-modified time of the source when this
stylesheet was compiled.length
- the length of the source when this stylesheet was compiled.public java.util.ArrayList getDepends()
protected void addCacheDepend(java.lang.String path)
public java.util.ArrayList getCacheDepends()
public abstract void transform(Node xml, XMLWriter out, TransformerImpl transformer) throws java.lang.Exception
Since Documents are DocumentFragments, calling functions can insert the contents using appendChild.
xml
- source xml to convertout
- source xml to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |