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

Re: Fwd: document() doesn't pick up a param

Subject: Re: Fwd: document() doesn't pick up a param
From: Gary L Peskin <garyp@xxxxxxxxxxxx>
Date: Thu, 07 Sep 2000 13:29:32 -0700
Re: Fwd: document() doesn't pick up a param
Michael Labhard wrote:
> The XSL statement "with-param" doesn't seem to be carried over to processing of
> nodesets from "document(...)" calls.  Observer:


Michael --

The parameters are not carried over to documents but to templates.  The
document() function returns the _root node_ of the requested document. 
However, you don't have a template that matches the root node so the
built-in template is used.  The built-in template doesn't have any
parameters, so when it invokes your matchme template, the parameters are
lost.

To see the difference, change your document function to:

	document('incoming.xml')/matchme

and everything should work.

HTH,
Gary


 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.