Open Bug 422899 Opened 18 years ago Updated 4 years ago

Support multiple XML files as datasources for templates

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: mark.crutch+bugzilla, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4 The "datasources" attribute can take multiple space-separated entries for RDF datasources, but is limited to one entry when the source is an XML file. It would be useful in some cases to allow multiple XML datasources to be used in a single template. For RDF datasources, all of the content is merged and the template operates over the composite datasource. This is not likely to be practical for arbitrary XML files. For XML datasources applying the template rules to each datasource in turn and rendering all of the results is likely to be sufficient. Reproducible: Always Steps to Reproduce: 1. Load attached test file, which has two inline XML fragments Actual Results: Only the content of the first fragment is displayed (5 results) Expected Results: The content of both fragments should be displayed (10 results) Use Case: John has a large XML file on a remote server which is being displayed using a template (e.g. in a tree) in a XUL application. The application provides an interface for John to add new rows (making an XMLHTTPRequest call in the background to update the server with the new data). Presently there are two means to add the extra rows to the tree: 1) Direct manipulation of the DOM. This will work, but because the new rows aren't part of the template they are not affected by any template rules used for filtering the list 2) Reload the updated XML file from the server. This has performance implications for a large file or a high-latency link. It would be preferable to be able to add the new rows to a local XML fragment and update the "datasources" attribute to reference both the remote file and the local fragment. That way the new rows are still subject to the filtering rules of the template, but without the need to reload the XML file.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: