Ticket #5766 (closed enhancement: fixed)
[patch][ccla] Proposed extension: XML parser for rendering dojo
| Reported by: | Rob Gagne | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dojox | Version: | 1.0 |
| Severity: | normal | Keywords: | xml parser |
| Cc: | RGagne@…, jmargaris@… |
Description
The attached patch reads XML and instantiates dojo components. Element names refer to the dojo component to be created, attributes refer to properties or event handlers.
XML can be included directly within <script/> tags or externally referenced via the script tags src attribute.
Some examples:
<ui xmlns:dijit="dijit"> <dijit:form.Button label="Hello, World!"/> </ui>
Using the namespace more:
<ui xmlns:dijit="dijit.form"> <dijit:Button label="Hello, World!"/> </ui>
HTML can be included within the XML by specifing html as the namespace uri.
<ui xmlns:dijit="dijit" xmlns="html"> <p>HTML before</p> <dijit:form.Button label="Hello, World!"/> </ui>
The patch includes the code, some examples and the mail demo built through xml.
(Thank you to Alex for help and guidance with this)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.