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.rng =========== Namespace module for Relax NG ============================= Home > Python software > ll.xist > ns > rng 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 This module is an XIST namespace for Relax NG files. class base(ll.xist.xsc.Element): ================================= "Abstract" basis class, providing common attributes. class Attrs(ll.xist.xsc.Element.Attrs): ======================================== class ns(ll.xist.xsc.TextAttr): -------------------------------- class datatypeLibrary(ll.xist.xsc.URLAttr): -------------------------------------------- class anyName(base): ===================== Matches any name from any namespace. class attribute(base): ======================= Specifies an XML attribute. class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class choice(base): ==================== nameclass: a name matches choice if, and only if, it matches at least one of the subname classes. pattern: it matches a node if, and only if, at least one of its subpatterns matches the node class data(base): ================== Specifies data of a certain kind. class Attrs(base.Attrs): ========================= class type(ll.xist.xsc.TextAttr): ---------------------------------- class define(base): ==================== Defines a part of a grammar pattern (also a pattern), recursion possible only inside an element. class Attrs(base.Attrs): ========================= class combine(ll.xist.xsc.TextAttr): ------------------------------------- class name(ll.xist.xsc.TextAttr): ---------------------------------- class div(base): ================= Allows logical divisions, no effect on validation, annotations can be made here class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class element_(base): ====================== Specifies an XML element. class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class empty(base): =================== Specifies empty content. class except_(base): ===================== An except_ element can remove a name class from another (this class has no attributes) (inside a name element) or it is used to remove a set of values from a data pattern. class externalRef(base): ========================= Reference to an extern pattern stored in a file. class Attrs(base.Attrs): ========================= class href(ll.xist.xsc.URLAttr): --------------------------------- class grammar(base): ===================== A grammar element has a single start child element, and zero or more define child elements. The start and define elements contain patterns. These patterns can contain ref elements that refer to patterns defined by any of the define elements in that grammar element. A grammar pattern is matched by matching the pattern contained in the start element. class group(base): =================== Is implied, can be also explicitly specified: the patterns have to appear in the specified order (except for the attributes, they are allowed to appear in any order in the start tag) class include(base): ===================== Includes an extern grammar pattern. Can contain define parts to overwrite that part (same name) in the extern pattern. A possible start element inside include overwrites the start element of the extern pattern. class Attrs(base.Attrs): ========================= class href(ll.xist.xsc.URLAttr): --------------------------------- class interleave(base): ======================== Child elements can appear in any order, if one is a group, the order must be kept, other direct childs can mix between. class list(base): ================== Matches whitespace seperated values. class mixed(base): =================== p is short for p class name(base): ================== Defines a class with a single name. class notAllowed(base): ======================== Used to make extension points in patterns. class nsName(base): ==================== Allows any name in a specific namespace. class Attrs(base.Attrs): ========================= class ns(ll.xist.xsc.URLAttr): ------------------------------- class oneOrMore(base): ======================= There can be one or more recurrence of the enclosed pattern. class optional(base): ====================== The enclosed tags can be left out. class param(base): =================== Specifies parameters passed to the datatype library to determine whether a value is valid per a datatype. class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class parentRef(base): ======================= Escapes out of the current grammar and references a definition from the parent of the current grammar. class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class ref(base): ================= A ref pattern refers to a definition from the nearest grammar ancestor. class Attrs(base.Attrs): ========================= class name(ll.xist.xsc.TextAttr): ---------------------------------- class start(base): =================== Required start tag inside a grammar tag. class Attrs(base.Attrs): ========================= class combine(ll.xist.xsc.TextAttr): ------------------------------------- class text(base): ================== Matches arbitrary text (one or more text nodes), including empty text. class value(base): =================== By default, the value pattern will consider the string in the pattern to match the string in the document if the two strings are the same after the whitespace in both strings is normalized. Whitespace normalization strips leading and trailing whitespace characters, and collapses sequences of one or more whitespace characters to a single space character. This corresponds to the behaviour of an XML parser for an attribute that is declared as other than CDATA. class Attrs(base.Attrs): ========================= class type(ll.xist.xsc.TextAttr): ---------------------------------- class zeroOrMore(base): ======================== There can be zero or more recurrence of the enclosed pattern.