Betty,
For this task I would start at the other end -- instead of getting the file
name for each title, get the title for each file name.
Given a list of file names:
<list>
<file>foo1.xml</file>
<file>foo2.xml</file>
<file>foo3.xml</file>
</list>
You can iterate over this list selecting each <file> element in turn;
retrieve the title from the file using document(.)/pathtotitle.
There's the table for your reverse lookup from title to file name.
Cheers,
Wendell
At 03:42 PM 10/23/2003, you wrote:
I am able to get a list of the titles without
a problem. I want to build a table from the
titles and file name so I can create another
conversion on another group of documents have
have the titles embedded and link back to the
individual files which are well-formed.
I want to get a listing such as:
<filename>foo1.xml</filename> <title>This is a title</title>
I want to use this to put links into another document:
<p>... see <xref href="foo1.xml">This is a title</xref><p>
I am grabbing the entity filename and title as a way of
including links in another document (which I can change).
I actually did this once before with a file that had IDs and it was a
really simple process. I created an Omnimark script from the XSLT since
XSLT isn't the best 'search and replace' program. I was hoping to do the
same thing this time but without ID's it is proving difficult.
Betty
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
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
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list