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

RE: multiple input document question

Subject: RE: multiple input document question
From: Tony Nassar <tnassar@xxxxxxxxxxxxxxxx>
Date: Wed, 16 Jul 2008 19:20:06 -0700
RE:  multiple input document question
What are you actually trying to do? The document f1.xml has only one document
element, so what is $id supposed to mean in document('f1.xml')/$id? If,
alternately, you want an element with the same name as $id, that's
*[local-name() eq $id]

-----Original Message-----
From: Greg Fausak [mailto:lgfausak@xxxxxxxxx]
Sent: Wednesday, July 16, 2008 7:17 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  multiple input document question

Hi,

I'm wondering if there is any way to do the following:

<xsl:template match="*[@menu]">
        <xsl:variable name="id" select="@id"/>
        <xsl:for-each select="document('f1.xml')/$id">
...

I've tried all sorts of combinations.

I guess I can create an xslt output document
with the for-each statement selecting by the
value of the other document and just run
it through xslt twice.  It just starts getting a little
weird then!

Thanks!
-g


--
Greg Fausak
greg@xxxxxxxxxxxx

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.