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

RE: document() function using variable

Subject: RE: document() function using variable
From: "Hofman, Peter" <peter.hofman@xxxxxxxxxxxxx>
Date: Mon, 14 May 2007 11:53:55 +0200
RE:  document() function using variable
Try document(concat('/folder/folder2/',$nm,'.xml'))/title

Peter Hofman

-----Original Message-----
From: Vaduvoiu Tiberiu [mailto:vaduvoiutibi@xxxxxxxxx]
Sent: maandag 14 mei 2007 11:37
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  document() function using variable

Simple question to the point:

document('/folder/folder2/file.xml')/title work

but if I have a parameter "nm" with the value of "file" or a variable
with the name of "nm" with the value of "file" then

document('/folder/folder2/$nm.xml')/title doesn't work. Why doesn't it
work?? I tried googling "document() using parameter" and other ways but
I didn't find anything usefull. Anyone can help me out?? 10x



________________________________________________________________________
____________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now
(it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow



This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.

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.