Subject: Re: [xsl] Multi-source documents: difference between document() and entities? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 27 Jan 2004 14:46:01 -0500 |
As I understand it, document() returns the root node of a tree and if I use the "/" path while processing a tree, I do *not* get the "root" above all document()-retrieved trees.
What I get is the root of that specific XML file's tree.
My question is: How do I construct a path that will search all trees returned by the document() function?
<files> <file url="a.xml"/> <file url="b.xml"/> <file url="c.xml"/> </files>
<xsl:variable name="allfiles" select="document( /files/file/@url )"/> ... <xsl:for-each select="$allfiles//info"> ...
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
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 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Multi-source documents: diffe, Randolph Kahle | Thread | Re: [xsl] Multi-source documents: d, Randolph Kahle |
Re: [xsl] Which commands to use: x, G. Ken Holman | Date | RE: [xsl] Which commands to use: x, JWolpert |
Month |