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
