|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.larsan.urd.ant.website.DocBody
|
+--net.larsan.urd.ant.website.XMLBody
An XML doc body applies an XSLT stylesheet before being applied anywhere. This gives that the body must have a root for it's context in order find stylesheets. The body will look for the attribute 'transformer' in the root element to find the XSL file. The location of this file can be relative either to the root of the context or to the XML file. Paths relative to the root starts with a "/" and relative to the XML file directory starts without.
DocBody| Field Summary |
| Fields inherited from class net.larsan.urd.ant.website.DocBody |
DEFAULT_LABEL, document, label |
| Constructor Summary | |
XMLBody(java.io.File root,
java.io.File document)
|
|
| Method Summary | |
protected java.lang.String |
readDocument()
1) find the attribute 'transformer' on the root element, 2) if found apply transformation of on file, 3) return |
| Methods inherited from class net.larsan.urd.ant.website.DocBody |
getBody, setLabel, substitute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLBody(java.io.File root,
java.io.File document)
root - Context root directorydocument - XML file document| Method Detail |
protected java.lang.String readDocument()
throws CompilerException
readDocument in class DocBodyCompilerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||