Class XalanXslTransformer

    • Constructor Detail

      • XalanXslTransformer

        public XalanXslTransformer()
    • Method Detail

      • transform

        public Result transform​(Reader stylesheet,
                                Reader xml,
                                Result output)
        Description copied from interface: XslTransformer

        Transform the supplied XML stream using the supplied stylesheet. If the transform fails then null will be returned.

        You control the format of the output you desire by supplying the Result implementation to be used. This supplied Result will be populated during the transform and returned.

        Specified by:
        transform in interface XslTransformer
        Parameters:
        stylesheet - the transform to apply
        xml - the xml to be transformed
        output - the Result to be populated by the transform
        Returns:
        the populated output parameter or null if there was an error.
      • createXsltSource

        protected Source createXsltSource​(Reader xslt)
      • createInputSource

        protected Source createInputSource​(Reader xml)