|
|||||||||
| 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.
| Field Summary | |
protected java.lang.String |
errorPage
|
protected java.util.Properties |
output
|
| 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.util.Properties |
getOutputProperties()
Returns the output properties for the stylesheet. |
Path |
getPath()
|
java.lang.Object |
getProperty(java.lang.String name)
Returns a stylesheet property. |
void |
init(Path path)
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. |
Transformer |
newTransformer()
Creates a new 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.util.Properties output
protected java.lang.String errorPage
| Constructor Detail |
public AbstractStylesheet()
| Method Detail |
public void init(Path path)
throws java.lang.Exception
path - the path of the stylepath 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.Objectpublic java.util.Properties getOutputProperties()
getOutputProperties in interface Templatesjavax.xml.transform.Templatespublic Path getPath()
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 Transformer newTransformer()
newTransformer in interface Templatespublic StringTransformer newStringTransformer()
newStringTransformer in interface Stylesheetpublic StreamTransformer newStreamTransformer()
newStreamTransformer in interface Stylesheetpublic NodeTransformer newNodeTransformer()
newNodeTransformer in interface Stylesheetpublic SAXTransformer newSAXTransformer()
newSAXTransformer in interface Stylesheetpublic boolean isModified()
isModified in interface CauchoStylesheetprotected 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 | ||||||||