Package com.jcabi.xml

Class XSLChain

  • All Implemented Interfaces:
    XSL

    public final class XSLChain
    extends Object
    implements XSL
    Chain of XSL stylesheets.
    Since:
    0.12
    • Constructor Detail

      • XSLChain

        public XSLChain​(XSL... shts)
        Public ctor.
        Parameters:
        shts - Sheets
        Since:
        0.22
      • XSLChain

        public XSLChain​(Collection<XSL> shts)
        Public ctor.
        Parameters:
        shts - Sheets
    • Method Detail

      • transform

        public XML transform​(XML xml)
        Description copied from interface: XSL
        Transform XML to another one.
        Specified by:
        transform in interface XSL
        Parameters:
        xml - Source XML document
        Returns:
        Result document
      • applyTo

        public String applyTo​(XML xml)
        Description copied from interface: XSL
        Transform XML into text.
        Specified by:
        applyTo in interface XSL
        Parameters:
        xml - Source XML document
        Returns:
        Result text
      • with

        public XSL with​(Sources src)
        Description copied from interface: XSL
        With this sources.
        Specified by:
        with in interface XSL
        Parameters:
        src - Sources
        Returns:
        New XSL document
      • with

        public XSL with​(String name,
                        Object value)
        Description copied from interface: XSL
        With this parameter.
        Specified by:
        with in interface XSL
        Parameters:
        name - Name of XSL parameter
        value - Value of XSL parameter
        Returns:
        New XSL document