Class Xsline


  • public final class Xsline
    extends Object
    Pipeline of XSL transformations.
    Since:
    0.1
    • Constructor Detail

      • Xsline

        public Xsline​(com.jcabi.xml.XML dom,
                      org.cactoos.Output tgt,
                      Spy aspy)
        Ctor.
        Parameters:
        dom - XML to optimize
        tgt - Target
        aspy - The spy
      • Xsline

        public Xsline​(com.jcabi.xml.XML dom,
                      org.cactoos.Output tgt,
                      Spy aspy,
                      Iterable<String> sheets)
        Ctor.
        Parameters:
        dom - XML to optimize
        tgt - Target
        aspy - The spy
        sheets - List of XSL sheet names
    • Method Detail

      • with

        public Xsline with​(Iterable<String> sheets)
        Add these sheets to the list.
        Parameters:
        sheets - Names of them
        Returns:
        New object
      • with

        public Xsline with​(com.jcabi.xml.XSL sheet)
        Add this sheet to the list.
        Parameters:
        sheet - The sheet
        Returns:
        New object
        Since:
        0.1.27
      • with

        public Xsline with​(com.jcabi.xml.XSL sheet,
                           org.cactoos.BiFunc<com.jcabi.xml.XML,​com.jcabi.xml.XML,​Boolean> func)
        Add this sheet to the list.
        Parameters:
        sheet - The sheet
        func - The func that returns TRUE if the XSL has to be applied again
        Returns:
        New object
        Since:
        0.1.28
      • pass

        public void pass()
                  throws IOException
        Compile it to XML and save to output.
        Throws:
        IOException - If fails