org.millscript.millscript.render
Class XSLTRenderer

java.lang.Object
  extended by org.millscript.millscript.render.AbstractRenderer
      extended by org.millscript.millscript.render.XML10Renderer
          extended by 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.


Field Summary
 
Fields inherited from class org.millscript.millscript.render.AbstractRenderer
availableEntities, config, outputCharset, outputEncoder, outputVFile, outputWriter
 
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.
 
Method Summary
 void renderXMLComment(XmlComment c)
          Renders the specified XML comment using this renderer.
 
Methods inherited from class org.millscript.millscript.render.XML10Renderer
append, appendEscapeFor, appendNoEscape, getUniquePrefix, renderCDATA, renderDocumentFooter, renderDocumentHeader, renderObject, renderXMLElement, renderXMLElementAttributeValue
 
Methods inherited from class org.millscript.millscript.render.AbstractRenderer
append, appendNoEscape, canEncode, render, renderAsDocument, renderAsFragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 from
file - the virtual output file
Method Detail

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.