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)]] - 2000-9-12 switched to xerces parser for internationalization reasons- eric
- 2000-10-5 added setSheetParserSource and setSourceParserSource to facilitate customized parsers (with SAX filtering, etc.)
- 2000-10-5 eliminated xslsettings.txt- it was too cumbersome
- 2000-10-11 completely revamped this class to use XALAN. now runs wicked fast, and treats encodings properly
- 2000-10-16 passes params to sourceparser if sourceParser is instance of DynamicObject
- 2000-11-11 added SAXException error message passthrough
- 2001-10-22 changed protection of styleSheetURI to protected so that RootedXSLT can extend -esh
- 2001-10-25 this class can now take the sylesheet as its second argument, and will accept tempalates in the fileToTransform param. We ought to be able to do away with some convenience classes.
Check out Java and Linking related books at Openly.com!

-
XSLTransform() -

-
getValue(String, Params) -
-
main(String[]) -
-
setDefaultStyleSheet(String) - We need a default style sheet so that we can call this as a dynamic tag with one parameter
-
setSourceParserSource(ParserSource) - this method allows the XSL transformer to get customized parsers
-
setStyleSheet(String) - set the stylesheet, with full URL
-
setStyleSheetName(String) - set the stylesheet, with just fle name
-
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.
-
writeValue(String, Params, OutputStream) - implements Dynamic tag
the style sheet is picked from
- the secand parameter of the dynamic tag, if it exists
- the "style" param in params
- the last style sheet used by the instance
- the default style sheet, if it exists

XSLTransform public XSLTransform()

getValue public java.lang.String getValue(java.lang.String param, com.openly.util.Params params)
- Overrides:
- getValue in class com.openly.dt.EncodingDynamicTag
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
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
setStyleSheetName public void setStyleSheetName(java.lang.String stylefile)
- set the stylesheet, with just fle name
setStyleSheet public void setStyleSheet(java.lang.String styleURI)
- set the stylesheet, with full URL
setSourceParserSource public void setSourceParserSource(com.openly.util.ParserSource ps)
- this method allows the XSL transformer to get customized parsers
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
- the secand parameter of the dynamic tag, if it exists
- the "style" param in params
- the last style sheet used by the instance
- the default style sheet, if it exists
- Parameters:
- param - the xml file to transform
- Overrides:
- writeValue in class com.openly.dt.EncodingDynamicTag
main public static void main(java.lang.String args[])
All Packages Class Hierarchy This Package Previous Next Index