Re: [xsl] String hashing code

Subject: Re: [xsl] String hashing code
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Sat, 15 Dec 2007 05:00:25 -0500
On Sat, 2007-12-15 at 11:31 +1100, Deborah Pickett wrote:
> Some solutions (Rob's idea of appending the ID to the filename)
> unfortunately won't work because of limitations with other, third-party,
> stages of the pipeline. (In this case, the Batik SVG rasterizer code
> dumps all of the rasterized files into the same output directory,
> flattening any directory structure and risking collision again.)

Just make the path from some root dir the filename (replacing the
slashes with whatever) and then append generate-id() or position()
(possibly combined with depth and prev-sibl count). You could create the
file with a unique extension (*.mathml ?) for easy fileset selection in
ant. Also your main output can create a list of all the files.

best,
-Rob

Current Thread