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

getting associated file name for element

Subject: getting associated file name for element
From: "Matthew L. Avizinis" <mla@xxxxxxxxx>
Date: Wed, 6 Mar 2002 16:14:36 -0500
associated file
Hello all,
  If I am doing something like:

    <xsl:for-each select="document($all-questions//quiz/@href)//question">
        <xsl:sort order="ascending" select="faa-num"/>
      ...do stuff with each question...
         <xsl:value-of select="faa-num"/>
         Here's where I want to grab the name of the file, i.e. @href, the
question came from
    </xsl:for-each>

where quiz/@href contains the filenames containing questions to be grabbed
and then sorted by a question child element called faa-num.
How can I grab the value of @href as each question is evaluated?

So, in other words $all-questions was obtained by a document() reference to
an xml file with a bunch of <quiz> elements each with a @href child which
contains the paths to xml files which then contain all the <questions>s.
Using the scenario above how can I grab the @href value as each question is
processed, that is the name of the file each question is contained in.

thanks for all help with this,
   Matthew L. Avizinis <mailto:mla@xxxxxxxxx>
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
      www.gleim.com <http://www.gleim.com>

=======================================================================
com·put·ing (kum' pyoot ing)
1. n the art of calculating how much time you wasted and money you spent in
a doomed attempt to master a machine with a mind of it's own. --from
computing: A HACKER'S DICTIONARY


 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.