Class XeStylesheet

    • Constructor Detail

      • XeStylesheet

        public XeStylesheet​(CharSequence xsl)
        Ctor.

        The only argument here is a location of XSL stylesheet, in resources and, at the same time, in HTTP. For example, you can put "/xsl/main.xsl" there. In the XML output this will generate an "xml-stylesheet" annotation, which will point the browser to "http://yoursite/xsl/main.xsl". Obviously, this page must be available. On the other hand, if you're using RsXSLT, this file must be available in resources as "/xsl/main.xsl".

        It is recommended to put XSL files under "src/main/resources/xsl".

        Parameters:
        xsl - XSL stylesheet