> Thanks I think that will work. Do you know what the performance for this
> would be in a large doc?
>
> as an answer to your question:
> I use asp to generate an xml file containing the images in a directory:
>
> buildXML Server.MapPath("../cdx"), "emf"
>
> sub buildXML(path,strFileType)
>
> dim fs, ts, folder, item, theExtension
>
> set fs = CreateObject("Scripting.FileSystemObject")
> set folder = fs.GetFolder(path)
>
> strFileType = Ucase(strFileType)
>
> strxml = "<files>" & vbCrLf
>
> 'get list of files.
> for each item in folder.Files
> theExtension = UCase(right(item.name, 3))
> if theExtension = strFileType then
> strxml = strxml & "<file>" & item.name & "</file>" & vbCrLf
> end if
> next
>
> strxml = strxml & "</files>"
> xmlfile = path &"\" & "files.xml"
>
> set ts = fs.CreateTextFile(xmlfile)
> ts.write strxml
> ts.close
> set ts = nothing
> set fs = nothing
> set folder = nothing
> set item = nothing
> end sub
>
>
> then I include that file in my xsl:
> <xsl:variable name="structure-root"
> select="document('
http://localhost/chemcatmgr/cdx/files.xml')"/>>
> since the file names correspond to the record id name, I make a variable:
> <xsl:variable name="catnum">
> <xsl:value-of select="concat(ns0:catalogitemnumber,'.emf')"/>
> </xsl:variable>
>
> and then I link to the image in the imagedata tag:
> <w:pict>
> <v:shape id="_x0000_s1037" type="#_x0000_t75" alt="structure"
>
style="position:absolute;margin-left:198.25pt;margin-top:16.3pt;width:{$stru