[Project_owners] XUL includes?

Axel Hecht axel at pike.org
Fri Aug 5 11:56:03 EDT 2005

Eric Jung wrote:
> Hi,
> Is there any way to include one XUL file into another (like PHP
> includes)?
> The only way I know is to use Javascript to parse all the XUL files
> into a single DOM, then serialize the DOM to a new file. I'd like to
> avoid this if there's an include directive or macro...

You could use entities in a DTD file, you could even use one in content.
As long as your stuff to be included is a valid xml fragment, that's no 
problem. If you want start and end blocks, that won't work, though.

You could use preprocessor.pl, too, that supports #include FILENAME


More information about the Project_owners mailing list