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

Re: Newbie document() question

Subject: Re: Newbie document() question
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Jan 2001 11:55:39 -0500
Re:  Newbie document() question
At 01/01/12 08:29 -0800, Edmund Mitchell wrote:
I've tried

<xsl:variable name='otherDoc' select='document(MyXml.xml)'/>
<xsl:template match='/'>
<xsl:copy-of select='$otherDoc'/>...

as well as just

<xsl:template match='/'>
<xsl:copy-of select='document(MyXml.xml)'/>...

but neither produced output, so I can't even seem to get off the ground with
this, let alone do any combining.

Don't kick yourself for this, Edmund, but you are asking for the document named by the value of the child element named MyXml.xml.


Try: select='document("MyXml.xml")'

This will supply the string of your filename to the function.

Note that you are working with a relative URI value here, so the presence and value of a second argument is going to be significant to where you want to find the file. Check Module 8 of your class notes (readers of our book will also find the details in chapter 8).

I hope this helps.

...................... Ken

--
G. Ken Holman                      mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:   Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:             2001-01-27,2001-02-21,
-                            2001-02-27/03-01,2001-03-05/07,2001-03-21,
-                                   2001-04-06/07,2001-05-01,2001-09-19


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.