cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <j.heini...@ewerk.com>
Subject Re: [Flow] Importing multiple scripts? (ScriptDirectoryNode)
Date Tue, 24 Feb 2004 12:22:56 GMT
Andreas Hartmann <andreas <at> apache.org> writes:

> >>OK. So I have to write scripts included in XML, aggregate
> >>them using the DirectoryGenerator, strip the XML tags and 
> >>serialize as text?
> > 
> > 
> > embedding Javascript in XML is IMHO ugly but it would work this way.
> > Does the directory generator read a all files including their content or
> > do you use the cinclude transformer? If so and it doesn't accept non-xml
> > content it should be patched.
> 
> I would use CInclude. I'll try if it includes text files
> and complain if it doesn't work :)

I'm nearly sure it won't work. The DirectoryGenerator itself does not include
any file, the XPathDirectoryGenerator expects XML files:

source = resolver.resolveURI(xmlFile.toURL().toExternalForm());
this.doc = this.parser.parseDocument(SourceUtil.getInputSource(source));

Joerg


Mime
View raw message