Package org.takes.rs.xe
Class XeStylesheet
- java.lang.Object
-
- org.takes.rs.xe.XeWrap
-
- org.takes.rs.xe.XeStylesheet
-
- All Implemented Interfaces:
XeSource
public final class XeStylesheet extends XeWrap
Xembly source to create an XSL stylesheet processing instruction.The class is immutable and thread-safe.
- Since:
- 0.1
- See Also:
- XML+XSLT in a Browser, RESTful API and a Web Site in the Same URL
-
-
Constructor Summary
Constructors Constructor Description XeStylesheet(CharSequence xsl)
Ctor.
-
-
-
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
-
-