[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: Betty Harvey <betty@xxxxxxxxxx>
Date: Thu, 23 Oct 2003 15:42:39 -0400 (EDT)
entity filename in xsl
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

On Thu, 23 Oct 2003, Wendell Piez wrote:

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


 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.