Articles tagged: XUL_Template_Guide
Found 31 documents
- Mozilla/Tech/XUL/Template_Guide Basics of XUL Templates
- Mozilla/Tech/XUL/Template_Guide/Actions The content to generate in a template is specified using the action element which should either ...
- Mozilla/Tech/XUL/Template_Guide/Additional_Navigation The triples used so far have all had variables in both the subject and object. However, a string ...
- Mozilla/Tech/XUL/Template_Guide/Additional_Template_Attributes All the templates used so far have had the template placed inside the root element with the ...
- Mozilla/Tech/XUL/Template_Guide/Attribute_Substitution The effect will be that the ?name part of the attribute will be replaced by the value of the ...
- Mozilla/Tech/XUL/Template_Guide/Bindings We can add more triples to the previous example to show more information. For example, a ...
- Mozilla/Tech/XUL/Template_Guide/Building_Hierarchical_Trees To be able to do this, the tree builder must know that an item is a container. With an RDF ...
- Mozilla/Tech/XUL/Template_Guide/Building_Menus_With_Templates Menus may be generated using a template in the same manner as other elements. However, unlike ...
- Mozilla/Tech/XUL/Template_Guide/Building_Trees The most common element to use with a template is the tree.
- Mozilla/Tech/XUL/Template_Guide/Filtering Sometimes you may wish to change the query at a later time. For example, you wish the user to be ...
- Mozilla/Tech/XUL/Template_Guide/Introduction Each template retrieves its data from a datasource. Several types of datasources are supported ...
- Mozilla/Tech/XUL/Template_Guide/Multiple_Queries So far, every template has contained only a single query, even for recursive content. However, ...
- Mozilla/Tech/XUL/Template_Guide/Multiple_Rules Note that only the first rule, in the order that the rules appear in the template, that matches ...
- Mozilla/Tech/XUL/Template_Guide/Multiple_Rule_Example The next example shows how we can do this.
- Mozilla/Tech/XUL/Template_Guide/RDF_Modifications One of the most useful aspects of using templates with RDF datasources is that when the RDF ...
- Mozilla/Tech/XUL/Template_Guide/RDF_Query_Syntax Let's look at a simple query with two statements. Each statement is placed as a direct child of ...
- Mozilla/Tech/XUL/Template_Guide/Recursive_Generation After generating content, the template builder always repeats the generation for inner levels as ...
- Mozilla/Tech/XUL/Template_Guide/Result_Generation In this section, we'll look at generating template output using RDF datasources. First, however, ...
- Mozilla/Tech/XUL/Template_Guide/Rule_Compilation A XUL template is made up of a query and a series of rules. A query contains instructions for ...
- Mozilla/Tech/XUL/Template_Guide/Simple_Example In this example, we have three images, which can be identified by urls. The resource uris ...
- Mozilla/Tech/XUL/Template_Guide/Simple_Query_Syntax When iterating over the children of an RDF container, there is a simpler query syntax which may ...
- Mozilla/Tech/XUL/Template_Guide/Sorting_Results When results are generated from a query, content is generated in the same order as the results. ...
- Mozilla/Tech/XUL/Template_Guide/Special_Condition_Tests There are several additional types of conditional tests that may be performed.
- Mozilla/Tech/XUL/Template_Guide/SQLite_Templates Templates may use a datasource that is retrieved from an Sqlite database, such as those used by ...
- Mozilla/Tech/XUL/Template_Guide/Static_Content Creating a menuitem in the filter list to show all items is fairly easy. This item doesn't need ...
- Mozilla/Tech/XUL/Template_Guide/Template_and_Tree_Listeners There are several listeners (or observers) used during the template build process, each used for ...
- Mozilla/Tech/XUL/Template_Guide/Template_Builder_Interface When inserting an element into a XUL document, the element is checked to see if it has a ...
- Mozilla/Tech/XUL/Template_Guide/Using_Multiple_Queries_to_Generate_More_Results One interesting technique is to use several queries to combine two sets of unrelated data ...
- Mozilla/Tech/XUL/Template_Guide/Using_Recursive_Templates You may recall that templates generate content recursively. After the data is generated, each ...
- Mozilla/Tech/XUL/Template_Guide/XML_Assignments Sometimes, you will want to use a more complex substitution apart from just taking an attribute ...
- Mozilla/Tech/XUL/Template_Guide/XML_Templates Mozilla also supports the use of XML datasources. An XML document will be loaded and XPath ...