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

RE: Directory Structure

Subject: RE: Directory Structure
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Wed, 15 Aug 2001 11:15:01 -0700
list directory structure
I'm not sure what context you're thinking of here, but if you're using the
common practice of an XML config file which contains URIs, you could simply
store the URI in a variable or parameter before drilling down into the
document with that URI.

For example,

<files>
  <file href="foo.xml"/>
  <file href="bar/foo.xml"/>
</files>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <xsl:for-each select="/files/file/@href">
      <xsl:apply-templates select="document(.)/*">
        <xsl:with-param name="$uri" select="string(.)"/>
      </xsl:apply-templates>
    </xsl:for-each>
  </xsl:template>

</xsl:stylesheet>

The bottom line is that, unless you have access to the URIs in XML, there's
no (standard) way of getting them.

Hope this helps,

Evan Lenz
XYZFind Corp.

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Eric
> Schenfeld
> Sent: Wednesday, August 15, 2001 10:31 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Directory Structure
>
>
> Is there a command (or another way that anyone knows of) to find
> out the current working directory for a document?  So that after
> a call, it might return the value:
> "/About/LA/Downtown/Restaurants/"?  This could be used in a
> navigation kind of way as on Yahoo!.
>
> Thanks for the help.
>
> eric
>
>
>  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.