All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.openly.dt.XSLTransform

com.openly.dt.EncodingDynamicTag   |   +----com.openly.dt.ParsingDynamicTag           |           +----com.openly.dt.XSLTransform

public class XSLTransform
extends com.openly.dt.ParsingDynamicTag
XSLTransform uses an XSL Stylesheet to transform XML text addressed by the argument URI invoke from a stylesheet like this [[@com.openly.dt.XSLTransform(fileToTransform.xml,stylesheet.xsl)]] Check out Java and Linking related books at Openly.com!


Constructor Index

 o XSLTransform()

Method Index

 o getValue(String, Params)
 o main(String[])
 o setDefaultStyleSheet(String)
We need a default style sheet so that we can call this as a dynamic tag with one parameter
 o setSourceParserSource(ParserSource)
this method allows the XSL transformer to get customized parsers
 o setStyleSheet(String)
set the stylesheet, with full URL
 o setStyleSheetName(String)
set the stylesheet, with just fle name
 o setStyleSheetStem(String)
Just for convenience- once you set the style sheet stem, any style sheet gets this prepended; used for setting stystem specific paths You can only call this once, on initialization.
 o writeValue(String, Params, OutputStream)
implements Dynamic tag

the style sheet is picked from

  1. the secand parameter of the dynamic tag, if it exists
  2. the "style" param in params
  3. the last style sheet used by the instance
  4. the default style sheet, if it exists

Constructors

 o XSLTransform
 public XSLTransform()

Methods

 o getValue
 public java.lang.String getValue(java.lang.String param,                                  com.openly.util.Params params)
Overrides:
getValue in class com.openly.dt.EncodingDynamicTag
 o setStyleSheetStem
 public static void setStyleSheetStem(java.lang.String styleStem)
Just for convenience- once you set the style sheet stem, any style sheet gets this prepended; used for setting stystem specific paths You can only call this once, on initialization. the idea is to put all style sheets for a system in one place

 o setDefaultStyleSheet
 public static void setDefaultStyleSheet(java.lang.String styleSheet)
We need a default style sheet so that we can call this as a dynamic tag with one parameter

 o setStyleSheetName
 public void setStyleSheetName(java.lang.String stylefile)
set the stylesheet, with just fle name

 o setStyleSheet
 public void setStyleSheet(java.lang.String styleURI)
set the stylesheet, with full URL

 o setSourceParserSource
 public void setSourceParserSource(com.openly.util.ParserSource ps)
this method allows the XSL transformer to get customized parsers

 o writeValue
 public void writeValue(java.lang.String cParam,                        com.openly.util.Params params,                        java.io.OutputStream writer) throws java.io.IOException
implements Dynamic tag

the style sheet is picked from

  1. the secand parameter of the dynamic tag, if it exists
  2. the "style" param in params
  3. the last style sheet used by the instance
  4. the default style sheet, if it exists

Parameters:
param - the xml file to transform
Overrides:
writeValue in class com.openly.dt.EncodingDynamicTag
 o main
 public static void main(java.lang.String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index