[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Getting Entity File Names

Subject: Re: Getting Entity File Names
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 23 Oct 2003 15:13:43 -0400
Re:  Getting Entity File Names
Betty,

If the title within each file is in the same place every time (or even if not), you can retrieve it by adapting the method David showed:

document('',$node)/*/title

will get you the title element children of the document element of the file containing $node.

I don't know how far that gets you, however. But it shouldn't be hard to build a lookup table to get from this title (assuming it's unique) to a file name or some such.

Note that this also assumes each file is a complete well-formed XML document, not merely a parsed entity (which can have more than one top-level element).

Cheers,
Wendell

At 02:29 PM 10/23/2003, you wrote:
Thanks!  I think I will have to use XSLT 2 or another language.  I am
building a key for another document to point to locations in the external
document.

The data files don't belong to me so I have to point to information within
the full document without the advantage of ID's.  The only thing that
really makes the data unique is the filenames and the titles within each
file of the entities.


======================================================================
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.