A module that allows you to embed JSP content as processing instructions.
class directive
(ll.xist.xsc.Element
):
def publish
(self
, publisher
):
class scriptlet
(ll.xist.xsc.ProcInst
):
Will be published as <% content %>
.
def publish
(self
, publisher
):
class expression
(ll.xist.xsc.ProcInst
):
Will be published as <%= content %>
.
def publish
(self
, publisher
):
class declaration
(ll.xist.xsc.ProcInst
):
Will be published as <%! content %>
.
def publish
(self
, publisher
):
class If
(scriptlet
):
def convert
(self
, converter
):
class Else
(scriptlet
):
def convert
(self
, converter
):
class ElIf
(scriptlet
):
def convert
(self
, converter
):
class End
(scriptlet
):
def convert
(self
, converter
):
class block
(ll.xist.xsc.Element
):
This element embeds its content in {}
brackets. Note that the content
itself will not be turned into a scriptlet automatically but will be used
as-is.
def convert
(self
, converter
):
class directive_include
(directive
):
class Attrs
(ll.xist.xsc.Attrs
):
class file
(ll.xist.xsc.TextAttr
):
class directive_taglib
(directive
):
class Attrs
(ll.xist.xsc.Attrs
):
class uri
(ll.xist.xsc.TextAttr
):
class prefix
(ll.xist.xsc.TextAttr
):
class directive_page
(directive
):
class Attrs
(ll.xist.xsc.Attrs
):
class language
(ll.xist.xsc.TextAttr
):
class extends
(ll.xist.xsc.TextAttr
):
class import_
(ll.xist.xsc.TextAttr
):
class session
(ll.xist.xsc.TextAttr
):
class buffer
(ll.xist.xsc.TextAttr
):
class autoFlush
(ll.xist.xsc.TextAttr
):
class isThreadSafe
(ll.xist.xsc.TextAttr
):
class info
(ll.xist.xsc.TextAttr
):
class errorPage
(ll.xist.xsc.URLAttr
):
class contentType
(ll.xist.xsc.TextAttr
):
class isErrorPage
(ll.xist.xsc.TextAttr
):
class pageEncoding
(ll.xist.xsc.TextAttr
):
def publish
(self
, publisher
):
def fromul4
(template
, variables
='variables'
, indent
=0
):
Return the UL4 template template
as JSP source code. variables
is the variable name of the map object containing the top level variables.
indent
is the initial indentation of the source code.
The code produced requires the UL4 Java package.