org.millscript.millscript.render
Class XSLTRenderer
java.lang.Object
org.millscript.millscript.render.AbstractRenderer
org.millscript.millscript.render.XML10Renderer
org.millscript.millscript.render.XSLTRenderer
- All Implemented Interfaces:
- Renderer
public final class XSLTRenderer
- extends XML10Renderer
This class implements MillScripts XSLT renderer. It renders to the XSLT 1.0
specification, but may not always render valid XSLT 1.0.
The main issue with writing valid XSLT documents is exactly the same as with
XML documents, so please read the documentation for the XML10Renderer class.
The difference between an XML renderer and an XSLT renderer is that XML
comments are rendered differently. For XSLT, an XML comment is rendered as
and XSLT <xsl:comment> tag. The means that an XML comment rendered
as XSLT via MillScript will be preserved through the XSLT transformation.
|
Constructor Summary |
XSLTRenderer(Configuration conf,
org.millscript.commons.vfs.VFile file)
Constructs a new XSLT renderer, to render to the specified virtual file
using the given confguration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSLTRenderer
public XSLTRenderer(Configuration conf,
org.millscript.commons.vfs.VFile file)
- Constructs a new XSLT renderer, to render to the specified virtual file
using the given confguration.
- Parameters:
conf - the configuration to get rendering parameters fromfile - the virtual output file
renderXMLComment
public void renderXMLComment(XmlComment c)
throws java.io.IOException
- Description copied from interface:
Renderer
- Renders the specified XML comment using this renderer.
- Specified by:
renderXMLComment in interface Renderer- Overrides:
renderXMLComment in class AbstractRenderer
- Parameters:
c - the XML comment to render
- Throws:
java.io.IOException - thrown if an IO problem occurs- See Also:
Renderer.renderXMLComment(org.millscript.millscript.datatypes.XmlComment)
Copyright © 2001-2007 Open World Ltd. All Rights Reserved.