Link: start Link: parent Link: First page in set (first) Link: Previous page (previous) Link: Next page (next) Link: Last page in set (last) Link: A plain text version of this page (alternate) Link: The XIST source of this page (alternate) Link: The Python module described in this page (alternate) XIST.ns.jsp =========== Namespace module for embedding JSP code as processing instructions ================================================================== Home > Python software > ll.xist > ns > jsp Text · XIST · Python Python softwarelist of projects * ll.xistAn extensible XML/HTML generator * ExamplesParsing/creating/modifying XML; Traversing XML trees * HowtoExplains parsing/generating XML files, XML transformations via XIST classes and other basic concepts. * SearchingHow to iterate through XIST trees * TransformationHow to transform XIST trees * Advanced topicsPool chaining, converter contexts, validation * MiscellaneousExplains various odds and ends of XIST * xscXIST core classes * nsPackage containing namespace modules * htmlHTML namespace * xmlNamespace implementing global XML attributes * wmlWML 1.3 namespace * ihtmlNamespace implementing i-mode compatible HTML * docbookNamespace implementing DocBook 4.3 * svgNamespace implementing SVG 1.0 * abbrNamespace containing abbreviation entities * codeNamespace for embedding Python code in XML * formNamespace implementing form related elements * phpNamespace for PHP processing instructions * jspNamespace for JSP code as processing instructions * metaNamespace containing meta information elements * rubyNamespace implementing the W3C ruby draft * specialsCommon useful elements * htmlspecialsCommon useful elements for HTML generation * docNamespace for automated documentation generation * kidNamespace for Kid templates * detoxNamespace for detox templates * toxicEmbed PL/SQL in XIST XML * rngNamespace for Relax NG * rss091Namespace for RSS 0.91 * rss20Namespace for RSS 2.0 * atomNamespace for Atom 1.0 * struts_htmlNamespace for Jakarta Struts HTML tags * struts_configNamespace for Jakarta Struts configuration file tags * parseParsing XML * presentScreen output of XML trees * simsSimple schema validation * xfindTree iteration and filtering * cssCSS related functions * scriptsScripts for text conversion and creating XIST namespaces * HistoryChangeLog for XIST * InstallationHow to install and configure XIST * MigrationHow to update your code to new versions of XIST * Mailing listsHow to subscribe to the XIST mailing lists * ll.ul4cA templating language * ll.urlRFC 2396 compliant URLs * ll.makeObject oriented make replacement * ll.daemonForking daemon processes * ll.sisyphusWriting cron jobs with Python * ll.colorRGB color values and color model conversion * ll.miscMisc utility functions and classes * ll.orasqlUtilities for cx_Oracle * ll.nightshadeServe the output of Oracle functions/procedures with CherryPy * ll.scriptsScripts for UL4 template rendering and URL handling * AploraLogging Apache HTTP requests to an Oracle database * PycocoPython code coverage * DownloadLinks to Windows and Linux, source and binary distributions * Source codeAccess to the Mercurial repositories 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.Element.Attrs): ======================================== class file(ll.xist.xsc.TextAttr): ---------------------------------- class directive_taglib(directive): =================================== class Attrs(ll.xist.xsc.Element.Attrs): ======================================== class uri(ll.xist.xsc.TextAttr): --------------------------------- class prefix(ll.xist.xsc.TextAttr): ------------------------------------ class directive_page(directive): ================================= class Attrs(ll.xist.xsc.Element.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.