net.larsan.urd.ant.website
Class XMLBody

java.lang.Object
  |
  +--net.larsan.urd.ant.website.DocBody
        |
        +--net.larsan.urd.ant.website.XMLBody
All Implemented Interfaces:
Substitution

public class XMLBody
extends DocBody

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.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
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

XMLBody

public XMLBody(java.io.File root,
               java.io.File document)
Parameters:
root - Context root directory
document - XML file document
Method Detail

readDocument

protected java.lang.String readDocument()
                                 throws CompilerException
1) find the attribute 'transformer' on the root element, 2) if found apply transformation of on file, 3) return

Overrides:
readDocument in class DocBody
CompilerException