jsp – JSP processing instructions

A module that allows you to embed JSP content as processing instructions.

class ll.xist.ns.jsp.directive(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

class ll.xist.ns.jsp.scriptlet(*content)[source]

Bases: ll.xist.xsc.ProcInst

Will be published as <% content %>.

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

class ll.xist.ns.jsp.expression(*content)[source]

Bases: ll.xist.xsc.ProcInst

Will be published as <%= content %>.

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

class ll.xist.ns.jsp.declaration(*content)[source]

Bases: ll.xist.xsc.ProcInst

Will be published as <%! content %>.

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

class ll.xist.ns.jsp.If(*content)[source]

Bases: ll.xist.ns.jsp.scriptlet

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.jsp.Else(*content)[source]

Bases: ll.xist.ns.jsp.scriptlet

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.jsp.ElIf(*content)[source]

Bases: ll.xist.ns.jsp.scriptlet

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.jsp.End(*content)[source]

Bases: ll.xist.ns.jsp.scriptlet

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.jsp.block(*content, **attrs)[source]

Bases: 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.

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.jsp.directive_include(*content, **attrs)[source]

Bases: ll.xist.ns.jsp.directive

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class file(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.jsp.directive_taglib(*content, **attrs)[source]

Bases: ll.xist.ns.jsp.directive

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class uri(*content)[source]

Bases: ll.xist.xsc.TextAttr

class prefix(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.jsp.directive_page(*content, **attrs)[source]

Bases: ll.xist.ns.jsp.directive

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class language(*content)[source]

Bases: ll.xist.xsc.TextAttr

class extends(*content)[source]

Bases: ll.xist.xsc.TextAttr

class import_(*content)[source]

Bases: ll.xist.xsc.TextAttr

class session(*content)[source]

Bases: ll.xist.xsc.TextAttr

class buffer(*content)[source]

Bases: ll.xist.xsc.TextAttr

class autoFlush(*content)[source]

Bases: ll.xist.xsc.TextAttr

class isThreadSafe(*content)[source]

Bases: ll.xist.xsc.TextAttr

class info(*content)[source]

Bases: ll.xist.xsc.TextAttr

class errorPage(*content)[source]

Bases: ll.xist.xsc.URLAttr

class contentType(*content)[source]

Bases: ll.xist.xsc.TextAttr

class isErrorPage(*content)[source]

Bases: ll.xist.xsc.TextAttr

class pageEncoding(*content)[source]

Bases: ll.xist.xsc.TextAttr

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

ll.xist.ns.jsp.fromul4(template, variables='variables', indent=0)[source]

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.