Conal,

At 02:16 AM 4/10/2005, you wrote:
Hi Wendell. I think you should look at the XPathDirectoryGenerator. This is
a sub-class of the DirectoryGenerator which allows you to evaluate an XPath
expression inside each document, perhaps something like
"concat(/svg:svg/@width, ', ', /svg:svg/@height)"

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/XPathDirec
toryGenerator.html

Thanks, this looks great, I'll have to try it out. It should do what's needful.

Otherwise, there's also a more long-winded but more flexible way, where you
transform the result of the DirectoryGenerator to produce xi:include
elements pointing at a pipeline which extracts image metrics from a file,
and use the xinclude transformer to perform the inclusions, thereby calling
that extraction pipeline once for each file.

Yes, this is along the lines of what I was thinking about....

Thanks again, much to chew on.

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:[EMAIL PROTECTED]
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to