Re: Getting Entity File Names
There is a kicker - I thought of that also! The files themselves don't reference the DTD but they do contain ISO characters and not UNICODE characters. I guess I could include the ISO character sets in my XSLT. That would probably be the quickest way to do it. It would also be easier if there were only one title per file. Somewhere in those files, there are 3 extra titles. Thanks! Betty On Thu, 23 Oct 2003, Wendell Piez wrote: > 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@xxxxxxxxxxxxxxxx > 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format