[Project_owners] RDF templating question

Axel Hecht axel at pike.org
Fri Apr 16 23:21:29 EDT 2004

project_owners-request at mozdev.org wrote:

> Subject:
> [Project_owners] RDF templating question
> From:
> "Nathan R. Yergler" <nathan at yergler.net>
> Date:
> Thu, 15 Apr 2004 11:12:36 -0500
> To:
> Mozdev Project Owners List <project_owners at mozdev.org>
> To:
> Mozdev Project Owners List <project_owners at mozdev.org>
> Does anyone have a good example of creating an in-memory RDF datasource 
> and then applying it to a template on the fly?  My extension extracts 
> embedded RDF from HTML documents, parses it and displays relevant bits.  
> I have the extraction and parsing working, but right now I build up the 
> DOM to display the bits from scratch.  From everything I've read, it 
> seems like I should be able to use templates, but haven't been able to 
> get them to work with non-included datasources (ie, rdf:history, etc).  
> Has anyone else done something similar?  Thanks.
> Nathan

That should work straight away. Well, almost.

You need to set the datasources attribute to rdf:null, so that the 
template stuff gets triggered. Then just add your inmem ds to the 
datasources nsIRDFCompositeDataSource.


More information about the Project_owners mailing list